SIP to PJSip migration - unavailable!

Hi guys! Can you help me? I make migration from sip to pjsip through script, but i can’t get connected to trunk:
sip.conf
[AAAAAAAA]
host=xxxxxxx.ru
insecure=invite,port
context=crm_in19
type=friend
username=XXXXXXXXXX@xxxxxxx.ru
fromdomain=xxxxxxx.ru
fromuser=XXXXXXXXXX
outboundproxy=xxxxxxx.ru
defaultexpiry=120
disallow=all
;allow=alaw
allow=alaw,ulaw,g723,g729,g726,g722,gsm,ilbc,opus
dtmfmode=auto
secret=secretpassword
callbackextension=XXXXXXXXXX
qualify=yes
directmedia=no

pjsip.conf
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
allow_reload=yes
local_net=192.168.2.0/24
external_media_address=aa.aa.aa.aaa
external_signaling_address=aa.aa.aa.aaa

[AAAAAAAA]
type = aor
;contact = sip:XXXXXXXXXX@xxxxxxx.ru
contact = sip:xxxxxxx.ru
default_expiration = 120
qualify_frequency=500

[AAAAAAAA]
type = identify
endpoint = AAAAAAAA
match = xxxxxxx.ru

[AAAAAAAA]
type = auth
auth_type=userpass
username = XXXXXXXXXX@xxxxxxx.ru
password = secretpassword

[AAAAAAAA]
type=registration
transport=transport-udp
outbound_auth=AAAAAAAA
retry_interval=120
max_retries=10
expiration=3600
auth_rejection_permanent=no
server_uri=sip:xxxxxxx.ru
client_uri=sip:XXXXXXXXXX@xxxxxxx.ru

[AAAAAAAA]
type = endpoint
context = crm
dtmf_mode=auto
disallow = all
allow = alaw,ulaw,g723,g729,g726,g722,gsm,ilbc,opus
transport=transport-udp
outbound_proxy = xxxxxxx.ru
direct_media = no
t38_udptl=no
t38_udptl_ec=none
fax_detect=no
t38_udptl_nat=no
from_user = XXXXXXXXXX
from_domain = xxxxxxx.ru
auth = AAAAAAAA
outbound_auth = AAAAAAAA
aors = AAAAAAAA

But trunk status is Unavailable. That i’m making wrong?
Thanks

That’s 500 seconds - try 50. Also the pjsip_wizard.conf alternate configuration file format might not be what the migration script produces but could help you manage it better long term.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.