PJSIP for Python - TLS and SRTP support

DS
Darren Sessions
Fri, Nov 18, 2011 3:25 PM

I'm in the middle of integrating the PJSIP Python module into our test-suite and just noticed, after getting the 'Assertion failed: (!"Unsupported transport")' error message when I tried to select TLS as the transport type, that although there are configuration points in the pjsua Python module (which is misleading) there is literally nothing in the _pjsua.c code, which the pjsua module relies on, for TLS or SRTP.

I haven't looked at the pjsua c code extensively and am wondering what people's opinions are in terms of the time it would take to implement or port the TLS and SRTP functionality into _pjsua.c and finish off the pjsua.py module.

It's a shame the Python module isn't feature complete as it certainly is an excellent tool on a lot of levels.

Thanks!

--
Darren Sessions
Digium, Inc. | Systems Engineer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at www.digium.com & www.asterisk.org

I'm in the middle of integrating the PJSIP Python module into our test-suite and just noticed, after getting the 'Assertion failed: (!"Unsupported transport")' error message when I tried to select TLS as the transport type, that although there are configuration points in the pjsua Python module (which is misleading) there is literally nothing in the _pjsua.c code, which the pjsua module relies on, for TLS or SRTP. I haven't looked at the pjsua c code extensively and am wondering what people's opinions are in terms of the time it would take to implement or port the TLS and SRTP functionality into _pjsua.c and finish off the pjsua.py module. It's a shame the Python module isn't feature complete as it certainly is an excellent tool on a lot of levels. Thanks! -- Darren Sessions Digium, Inc. | Systems Engineer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at www.digium.com & www.asterisk.org
SI
Saúl Ibarra Corretgé
Fri, Nov 18, 2011 3:30 PM

Hi Darren,

On Nov 18, 2011, at 4:25 PM, Darren Sessions wrote:

I'm in the middle of integrating the PJSIP Python module into our test-suite and just noticed, after getting the 'Assertion failed: (!"Unsupported transport")' error message when I tried to select TLS as the transport type, that although there are configuration points in the pjsua Python module (which is misleading) there is literally nothing in the _pjsua.c code, which the pjsua module relies on, for TLS or SRTP.

I haven't looked at the pjsua c code extensively and am wondering what people's opinions are in terms of the time it would take to implement or port the TLS and SRTP functionality into _pjsua.c and finish off the pjsua.py module.

It's a shame the Python module isn't feature complete as it certainly is an excellent tool on a lot of levels.

IIRC it does support it, it's built together with pjsua (the C part). Did you have OpenSSL library headers installed when you built the module?

Regards,

--
Saúl Ibarra Corretgé
AG Projects

Hi Darren, On Nov 18, 2011, at 4:25 PM, Darren Sessions wrote: > I'm in the middle of integrating the PJSIP Python module into our test-suite and just noticed, after getting the 'Assertion failed: (!"Unsupported transport")' error message when I tried to select TLS as the transport type, that although there are configuration points in the pjsua Python module (which is misleading) there is literally nothing in the _pjsua.c code, which the pjsua module relies on, for TLS or SRTP. > > I haven't looked at the pjsua c code extensively and am wondering what people's opinions are in terms of the time it would take to implement or port the TLS and SRTP functionality into _pjsua.c and finish off the pjsua.py module. > > It's a shame the Python module isn't feature complete as it certainly is an excellent tool on a lot of levels. > IIRC it does support it, it's built together with pjsua (the C part). Did you have OpenSSL library headers installed when you built the module? Regards, -- Saúl Ibarra Corretgé AG Projects
DS
Darren Sessions
Fri, Nov 18, 2011 3:53 PM

I've got SSL installed and the appropriate option in the config_site.h file.

I'm just wondering how intense it'd be to port the TLS / SRTP code from the C version of PJSUA (this of course is separate from the _pjsua.c file in the pjsip-apps/src/python directory) where the features do exist over to the python wrapper, or if that's possible. I guess I assumed they were both calling the PJSIP core apis.

----- Original Message -----
From: "Saúl Ibarra Corretgé" saul@ag-projects.com
To: "pjsip list" pjsip@lists.pjsip.org
Sent: Friday, November 18, 2011 9:30:49 AM
Subject: Re: [pjsip] PJSIP for Python - TLS and SRTP support

Hi Darren,

On Nov 18, 2011, at 4:25 PM, Darren Sessions wrote:

I'm in the middle of integrating the PJSIP Python module into our test-suite and just noticed, after getting the 'Assertion failed: (!"Unsupported transport")' error message when I tried to select TLS as the transport type, that although there are configuration points in the pjsua Python module (which is misleading) there is literally nothing in the _pjsua.c code, which the pjsua module relies on, for TLS or SRTP.

I haven't looked at the pjsua c code extensively and am wondering what people's opinions are in terms of the time it would take to implement or port the TLS and SRTP functionality into _pjsua.c and finish off the pjsua.py module.

It's a shame the Python module isn't feature complete as it certainly is an excellent tool on a lot of levels.

IIRC it does support it, it's built together with pjsua (the C part). Did you have OpenSSL library headers installed when you built the module?

Regards,

--
Saúl Ibarra Corretgé
AG Projects


Visit our blog: http://blog.pjsip.org

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

I've got SSL installed and the appropriate option in the config_site.h file. I'm just wondering how intense it'd be to port the TLS / SRTP code from the C version of PJSUA (this of course is separate from the _pjsua.c file in the pjsip-apps/src/python directory) where the features do exist over to the python wrapper, or if that's possible. I guess I assumed they were both calling the PJSIP core apis. ----- Original Message ----- From: "Saúl Ibarra Corretgé" <saul@ag-projects.com> To: "pjsip list" <pjsip@lists.pjsip.org> Sent: Friday, November 18, 2011 9:30:49 AM Subject: Re: [pjsip] PJSIP for Python - TLS and SRTP support Hi Darren, On Nov 18, 2011, at 4:25 PM, Darren Sessions wrote: > I'm in the middle of integrating the PJSIP Python module into our test-suite and just noticed, after getting the 'Assertion failed: (!"Unsupported transport")' error message when I tried to select TLS as the transport type, that although there are configuration points in the pjsua Python module (which is misleading) there is literally nothing in the _pjsua.c code, which the pjsua module relies on, for TLS or SRTP. > > I haven't looked at the pjsua c code extensively and am wondering what people's opinions are in terms of the time it would take to implement or port the TLS and SRTP functionality into _pjsua.c and finish off the pjsua.py module. > > It's a shame the Python module isn't feature complete as it certainly is an excellent tool on a lot of levels. > IIRC it does support it, it's built together with pjsua (the C part). Did you have OpenSSL library headers installed when you built the module? Regards, -- Saúl Ibarra Corretgé AG Projects _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org