Python Bindings

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

 



Apologies for the monologue. The CANCEL was being triggered by the Call
object leaving scope. I slightly re-arranged the code and now it's working
as expected.

On Mon, Jan 11, 2016 at 6:01 PM, Matthew Williams <mgwilliams at gmail.com>
wrote:

> I did some more experimentation with pjsua2 and python. This app (
> https://gist.github.com/mgwilliams/bd02cd294a2b8347c649) is running fine,
> but pjsua transmits a CANCEL immediately after receiving the 180.
>
> On Mon, Jan 11, 2016 at 7:56 AM, Matthew Williams <mgwilliams at gmail.com>
> wrote:
>
>> I am using the trunk version of PJSIP.
>>
>> On Sun, Jan 10, 2016 at 9:51 PM, Nanang Izzuddin <nanang at pjsip.org>
>> wrote:
>>
>>> Hi,
>>>
>>> Yes, generally Call (Python) object should remain valid during an active
>>> call, but perhaps this is not the case, so could you clarify a bit more
>>> about 'destroying a call' and more detail about the problem (e.g: sample
>>> scenario, pjsip version, which API or Python binding you are using) would
>>> be useful.
>>>
>>> Btw, in case you are still using the pjsua Python
>>> <https://trac.pjsip.org/repos/wiki/Python_SIP_Tutorial> module (in
>>> pjsip-apps/src/python), just FYI, it is about to be deprecated and replaced
>>> by the new pjsua2 API
>>> <http://www.pjsip.org/docs/book-latest/html/index.html> that has Python
>>> binding via SWIG.
>>>
>>> BR,
>>> nanang
>>>
>>>
>>> On Fri, Jan 8, 2016 at 11:24 PM, Matthew Williams <mgwilliams at gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm using the Python bindings (updated for Python 3.5), but it seems
>>>> calls are not being destroyed. I've dug around, but do not see any way to
>>>> destroy a call other than calling hangup(). Am I missing something?
>>>>
>>>> Thanks!
>>>>
>>>> _______________________________________________
>>>> Visit our blog: http://blog.pjsip.org
>>>>
>>>> pjsip mailing list
>>>> pjsip at lists.pjsip.org
>>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Visit our blog: http://blog.pjsip.org
>>>
>>> pjsip mailing list
>>> pjsip at lists.pjsip.org
>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20160111/2270bf09/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