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:
[general] allowoverlap=no udpbindaddr=0.0.0.0 tcpenable=yes tcpbindaddr=0.0.0.0 transport=udp srvlookup=yes register=>+91XXXXXXXXXX@sip.example.com:mysecret:+91XXXXXXXXXX@sip.example.com@10.XX.XX.XX externip=10.YY.YY.YY localnet=192.168.0.0/16 localnet=127.0.0.1/32 nat=force_rport,comedia externaddr=10.XX.XX.XX maxexpiry=3600 registertimeout=3600 defaultexpiry=120
my pjsip.conf for the same which is not working (tried many combinations):
[transport-udp] type = transport protocol = udp bind = 0.0.0.0 external_media_address = 10.XX.XX.XX (tried 10.YY.YY.YY too) external_signaling_address = 10.XX.XX.XX (tried 10.YY.YY.YY too) local_net = 192.168.0.0/16 local_net = 127.0.0.1/32 allow_reload = yes [reg_sip] type = registration retry_interval = 3600 max_retries = 10 expiration = 3600 transport = transport-udp outbound_auth = auth_reg_sip client_uri = sip:+91XXXXXXXXXX@sip.example.com server_uri = sip:sip.example.com contact_user = +91XXXXXXXXXX outbound_proxy=sip:10.XX.XX.XX (tried 10.YY.YY.YY too) [auth_reg_sip] type = auth password = mysecret username = +91XXXXXXXXXX@sip.example.com realm=sip.example.com
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)
Thanks in advance.