<p dir="ltr">Look at sippy b2bua for some ideas. Its a python based b2bua.</p>
<div class="gmail_quote">On Dec 18, 2013 4:54 PM, "Daniel Pocock" <<a href="mailto:daniel@pocock.com.au">daniel@pocock.com.au</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
I understand Kamailio has a Python module<br>
<br>
We've recently started adding Python into repro (the reSIProcate proxy)<br>
too[1]<br>
<br>
There are also other projects involving SIP and Python (e.g. the PjSIP<br>
Python API and the Python SIP library used by SylkServer)<br>
<br>
One thing that occurred to me is that it may be useful to have a common<br>
API or at the bare minimum a common set of data types (e.g. Python<br>
classes for SIP URIs, classes for the most common SIP headers and a<br>
class for the SIP message itself) so that people can mix and match<br>
Python code between all the projects.<br>
<br>
For example, the Python urlparse module claims to support the "sip:"<br>
scheme but in practice it is not supporting it very well, if you put in<br>
the URI <a href="mailto:sip%3Adaniel@pocock.com.au">sip:daniel@pocock.com.au</a> then it tells you that<br>
   username=None<br>
   hostname=None<br>
   path=<a href="mailto:daniel@pocock.com.au">daniel@pocock.com.au</a><br>
<br>
Has anybody else had similar ideas about doing something in this space?<br>
<br>
1. <a href="http://danielpocock.com/embedding-python-multi-threaded-cpp" target="_blank">http://danielpocock.com/embedding-python-multi-threaded-cpp</a><br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</blockquote></div>