Asterisk 22.5.0 and PJSIP not receiving lost connection

Hi All,

I am moving from chan_sip to PJSIP. Mostly everything working. I have a local network all on 192.168.1.X - my PJSIP client connects and I see that on my server by listing the AMI events.
However - when i stop asterisk on the PJSIP client and wait some time - I never see an AMI event that says ContactStatus and lost connection (or equivalent).

My PJSIP definitions for client is:
[nuc7]
type=wizard
accepts_registrations=no
sends_registrations=yes
accepts_auth=no
sends_auth=yes
outbound_auth/username=nuc7
outbound_auth/password=nuc7
endpoint/allow=!all,ulaw,alaw,gsm
endpoint/rtp_timeout=60
endpoint/rtp_timeout_hold=60
endpoint/rtp_keepalive=60
remote_hosts=192.168.1.X
endpoint/context=nuc7
aor/max_contacts=1

in PJSIP.conf I did enable this:
send_contact_status_on_update_registration=yes
to even get the ContactStatus to start with.

however - I dont seem to get the “lost registration” ContactStatus on the AMI. How do I get that?

Jerry

I’m confused over your configuration. You’ve configured a wizard that sends OUTBOUND registrations to somewhere else. You haven’t configured it with qualify, so it doesn’t know if the remote side is reachable or not.

Is this actually the wizard you are referring to?

Correct it is the wizard. This PJSIP client does connect “outbound” to the server.
Is it a qualify parameter that I need in my server definition to then get the disconnect message on the AMI?

Thanks
Jerry

Yes.

aor/qualify_frequency=30

Would check it every 30 seconds for whether it is reachable or not[1].

[1] res_pjsip - Asterisk Documentation

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