Delaying SessionProgress and OK intentionally

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

 



Hi,

I'm writing a python application that would loop a call using PJSIP. So basically the application will register two accounts, one's the caller and the other is the callee. 

I would like to do the following:
  • Make call from caller to callee -- done
  • Tx SIP100 from callee -- done
  • Tx SIP180/183 from callee after 3 seconds
  • Answer call by callee after 5 seconds 
I'm able to generate the SIP180/183 and SIP200 responses successfully, but I'm unable to set timers the way I've mentioned above. 

I tried python's time.sleep() function, and I've also gone to the length of checking the call's getInfo().totalDuration.sec before sending the SIP180/183 and SIP200 responses, but they didn't work as I would have expected.

Both approaches produce the same result, which is a delay in responding with SIP100. In other words, the calling account never receives the SIP100 until the timer passes. 

It's worth nothing that both accounts are calling each other through a SIP proxy (SBC).

Also, as I'm using Python, I've set mainThreadOnly to True, and threadCnt to 0.

Appreciate your help on this.

Thanks
//M
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[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