Hi Guys,
Greetings!
I have recently set up asterisk server on the azure cloud, able to connect to sip provider (using sip module), and able to place a call successfully, thanks to all the support I found here/google/(asterisk definitive guide book).
Now, I am trying to replace sip module with pjsip (as it’s suggested in Asterisk Definitive Guide book). I tried the first step of registering to sip providers but after spending a lot of time (also tried using migration script sip_to_pjsip.py), couldn’t succeed.
Following was my sip.conf (obfuscated) which was working perfectly fine:
while trying pjsip, I disabled sip module using module.conf. from my sip provider, I get 486 (busy here) error with pjsip but the same works fine with sip.
I will be really grateful if someone can guide me here. (I can also share packets transferred in both cases if needed)
Networking Information My sip line is connected to a firewall where I have subnetted sip gateway and sip ips provided by sip line provider. From firewall to azure I have ipsec tunnel. all traffic from asterisk to sip line is supposed to be sent to 10.x.x.x ip which is then going to sip gateway. asterisk’s ip is natted to 10.y.y.y as expected by sip gateway.
I found out the issue. My Voip provider is expecting domain in register string (so instead of. REGISTER sip:10.X.X.X SIP/2.0, it should be REGISTER sip:sip.example.com SIP/2.0) which is happening due to outbound_proxy I have set as sip:10.X.X.X. If I don’t do that, my requests itself are not reaching to my provider.
I don’t know how to resolve this.