<div dir="ltr"><pre>Hi Adrian<br><br>Thanks very much for the quick reply! What I want to do is to send and process in-dialog messages like INFO, <br>nothing to do with complex call features. So I have been using Invitation from the core, not even Session from Middleware API.<br>
<br></pre><pre>The in-dialog requests (INFO etc) need to have the same call_id, to_tag, from_tag as the dialog obviously, <br>and the BYE request that comes after these requests should have its cseq updated accordingly. <br>
<br></pre><pre>But since by default PJSIP sip session only handles <i>INVITE, BYE, ACK, CANCEL, UPDATE and PRACK messages, <br></i></pre><pre><i>it gave me an "500 Unhandled by dialog usages" when it received in-dialog INFO message. <br>
<br></i></pre><pre><i>Is there any way to solve this please? Thank you!<br><br></i></pre><pre><i>Yufei<br></i></pre><pre><br><br>SIP SIMPLE SDK is using PJSIP stack but is not a mere 1-1 wrapper for low level PJSIP functions.
The SDK has its own capabilities and functions that may map or not with PJSIP functions.
The documentation is here:
On 15 Jul 2014, at 15:32, Yufei Tao <<a href="http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip">yufei.tao at gmail.com</a>> wrote:
</i>><i> I want to use send and process in-dialog (invitation dialog) requests using Python SipSimple but got 500 unhandled error from the SipSimple client that receives the in-dialog request. From the documentation:
</i>><i> <a href="http://www.pjsip.org/release/0.5.4/PJSIP-Dev-Guide.pdf">http://www.pjsip.org/release/0.5.4/PJSIP-Dev-Guide.pdf</a>
</i>><i> 12.1.5. Application can use base dialog API to create and send requests inside the dialog
</i>><i> 12.1.6. the invite session handles INVITE, BYE, ACK, CANCEL, UPDATE and PRACK messages that occurs in a dialog. When application wants to support or handle other types of messages, it must reigster itself to the dialog as dialog usage. This will enable the application to process incomding requests that are "unhandled" by existing dialog's usages.
</i>><i> Obviously this is supported by PJSip. But does this have any wrapper in Python SipSImple? I had a look at the code but failed to find it. Any tips or examples?
</i>><i> Thank you!
</i>><i> SIPBeyondVoIP mailing list
</i>><i> <a href="http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip">SIPBeyondVoIP at lists.ag-projects.com</a>
</i>><i> <a href="http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip">http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip</a>