TLS support in python

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

 



Hello,

as a part of my master thesis I'm going to implement a SIP UA using
PJSIP and python.
I'm  trying to use TLS for the communication (for every outgoing
messages - REGISTER, INVITE, ...).

Unfortunatly, I have the following problem:

imort pjsua as pj
[...]
trans_cfg = pj.TransportConfig(port=5061)
transport = lib.create_transport(pj.TransportType.TLS, cfg=trans_cfg)
[...]

returns with:

python: ../src/pjsua-lib/pjsua_core.c:2010: pjsua_transport_get_info:
Assertion `!"Unsupported transport"' failed.

Replacing pj.TransportType.TLS with pj.TransportType.UDP or
pj.TransportType.TCP it works well.
I also tried to establish the TLS connection by using C and it worked too.

How can I solve this problem in python?
Thanks in advance.

Regards,
Sebastian






[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