<div dir="ltr"><div>Thank you very much for the pointers! I'll dig into it a bit later when I have more time.<br><br></div>Yufei<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 July 2014 11:00,  <span dir="ltr"><<a href="mailto:sipbeyondvoip-request@lists.ag-projects.com" target="_blank">sipbeyondvoip-request@lists.ag-projects.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send SIPBeyondVoIP mailing list submissions to<br>
        <a href="mailto:sipbeyondvoip@lists.ag-projects.com">sipbeyondvoip@lists.ag-projects.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip" target="_blank">http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:sipbeyondvoip-request@lists.ag-projects.com">sipbeyondvoip-request@lists.ag-projects.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:sipbeyondvoip-owner@lists.ag-projects.com">sipbeyondvoip-owner@lists.ag-projects.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of SIPBeyondVoIP digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: In-Dialog Requests (Sa?l Ibarra Corretg?)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 17 Jul 2014 16:10:37 +0200<br>
From: Sa?l Ibarra Corretg? <<a href="mailto:saul@ag-projects.com">saul@ag-projects.com</a>><br>
To: SIP Beyond VoIP <<a href="mailto:sipbeyondvoip@lists.ag-projects.com">sipbeyondvoip@lists.ag-projects.com</a>><br>
Subject: Re: [SIP Beyond VoIP] In-Dialog Requests<br>
Message-ID: <<a href="mailto:38D2EF96-BD45-463A-B9BB-B68D43D5E20E@ag-projects.com">38D2EF96-BD45-463A-B9BB-B68D43D5E20E@ag-projects.com</a>><br>
Content-Type: text/plain; charset="windows-1252"<br>
<br>
Hi Yufei,<br>
<br>
On 15 Jul 2014, at 17:15, Yufei Tao <<a href="mailto:yufei.tao@gmail.com">yufei.tao@gmail.com</a>> wrote:<br>
<br>
> 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>
><br>
> 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>
><br>
> But since by default PJSIP sip session only handles INVITE, BYE, ACK, CANCEL, UPDATE and PRACK messages,<br>
> it gave me an "500 Unhandled by dialog usages" when it received in-dialog INFO message.<br>
><br>
><br>
> Is there any way to solve this please? Thank you!<br>
><br>
<br>
This is part of the core Invitation API, so you?ll need to get your hands dirty ;-)<br>
<br>
Look in _Invitation_cb_tsx_state_changed function in sip simple/core/_core.invitation.pxi, at the bottom we handle incoming REFER and OPTIONS requests.<br>
<br>
You?ll need to add 2 things: a callback for incoming requests which post an event such as ?SIPInvitationGotInDialogRequest" and a method to send such requests, something like ?send_in_dialog_request?, which takes a method name, a lost of headers and an optional body.<br>

<br>
<br>
PS: I thought I had sent this, but it ended up on my drafts folder.<br>
<br>
--<br>
Sa?l Ibarra Corretg?<br>
AG Projects<br>
<br>
<br>
<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: signature.asc<br>
Type: application/pgp-signature<br>
Size: 842 bytes<br>
Desc: Message signed with OpenPGP using GPGMail<br>
URL: <<a href="http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20140717/37214cab/attachment-0001.pgp" target="_blank">http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20140717/37214cab/attachment-0001.pgp</a>><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
SIPBeyondVoIP mailing list<br>
<a href="mailto:SIPBeyondVoIP@lists.ag-projects.com">SIPBeyondVoIP@lists.ag-projects.com</a><br>
<a href="http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip" target="_blank">http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip</a><br>
<br>
<br>
End of SIPBeyondVoIP Digest, Vol 62, Issue 8<br>
********************************************<br>
</blockquote></div><br></div>