Page 1 of 1

Carrier and PJSIP

PostPosted: Thu Jun 18, 2020 5:16 pm
by GenXOutsourcing
Just made a fresh install of Vicibox 9.0.2 and my carrier decided to make a change in the way they route Inbound calls.

Well, I changed the HOST to the new URL, and whitelisted all of the 15 IPs that they require. Now, the Inbound carrier is connected with IP ending in 194. SO, if I test call and the call is sent over the 194 IP, then i get the call. But, if the call comes from one of the other list of IPs..... i get no service recording and no connection to Asterisk.

Speaking to the provider, this is the message that i got:
make sure all of the IPs are whitelisted in both the PBX and firewall. Also if you are using an asterisk based system you will need to change to pjsip from chan_sip. Chan_sip will not recognize all of the IPs


What am i missing, as I have never had this issue before.

Re: Carrier and PJSIP

PostPosted: Thu Jun 18, 2020 5:52 pm
by ambiorixg12
[twilio_trunks](!)
type=peer
disallow=all
allow=ulaw
allow=alaw
insecure=port,invite
directmedia=no
context=from-trunk
qualify=yes
dtmfmode=rfc2833
trustrpid=yes
sendrpid=yes
nat=force_rport,comedia
port=5060


[tw0](twilio_trunks)
host=54.172.60.0


[tw1](twilio_trunks)
host=54.172.60.1

[tw2](twilio_trunks)
host=54.172.60.2

[tw3](twilio_trunks)
host=54.172.60.3


[tw5](twilio_trunks)
host=54.244.51.0

[tw6](twilio_trunks)
host=54.244.51.1

[tw7](twilio_trunks)
host=54.244.51.2

[tw8](twilio_trunks)
host=54.244.51.3

Re: Carrier and PJSIP

PostPosted: Thu Jun 18, 2020 7:19 pm
by GenXOutsourcing
Thanks, worked perfect

Re: Carrier and PJSIP

PostPosted: Mon Dec 06, 2021 8:23 am
by Zaraab
GenXOutsourcing wrote:Thanks, worked perfect


is it an entry in the sip.conf(to use the chan_sip) to receive calls from multiple IPs or it is an entry for the chan_pjsip?


ambiorixg12 wrote:[twilio_trunks](!)
type=peer
disallow=all
allow=ulaw
allow=alaw
insecure=port,invite
directmedia=no
context=from-trunk
qualify=yes
dtmfmode=rfc2833
trustrpid=yes
sendrpid=yes
nat=force_rport,comedia
port=5060


[tw0](twilio_trunks)
host=54.172.60.0


[tw1](twilio_trunks)
host=54.172.60.1

[tw2](twilio_trunks)
host=54.172.60.2

[tw3](twilio_trunks)
host=54.172.60.3


[tw5](twilio_trunks)
host=54.244.51.0

[tw6](twilio_trunks)
host=54.244.51.1

[tw7](twilio_trunks)
host=54.244.51.2

[tw8](twilio_trunks)
host=54.244.51.3

Re: Carrier and PJSIP

PostPosted: Mon Dec 06, 2021 8:24 am
by Zaraab
is it an entry in the sip.conf(to use the chan_sip) to receive calls from multiple IPs or it is an entry for the chan_pjsip?


ambiorixg12 wrote:[twilio_trunks](!)
type=peer
disallow=all
allow=ulaw
allow=alaw
insecure=port,invite
directmedia=no
context=from-trunk
qualify=yes
dtmfmode=rfc2833
trustrpid=yes
sendrpid=yes
nat=force_rport,comedia
port=5060


[tw0](twilio_trunks)
host=54.172.60.0


[tw1](twilio_trunks)
host=54.172.60.1

host=54.244.51.3

Re: Carrier and PJSIP

PostPosted: Wed Dec 08, 2021 8:42 pm
by ambiorixg12
That configuration is for chan_sip,