We switched to a new SIP Trunk provider however we can’t get inbound calls working. They gave us a pair of IP’s and basically said good luck. We successfully got outbound calls working but inbound calls still will not go through. Any ideas or thoughts would be great.
So you are Peering with them based on IP. So how do they route calls to you? Did you give them an IP to send calls to and to allow calls from?
Your trunk is misconfigured and there is only one of them. Chan_SIP supports only 1 IP per “trunk”. So you would need two Chan_SIP trunks.\
What port is Chan_SIP using on your PBX?
This maybe something you want to do via Chan_PJSIP as you can setup a trunk that accepts calls from both IPs and can be your main outbound trunk and a second one to make calls out as a backup.
But before we can fully correct your trunk setttings and setup in Chan_SIP we need to see the outgoing section to make sure that has all the right settings.
Yes we gave them the static IP to send calls to, port for Chan_SIP is 5160 I believe. From what I have googled I am just supposed to leave the incoming blank which doesn’t seem to do much for us.
I would start with the chan SIp port. They may be expecting traffic on 5060 instead of 5160. I would also look at the inbound route for the call. We ended up having to do a inbound route for E.164. Meaning we had to put the +1 at the beginning of every inbound route coming in to get to ring.
I am working with similar SIP provider so just my two cents!
I looked into some logs and found this error:
2018-12-27 21:09:25] NOTICE[2394]: res_pjsip/pjsip_distributor.c:649 log_failed_request: Request ‘INVITE’ from ‘"PINEAPPLE INC " <sip:[email protected]>’ failed for ‘67.231.8.195:5060’ (callid: [email protected]) - No matching endpoint found [2018-12-27 21:09:25] NOTICE[2394]: res_pjsip/pjsip_distributor.c:649 log_failed_request: Request ‘INVITE’ from ‘"PINEAPPLE INC " <sip:[email protected]>’ failed for ‘67.231.4.195:5060’ (callid: [email protected]) - No matching endpoint found
It looks like it is able to communicate but something is failing somehow. Any ideas?
Yep it looks like its trying to use PJSIP to talk. Your chan SIP is set for port 5160. How many endpoints are on this device? If not very many i would go to your sip settings and set your chan sip port to 5060 and your pjsip to 5160. Once your talking the right port it will work perfect. But if you have alot of endpoints you will have to adjust them to new port as well.
So you will need to log into phones and change port that they are trying to communicate to PBX on. On yealink it looks like this. Not sure on grandstream
OK, so you were basically given poor advice as no one thought that your trunk and your endpoints would be under different tech. I’m going to go back to my original post, you should have just made a PJSIP trunk.
So now, go back and revert the ports the way they were (PJSIP on 5060 and Chan_SIP on 5160). Create a PJSIP Trunk, under the PJSIP Settings
Authentication: None
SIP Server URI: 67.231.8.195
SIP Server Port: 5060
Advanced tab where it says Match (Permit) put : 65.213.8.195/32,67.231.4.195/32
This trunk will send calls to the 67.231.8.195 server and accept calls from both.
I called the trunk number - it rang my phone as planned but when I answered the phone lost connection - I am restarting the full PBX to see if that solves any issues.