Page 1 of 1
VICIDIAL WITH PORT WAN/LAN
Posted:
Tue Nov 02, 2021 7:13 am
by disepa
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
Re: VICIDIAL WITH PORT WAN/LAN
Posted:
Tue Nov 02, 2021 8:24 am
by carpenox
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
Re: VICIDIAL WITH PORT WAN/LAN
Posted:
Tue Nov 02, 2021 12:37 pm
by ambiorixg12
do I add a route in the network configuration?
You can use the Linux r
oute 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
Re: VICIDIAL WITH PORT WAN/LAN
Posted:
Tue Nov 02, 2021 7:14 pm
by disepa
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.
Re: VICIDIAL WITH PORT WAN/LAN
Posted:
Tue Nov 02, 2021 7:28 pm
by ambiorixg12
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
Re: VICIDIAL WITH PORT WAN/LAN
Posted:
Tue Nov 02, 2021 8:10 pm
by disepa
I think so.
Need more help to do route commands or to chose the right interface (eth1) for this carrier.
Re: VICIDIAL WITH PORT WAN/LAN
Posted:
Tue Nov 02, 2021 10:38 pm
by ambiorixg12
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
Re: VICIDIAL WITH PORT WAN/LAN
Posted:
Wed Nov 03, 2021 7:36 am
by striker
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.
Re: VICIDIAL WITH PORT WAN/LAN
Posted:
Wed Nov 24, 2021 5:45 pm
by disepa
Solved.
Thank you