<div dir="ltr"><pre>Thanks very much for the reply! <br>Would be nice to have support for in-dialog requests as it'll make Python SipSimple very flexible for different use cases.<br><br></pre><pre>Yufei<br></pre><pre><br>
Is not possible to perform these function without major plumbing in the core. INFO method is also not implemented.

Adrian

On 15 Jul 2014, at 17:15, Yufei Tao <<a href="http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip">yufei.tao at gmail.com</a>> wrote:

><i> Hi Adrian
</i>><i> 
</i>><i> Thanks very much for the quick reply! What I want to do is to send and process in-dialog messages like INFO, 
</i>><i> nothing to do with complex call features. So I have been using Invitation from the core, not even Session from Middleware API.
</i>><i> 
</i>><i> 
</i>><i> The in-dialog requests (INFO etc) need to have the same call_id, to_tag, from_tag as the dialog obviously, 
</i>><i> and the BYE request that comes after these requests should have its cseq updated accordingly. 
</i>><i> 
</i>><i> 
</i>><i> But since by default PJSIP sip session only handles INVITE, BYE, ACK, CANCEL, UPDATE and PRACK messages, 
</i>><i> it gave me an "500 Unhandled by dialog usages" when it received in-dialog INFO message. 
</i>><i> 
</i>><i> 
</i>><i> Is there any way to solve this please? Thank you!
</i>><i> 
</i>><i> Yufei
</i>><i> 
</i>><i> 
</i>><i> SIP SIMPLE SDK is using PJSIP stack but is not a mere 1-1 wrapper for low level PJSIP functions.
</i>><i> 
</i>><i> The SDK has its own capabilities and functions that may map or not with PJSIP functions.
</i>><i> 
</i>><i> The documentation is here:
</i>><i> 
</i>><i> <a href="http://sipsimpleclient.org/projects/sipsimpleclient/wiki/SipMiddlewareApi">http://sipsimpleclient.org/projects/sipsimpleclient/wiki/SipMiddlewareApi</a>
</i>><i> 
</i>><i> Adrian
</i>><i> 
</i>><i> On 15 Jul 2014, at 15:32, Yufei Tao <yufei.tao at <a href="http://gmail.com">gmail.com</a>> wrote:
</i>><i> 
</i>><i> > Hi
</i>><i> > 
</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> > 
</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> > 
</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> > 
</i>><i> > Thank you!
</i>><i> > Yufei
</i>><i> > _______________________________________________
</i>><i> > SIPBeyondVoIP mailing list
</i>><i> > SIPBeyondVoIP at <a href="http://lists.ag-projects.com">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>
</i>><i> 
</i>><i> --
</i>><i> Adrian</i></pre></div>