[BUG] PJSIP Python Binding

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

 



Hello,

I testing Python Binding and have strange problem in my logs:

[2013-09-16 15:45:47,625] [SendDTMF] Send "111222333" digits as DTMF on 1
sec. (now 0)
[2013-09-16 15:45:48,127] [SendDTMF] Send "111222333" digits as DTMF on 1
sec. (now 0)
[2013-09-16 15:45:48,628] [SendDTMF] Send "111222333" digits as DTMF on 1
sec. (now 0)
[2013-09-16 15:45:49,131] [SendDTMF] Send "111222333" digits as DTMF on 1
sec. (now 0)

1. Can not determine from call current talk time

This is occure on pjsua.py on lin 1468:1469:

        self.call_time = ci.connect_duration / 1000
        self.total_time = ci.total_duration / 1000

I suggesting no use rounding value(1.1) or use double value(1.2) in Python
or user duration in ms.:

1.1. Save high per-ion value in CallInfo struct (and make getter method
when need time in sec.)
        self.call_time_ms = ci.connect_duration
        self.total_time_ms = ci.total_duration
1.2. Return double value
        self.call_time = ci.connect_duration / 1000.0
        self.total_time = ci.total_duration / 1000.0

2. Call time contain media RDP communication time and where a handshake
time is storing?
(time between call.answer() and realy media connection establish)

This is mean that after answer we can got a 3 sec. on communicate codecs
and even fail a call.
1. How to determine that call is really established?
2.1. Now I am use workaround solution
      def is_established():
             return self.call_time_ms > 0
2. How to get handshake time and handshake callbacks with codecs?
2.1. Some callback call signature
    on_handshake(self, headers)

3. How to change sending DTMF type from signal to audio version?
Now only first call dtmf_digits is work. Next call dtmf_digits is do
nothing. This is my fail or library problem?

4. Can I save Call object in store and on timer work with them? Call object
will change some property on one call?

Thanx for answer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130916/8bd0b55c/attachment-0001.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