VICIDIAL WITH PORT WAN/LAN

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

VICIDIAL WITH PORT WAN/LAN

Postby disepa » Tue Nov 02, 2021 7:13 am

Hi everybody,
I'm a beginner with vicidial.
Need help to configure my server.

I have 2 ETHERNET cards on my desktop. Want to use one for the LAN eth0(192.168.1.245/24) and the second for the WAN eth1 105.235.29.73/30.
The port WAN is connected to a router with this ip 105.235.29.74/30 . The router delivers 150 lines trunk SIP from our ISP.
What I want first is to register/add the trunk SIP on my vicidial server.

Is that correct?

do I add a route in the network configuration?

How can I add the trunk sip on vicidial?

Thanks and regards
disepa
 
Posts: 20
Joined: Tue Nov 02, 2021 6:01 am

Re: VICIDIAL WITH PORT WAN/LAN

Postby carpenox » Tue Nov 02, 2021 8:24 am

Good day and welcome. Don't ever put your public ips on here. Hackers will have a field day. Second you need a carrier configuration and you add it in the vicidial gui. I suggest reading the manual
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2428
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: VICIDIAL WITH PORT WAN/LAN

Postby ambiorixg12 » Tue Nov 02, 2021 12:37 pm

do I add a route in the network configuration?

You can use the Linux route add command


How can I add the trunk sip on vicidial?

Here you have sample trunk, I think you don't need user and name and password, as usually that kind of SIP trunk are authenticated based on the source IP

Code: Select all
[callcentric]
type=peer
disallow=all
allow=ulaw
allow=alaw
insecure=port,invite
directmedia=no
context=trunkinbound
qualify=yes
dtmfmode=rfc2833
trustrpid=yes
sendrpid=yes
nat=force_rport,comedia
port=5060
username=17772709540101
fromuser=17772709540101
secret=Pass455A1
host=callcentric.com



 register =>17772709540101:Pass455A1@callcentric.com


CALLCENTRICTRUNK= SIP/callcentric

exten => _9.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9.,2,Dial(${CALLCENTRICTRUNK}/${EXTEN:1},,To)
exten => _9.,3,Hangup
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm

Re: VICIDIAL WITH PORT WAN/LAN

Postby disepa » Tue Nov 02, 2021 7:14 pm

Hello guys and thank you to responding me.

First this is my carrier configuration

[mtncarrier]
type=peer
disallow=all
allow=ulaw
allow=alaw
allow=g729
insecure=port,invite
directmedia=no
context=trunkinbound
qualify=yes
dtmfmode=rfc2833
trustrpid=yes
sendrpid=yes
nat=force_rport,comedia
port=5060
host=XX.XX.XX.73

I will specify you that I can not choose the second ethernet port with this ip adress XX.XX.XX.74 in the field 'Sever SIP'
I have always 3 propositions
>192.168.1.245 (choosen by default)
>0.0.0.0
>192.168.1.245 Server vicibox10.0 160.155.123.166 -Y-Y (can not be choosen)

When I do the sip show peers, I have this response :
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
100/100 192.168.1.56 D Yes Yes 49165 OK (5 ms)
gs102/gs102 (Unspecified) D Yes Yes 0 UNKNOWN
mtncarrier XX.XX.XX.73 Yes Yes 5060 UNREACHABLE

May be I think it does not exist the bridge beetween eth0 192.168.1.245 (LAN port) and eth1 WAN XX.XX.XX.74

is my carrier confifuration wrong?

May I have to add route on my serveur? Or modify my sip.conf?

Thank you all for your help.
disepa
 
Posts: 20
Joined: Tue Nov 02, 2021 6:01 am

Re: VICIDIAL WITH PORT WAN/LAN

Postby ambiorixg12 » Tue Nov 02, 2021 7:28 pm

mtncarrier XX.XX.XX.73 Yes Yes 5060 UNREACHABLE


This mean Asterisk is sending SIP OPTION request, but the carrier is not replying to them , could be possible you're not using the correct interface to reach the carrier, so you will need to use the route command to do the correct configuration this looks more a Linux and networking issue than a VICI one
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm

Re: VICIDIAL WITH PORT WAN/LAN

Postby disepa » Tue Nov 02, 2021 8:10 pm

I think so.

Need more help to do route commands or to chose the right interface (eth1) for this carrier.
disepa
 
Posts: 20
Joined: Tue Nov 02, 2021 6:01 am

Re: VICIDIAL WITH PORT WAN/LAN

Postby ambiorixg12 » Tue Nov 02, 2021 10:38 pm

Need more help to do route commands or to choose the right interface (eth1) for this carrier.

Well that request is outside the scope of this forum, as you don't set the NIC card using the VICI GUI or the Asterisk configuration files, that is all done using the Linux command line. Unless you don't find someone who here who wants to go extra mile, you will be stuck waiting
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm

Re: VICIDIAL WITH PORT WAN/LAN

Postby striker » Wed Nov 03, 2021 7:36 am

you need to add a static route in your vicibox
if you are using vicibox you can easily add the static route by running command yast lan
and then ALT + U for routing screen.

in destination type the SIP host ip and interface select eth2 (wan port)
and gateway enter the wan port gateway ie router ip.
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: VICIDIAL WITH PORT WAN/LAN

Postby disepa » Wed Nov 24, 2021 5:45 pm

Solved.

Thank you
disepa
 
Posts: 20
Joined: Tue Nov 02, 2021 6:01 am


Return to Support

Who is online

Users browsing this forum: No registered users and 85 guests