Python SIP library [closed]
Asked Answered
R

3

26

I need to write python application connect to trixbox that run as SIP server. But I not found any library that implement in python. I found SIP SKD at http://www.vaxvoip.com/ but it not support python. Can anyone suggest me an alternative to VaxVoip? Thank you.

Route answered 17/8, 2009 at 8:55 Comment(1)
You are lucky they don't have a python integration. Their software is horrible and their support is even worst.Generalist
G
19

There are Python bindings for the PJSUA API.

Garth answered 17/8, 2009 at 9:22 Comment(5)
+1 typo in url. correct one: trac.pjsip.org/repos/wiki/Python_SIP_TutorialSoerabaja
There is no precompile package make me waste much time, I can't made it work on Windows but on Linux it so easy.Route
Note PJSUA is GPL, which makes it difficult to integrate in many commercial projects.Pr
Just came to this answer and the comment from @Pr is somehow surprising: it is super-easy. Contact the PJSIP team (I have no affiliation) and negotiate a commercial license. No, I haven't done it, but I have seen such a commercial license.Academic
* IMPORTANT! :* Python module for PJSIP has been deprecated and although it may still be usable, the module, as well as this doc page, will no longer be maintained. For the replacement, please use PJSUA2 and Python SWIG binding as describedBarboza
D
15

Twisted supports SIP. That's really cool

Dianemarie answered 4/9, 2009 at 18:41 Comment(3)
Note that Twisted's SIP implementation is somewhat dated, it's still compliant with the old RFC (2543).Darksome
They are trying to update it to RFC 3261 according to twistedmatrix.com/trac/wiki/SIPPlan but it is not a high priority, see twistedmatrix.com/trac/ticket/3584Cochin
@Dianemarie can you give me a sipmle example of using twisted sip protocol?Aileneaileron
D
11

You might want to have a look at Sippy. It's a B2BUA with a complete SIP stack implementation underneath (you could use just that). It's written entirely in Python, so it's pretty hackable. Sippy is implemented with Twisted but uses none of its SIP functionality.

Darksome answered 19/11, 2009 at 7:27 Comment(1)
The link you gave is a site that says Hello World at the root.Marriott

© 2022 - 2024 — McMap. All rights reserved.