Re: Sleep timers on Pjsua2.8 + swig + python

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

 



Any ideas? 

Thanks
//M

On Sat, Jun 15, 2019, 12:13 PM Muhammad El-Sergani <msergani@xxxxxxxxx> wrote:
Hi all, 

I'm writing an application where two apps will call each other, so no human intervention is required.

I need to simulate a real life call-picking-up scenario. So instead of call invite, trying, ringing, and then straight answer, I need to add timers, in other words sleep a couple of seconds here and there. 

So currently answering the call logic is placed in the onIncomingCall cb, however, whenever I use python's time.sleep(x) method, the whole cb is delayed. 

If I add a sleep action between the sip180 and sip200 responses (bear in mind I have code there to send sip100), the whole thing is delayed, and the calling party keeps sending the re-invite messages. 

Any thoughts would be greatly helpful. 

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