The best way to know when call successfully finished

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

 



> ---------- Forwarded message ----------
> From: "???? ?" <verdrehung@xxxxxxxxx>
> To: pjsip at lists.pjsip.org
> Cc:
> Date: Fri, 20 Apr 2012 16:24:03 +0700
> Subject: The best way to know when call successfully finished
> Hello
> What is the best way to know when call successfully finished, for example
> after pjsua_call_hangup()?
> I want to make new call immediately after previous call finished. Problem:
> my sip account supports only one call
> at the same time, and if I'll use the sequence of "pjsua_call_hangup();
> pjsua_call_make_call()" I'll receive status 480
> from the server with description "Call Limit". This is because previous
> call not completely finished yet.
> So, what callback or other way I should use to solve my problem?
>

Are you using the call-state events (on_call_state with state
PJSIP_INV_STATE_DISCONNECTED)?
Else you have to wait for the 200-OK response on your BYE.
It could even be possible that your provider also implements some "idle"
time...

With regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120420/71caf690/attachment.html>


[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