Re: PJSUA/PJSUA2: Immediately hangup on unreachable client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hello Sai Mukund Sagar Deshpande,

i don't think that is my problem here. The SIP invite is sent to the callee. At this point no resolving should take place anymore.

Jochen Jung

On Fri, Sep 10, 2021 at 7:35 PM Jochen Jung <jochenmajjung@xxxxxxxxx> wrote:

I'm using mostly PJSUA2. I have an userless account set up and want to do direct calls. The call is started via pj::Call::makeCall() and hangup via pj::Call::hangupCall(). This is working for clients that are reachable and sending provisional responses.

However it is not working as I intended when calling clients that are not reachable (SIP-Uri is valid though). The call is disconnected when using hangupCall but the session still exists. Repeating this process too fast will result in an "PJ_ETOOMANY" error. I want those sessions to end immediately since sip cancel won't reach the client anyway. The session timeout seems to have a minimal value of 90 seconds.

I tried pjsip_inv_terminate, pjsip_inv_end_session and pjsip_dlg_terminate to no avail.

Is there a way to immediately hangup on an unreachable client and how can it be done?

Jochen Jung
Visit our blog:

pjsip mailing list -- pjsip@xxxxxxxxxxxxxxx
To unsubscribe send an email to pjsip-leave@xxxxxxxxxxxxxxx

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux