Cleaning up after timeout in incoming INVITE session?

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

 



Hi,

how do I do a cleanup after the transaction in an INVITE dialog is 
terminated after a timeout?

To be more precise:

I'm using the pjsua example application. After sending an INVITE the 
calling external tool gets terminated without being able to end the 
INVITE session. If pjsua then accepts the call the ACK messages are not 
respondet too and they are repeated. If pjsua_call_hangup is executed in 
this time the sending of BYE will be delayed until an ACK has been 
received, which will not come. After some time the transaction signals a 
timeout and gets terminated. This is signaled in the pjsua callback 
on_call_tsx_state with the status "Request Timeout" for the transaction.

After the transaction gets terminated, the call itself is active still. 
In the pjsua app its state is listed as "Connecting". The resources for 
this call are still in use and never freed. It can be easily checked by 
using the option --max-calls=1 in the start of pjsua. After the scenario 
above no incoming calls are possible.

How do i proceed in this situation on the pjsua-lib interface to cancel 
the dialog and terminate the call? I assume there has to be some 
handling in the on_call_tsx_state.

Best regards,
Thomas Falk





[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