<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p><br>
</p>
<p>what do you mean by "with default parameters" in your last
remark? Are the To/From not taken from the rpc command?</p>
<p><br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 15/11/16 11:06, Jonathan Hunter
wrote:<br>
</div>
<blockquote
cite="mid:AM4PR0201MB216203634A2A453AA2B221F2BDBF0@AM4PR0201MB2162.eurprd02.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
dir="ltr">
<p>Hi Daniel,</p>
<p><br>
</p>
<p>That works in terms of clearing the error, however I just see
kamailio send a SIP info message to kamailio.org, as apposed
to the RURI I provide, I presume again this will just be
putting the t_uac_dlg parameters in the correct order?</p>
<p><br>
</p>
<p style="font-family: Helvetica, Arial; font-size: 12px;
text-align: justify;">Parameters:</p>
<div class="itemizedlist" style="font-family: Helvetica, Arial;
font-size: 15px;">
<ul class="itemizedlist">
<li class="listitem">
<p style="font-size: 12px; text-align: justify;"><span
class="emphasis"><em>method</em></span> - request
method</p>
</li>
<li class="listitem">
<p style="font-size: 12px; text-align: justify;"><span
class="emphasis"><em>RURI</em></span> - request SIP
URI</p>
</li>
<li class="listitem">
<p style="font-size: 12px; text-align: justify;"><span
class="emphasis"><em>NEXT HOP</em></span> - next hop
SIP URI (OBP); use <span class="quote">“<span
class="quote">.</span>”</span> if no value.</p>
</li>
<li class="listitem">
<p style="font-size: 12px; text-align: justify;"><span
class="emphasis"><em>socket</em></span> - local socket
to be used for sending the request; use <span
class="quote">“<span class="quote">.</span>”</span> if
no value.</p>
</li>
<li class="listitem">
<p style="font-size: 12px; text-align: justify;"><span
class="emphasis"><em>headers</em></span> - set of
additional headers to be added to the request; at least <span
class="quote">“<span class="quote">From</span>”</span> and <span
class="quote">“<span class="quote">To</span>”</span> headers
must be specify)</p>
</li>
<li class="listitem">
<p style="font-size: 12px; text-align: justify;"><span
class="emphasis"><em>body</em></span> - (optional, may
not be present) request body (if present, requires the <span
class="quote">“<span class="quote">Content-Type</span>”</span> and <span
class="quote">“<span class="quote">Content-length</span>”</span> headers)</p>
</li>
</ul>
</div>
As looks like I am defining things correctly now but its not
picking them up, again if I run manually it works in command
line;
<p><br>
</p>
<div>jsonrpc_exec('{"jsonrpc":"2.0","method":"mi","params":
["t_uac_dlg", "INFO",
<a class="moz-txt-link-rfc2396E" href="sip:3003@8.8.8.8">"sip:3003@8.8.8.8"</a>,".",".","From:<a class="moz-txt-link-freetext" href="sip:1234@2.2.2.2">sip:1234@2.2.2.2</a>","To:<a class="moz-txt-link-freetext" href="sip:3003@8.8.8.8">sip:3003@8.8.8.8</a>",<a class="moz-txt-link-rfc2396E" href="Contact:sip:1234@2.2.2.2">"Contact:sip:1234@2.2.2.2"</a>]}');</div>
<div><br>
</div>
<div>All I see it fire is an INFO message to <span>Request-Line:
INFO <a class="moz-txt-link-freetext" href="sip:kamailio.org">sip:kamailio.org</a> SIP/2.0, with default parameters.</span></div>
<br>
<p><br>
</p>
<p>Thanks</p>
<p><br>
</p>
<p>Jon</p>
<div><br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font
style="font-size:11pt" face="Calibri, sans-serif"
color="#000000"><b>From:</b> Daniel-Constantin Mierla
<a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a><br>
<b>Sent:</b> 15 November 2016 08:03<br>
<b>To:</b> Jonathan Hunter; Kamailio SER - Users Mailing
List<br>
<b>Subject:</b> Re: [SR-Users] Send SIP Info within a
dialog using $uac_req(method)="INFO"</font>
<div> </div>
</div>
<div>
<p>Hello,</p>
<p><br>
</p>
<p>iirc, the dots where used in MI protocol to provide
empty values for parameters. Can you try in json with ""
values instead of the dots, or enclose the dots in
double quotes so the json document is valid?</p>
<p><br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 14/11/16 21:04, Jonathan
Hunter wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" dir="ltr"
style="font-size:12pt; color:#000000;
font-family:Calibri,Arial,Helvetica,sans-serif">
<div>Hi Daniel,</div>
<div><br>
</div>
<div>I am just trying to put the mi command into
jsonrpc_exec and looking at the documentation, Im
not sure in this instance how to put down multiple
parameters.</div>
<div><br>
</div>
<div>Running this command works in command line;</div>
<div><br>
</div>
<div>kamctl mi t_uac_dlg INFO <a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:3003@193.144.1.112">
sip:3003@193.144.1.112</a> . . \"From:<a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:1234@8.8.8.8">sip:1234@8.8.8.8</a>"\r\nTo:<a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:3003@193.144.1.112%5Cr%5CnContact:sip:daemon@8.8.8.8%5Cr%5Cn%5C">sip:3003@193.144.1.112\r\nContact:sip:daemon@8.8.8.8\r\n\</a>""</div>
<div><br>
</div>
<div>However if I then look to run it, I have tried
the following (amongst other variations);</div>
<div><br>
</div>
<div><br>
</div>
<div>jsonrpc_exec('{"jsonrpc":"2.0","method":"mi","params":
["t_uac_dlg", "INFO",
<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="sip:3003@193.144.1.112">"sip:3003@193.144.1.112"</a>,.,.,"From:<a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:1234@8.8.8.8">sip:1234@8.8.8.8</a>","To:<a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:3003@193.144.1.112">sip:3003@193.144.1.112</a>",<a
moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="">"Contact:sip:daemon@8.8.8.8"</a>]}');</div>
<div><br>
</div>
<div>I get;</div>
<div><br>
</div>
<div>ERROR: jsonrpc-s [jsonrpc-s_mod.c:1129]:
jsonrpc_exec_ex(): invalid json doc
[[{"jsonrpc":"2.0","method":"mi","params":
["t_uac_dlg", "INFO",
<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="sip:3003@193.144.1.112">"sip:3003@193.144.1.112"</a>,.,.,"From:<a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:1234@8.8.8.8">sip:1234@8.8.8.8</a>","To:<a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:3003@193.144.1.112">sip:3003@193.144.1.112</a>",<a
moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="">"Contact:sip:daemon@8.8.8.8"</a>]}]]</div>
<div><br>
</div>
<div>Can you give me some clues on how to input the
params as its not clear to me from kamailio or json
rpc docs.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Many thanks</div>
<div><br>
</div>
<div>Jon</div>
<div><br>
</div>
<br>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block;
width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font
style="font-size:11pt" face="Calibri,
sans-serif" color="#000000"><b>From:</b>
Daniel-Constantin Mierla
<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:miconda@gmail.com"><miconda@gmail.com></a><br>
<b>Sent:</b> 17 October 2016 09:45<br>
<b>To:</b> Jonathan Hunter; Kamailio SER - Users
Mailing List<br>
<b>Subject:</b> Re: [SR-Users] Send SIP Info
within a dialog using $uac_req(method)="INFO"</font>
<div> </div>
</div>
<div>
<p>Hello,</p>
<p>if you want to run an MI command over RPC, you
have to use 'mi' as the rpc command and the MI
command as the first parameter, followed by the
rest of the parameters for the command.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 14/10/16 14:23,
Jonathan Hunter wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Daniel,
<div><br>
</div>
<div>Also I am trying to fire that command
using jsonrpc_exec and I keep getting;</div>
<div><br>
</div>
<div><br>
</div>
<div>jsonrpc_exec_ex(): method callback not
found [t_uac_dlg]</div>
<div><br>
</div>
<div>I have tried with t.uac_dlg and get the
same response, can you let me know if this
command is support with this module on 4.3
please and if so what am I doing wrong with
the syntax?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Jon<br>
<br>
<div>
<hr id="stopSpelling">
From: <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:hunterj91@hotmail.com">hunterj91@hotmail.com</a><br>
To: <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:miconda@gmail.com">miconda@gmail.com</a>;
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
Date: Fri, 14 Oct 2016 08:52:25 +0000<br>
Subject: Re: [SR-Users] Send SIP Info
within a dialog using
$uac_req(method)="INFO"<br>
<br>
<style>
<!--
.ExternalClass .ecxhmmessage p
{padding:0px}
.ExternalClass body.ecxhmmessage
{font-size:12pt;
font-family:Calibri}
-->
</style>
<div dir="ltr">Hi Daniel,
<div><br>
</div>
<div>Thanks for the response, sorry I
must of missed this!</div>
<div><br>
</div>
<div>I was thinking of using
the t_uac_dlg command to generate the
INFO message, but will this allow me
to do it within an established INVITE
dialog?</div>
<div><br>
</div>
<div>I am just worried that changing the
CSEQ value will cause issues, so am I
better looking to modify in a B2BUA
rather than the proxy, or will the
dialog module handle this?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Jon</div>
<div><br>
</div>
<div><br>
<div>
<hr id="ecxstopSpelling">
To: <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:sr-users@lists.sip-router.org">
sr-users@lists.sip-router.org</a><br>
From: <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
Date: Thu, 6 Oct 2016 12:41:32 +0200<br>
Subject: Re: [SR-Users] Send SIP
Info within a dialog using
$uac_req(method)="INFO"<br>
<br>
Hello,<br>
uac_req_send() is able to send only
initial requests (with follow up on
auth challenge). It doesn't expose
the ability to send requests within
a dialog -- the functions exist in c
(tm module), but not availble in
config.<br>
On the other hand, there should be a
mi/rpc command exported by tm module
that allows that -- it may be
possible to do it from config file
via jsonrpc-s module.<br>
Cheers,<br>
Daniel<br>
<br>
<br>
<div class="ecxmoz-cite-prefix">On
29/09/16 21:41, Jonathan Hunter
wrote:<br>
</div>
<blockquote>
<style>
<!--
.ExternalClass .ecxhmmessage p
{padding:0px}
.ExternalClass body.ecxhmmessage
{font-size:12pt;
font-family:Calibri}
-->
</style>
<div dir="ltr">
<pre style="white-space:pre-wrap">Hi Guys,</pre>
<pre style="white-space:pre-wrap">Is it still the case that when using uac_req_send, you cant send withing a specific dialog?</pre>
<pre style="white-space:pre-wrap"><span style="font-family:Calibri,sans-serif; font-size:12pt">I can modify call-id, but I presume tags may be more of a problem?</span></pre>
<pre style="white-space:pre-wrap">See old post below from 2015;</pre>
<pre style="white-space:pre-wrap">><i> I am familiar with uac_req_send. but how do I send it with in a
</i>><i> specific dialog and with data in the INFO req ?
</i>sending a new request inside a dialog is not possible with
uac_req_send(). It is not easy over all because you change the sequence
order (CSeq value). Practically, you need to track how many requests you
sent from the middle to update (and restore in reply) when caller or
callee sends a new request.
dialog module can track changes in CSeq for requests sent to callee,
being used now for authentication of INVITE to another provider, when
Kamailio adds the credentials. But for more you would need to extend the
dialog module.
I just need to send a SIP info within an established dialog to stop some function up stream, so wondered if this is still a blocker?</pre>
<pre style="white-space:pre-wrap">Many thanks</pre>
<pre style="white-space:pre-wrap">Jon</pre>
</div>
<br>
<fieldset
class="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="ecxmoz-signature">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
<br>
_______________________________________________ SIP Express Router (SER)
and Kamailio (OpenSER) - sr-users
mailing list
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></div>
</div>
</div>
<br>
_______________________________________________ SIP Express Router (SER)
and Kamailio (OpenSER) - sr-users mailing
list
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>