Re: PJSUA/PJSUA2: Immediately hangup on unreachable client

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

 



I think initially it will try to resolve DNS if it's URI. If no DNS
reply, it will wait till timeout. API: pj_gethostip

You could check if this is one of the reason for delay you are
observing.




On Fri, 2021-09-10 at 19:35 +0200, Jochen Jung wrote:
> Hello,
> 
> 
> 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?
> 
> 
> Regards
> Jochen Jung
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list -- pjsip@xxxxxxxxxxxxxxx
> To unsubscribe send an email to pjsip-leave@xxxxxxxxxxxxxxx
_______________________________________________
Visit our blog: http://blog.pjsip.org

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