<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>just to point out a trick that sometime can save backslash
escaping of quotes. One can start the function parameters with
single quote, then double quotes don't need to be escaped. Other
blackslashes need to be escaped and it this case you need more
because you want to propagate then to the command line.</p>
<p><br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 16/11/16 19:39, Jonathan Hunter
wrote:<br>
</div>
<blockquote
cite="mid:AM4PR0201MB2162779F94A9E20D6BAF07D0BDBE0@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>Figured out the syntax and its working great in terms of
generating the SIP INFO message, just need to get it to send
within dialog and I have a solution.</p>
<p><br>
</p>
<p>For reference the following works;</p>
<p><br>
</p>
<p><span>exec_avp("kamctl mi t_uac_dlg INFO
<a class="moz-txt-link-freetext" href="sip:3003@193.144.1.112">sip:3003@193.144.1.112</a> . .
\\\"From:$fu\"\\r\\nTo:$tu\\r\\nContact:$ct\\r\\n\\\"\"",
"$avp(test)");</span><br>
</p>
<p><span><br>
</span></p>
<p><span>Many thanks again.</span></p>
<p><span><br>
</span></p>
<p><span>Jon</span></p>
<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>
sr-users <a class="moz-txt-link-rfc2396E" href="mailto:sr-users-bounces@lists.sip-router.org"><sr-users-bounces@lists.sip-router.org></a> on
behalf of Jonathan Hunter <a class="moz-txt-link-rfc2396E" href="mailto:hunterj91@hotmail.com"><hunterj91@hotmail.com></a><br>
<b>Sent:</b> 16 November 2016 12:06<br>
<b>To:</b> Kamailio SER - Users Mailing List;
<a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
<b>Subject:</b> Re: [SR-Users] Send SIP Info within a
dialog using $uac_req(method)="INFO"</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" dir="ltr"
style="font-size:12pt; color:#000000;
font-family:Calibri,Arial,Helvetica,sans-serif">
<div>Hello Daniel,</div>
<div><br>
</div>
<div>Sorry to bother you again, last time!</div>
<div><br>
</div>
<div>So the mi command line is;</div>
<div><br>
</div>
<div>kamctl mi t_uac_dlg INFO <a class="moz-txt-link-freetext" href="sip:3003@193.144.1.112">sip:3003@193.144.1.112</a> . .
\"From:<a class="moz-txt-link-freetext" href="sip:1234@8.8.8.8">sip:1234@8.8.8.8</a>"\r\nTo:<a class="moz-txt-link-freetext" href="sip:3003@193.144.1.112\r\nContact:sip:daemon@8.8.8.8\r\n\">sip:3003@193.144.1.112\r\nContact:sip:daemon@8.8.8.8\r\n\</a>""</div>
<div><br>
</div>
<div>Which works fine, however I add to exec module and it
doesnt like the syntax;</div>
<div><br>
</div>
<div><span style="font-size:12pt">exec_avp("kamctl mi
t_uac_dlg INFO <a class="moz-txt-link-freetext" href="sip:3003@193.144.1.112">sip:3003@193.144.1.112</a> . .
\"From:<a class="moz-txt-link-freetext" href="sip:1234@8.8.8.8">sip:1234@8.8.8.8</a>"\r\nTo:<a class="moz-txt-link-freetext" href="sip:3003@193.144.1.112\r\nContact:sip:daemon@8.8.8.8\r\n\">sip:3003@193.144.1.112\r\nContact:sip:daemon@8.8.8.8\r\n\</a>""",
"$avp(test)");</span><br>
</div>
<div><br>
</div>
<div>I presume its due to the \" and \r\n characters.</div>
<div><br>
</div>
<div>What should I modify them or surround them with to
please the exec command, as I can see in documentation
for variables its '' quotes, but not sure around
characters.</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Jon</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 class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a><br>
<b>Sent:</b> 16 November 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><br>
</p>
<p>as I can see in the logs, the rpc command fails to
execute because it requires async processing which
is not implemented by jsonrpc-s module. Then it is
an INVITE received:</p>
<p><br>
</p>
<div>ct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: INFO: <script>: Try
and issue command via RPC</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: INFO: <script>:
getting here 500</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: INFO: <script>:
getting here this rpc transport does not support
async mode</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: INFO: <script>:
getting here
{"jsonrpc":"2.0","error":{"code":-32000,"message":"Execution
Error"}}</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: INFO: <script>:
route EXTENIN-We have an Invite here from
209-thirdlane check Hash table trans to see if there<br>
<br>
A solution for now would be to run the mi command
via exec module.<br>
<br>
Cheers,<br>
Daniel<br>
</div>
<br>
<div class="moz-cite-prefix">On 15/11/16 12:30,
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">
<p>Hello,</p>
<p><br>
</p>
<p>Please see debug output for when I try and send
the SIP INFO when I am initiating a new call.</p>
<p><br>
</p>
<p>I am just testing out the command currently, in
practice I will look to inject the SIP INFO into
an already formed dialog, so is the way I am
trying to test cause me an issue?</p>
<p><br>
</p>
<p>I can see;</p>
<p><br>
</p>
<p><span style="">Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm
[uac.c:249]: t_uac_prepare(): DEBUG:tm:t_uac:
next_hop=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="sip:kamailio.org"><sip:kamailio.org></a></span><br>
</p>
<p><span style=""><br>
</span></p>
<p><span style="">Which will be why its sending
the sip info to <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:kamailio.org">
sip:kamailio.org</a> I presume.</span></p>
<p><span style=""><br>
</span></p>
<p><span style="">See some output from the
relevant process below;</span></p>
<p><span style=""><br>
</span></p>
<p><span style="">Thanks</span></p>
<p><span style=""><br>
</span></p>
<p><span style="">Jon</span></p>
<p><br>
</p>
<div>ct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: INFO: <script>:
Try and issue command via RPC</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: INFO: <script>:
getting here 500</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: INFO: <script>:
getting here this rpc transport does not support
async mode</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: INFO: <script>:
getting here
{"jsonrpc":"2.0","error":{"code":-32000,"message":"Execution
Error"}}</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: INFO: <script>:
route EXTENIN-We have an Invite here from
209-thirdlane check Hash table trans to see if
there</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: INFO: <script>:
We can populate here with
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:209-thirdlane@192.33.132.215,sip:07917190438@192.33.132.215,MmU2NDI0MGNmZTVmZjE4ZWM0NzI5ZjcxYmExMzdkNGQ">sip:209-thirdlane@192.33.132.215,sip:07917190438@192.33.132.215,MmU2NDI0MGNmZTVmZjE4ZWM0NzI5ZjcxYmExMzdkNGQ</a></div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm [uac.c:249]:
t_uac_prepare(): DEBUG:tm:t_uac: next_hop=<a
moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="sip:kamailio.org"><sip:kamailio.org></a></div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[dns_cache.c:537]: _dns_hash_find():
(_sip._udp.kamailio.org(22), 33), h=392</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[resolve.c:741]: get_record():
lookup(_sip._udp.kamailio.org, 33) failed</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[dns_cache.c:864]: dns_cache_mk_bad_entry():
(_sip._udp.kamailio.org, 33, 60, 1)</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[dns_cache.c:798]: dns_cache_add(): adding
_sip._udp.kamailio.org(22) 33 (flags=1) at 392</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[dns_cache.c:537]: _dns_hash_find():
(kamailio.org(12), 1), h=235</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[resolve.c:937]: get_record(): skipping 0 NS
(p=0x9ed4ae, end=0x9ed4ae)</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[resolve.c:952]: get_record(): parsing 0 ARs
(p=0x9ed4ae, end=0x9ed4ae)</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[dns_cache.c:1741]: dns_get_related():
(0x7fb9632c04c8 (kamailio.org, 1), 1, *(nil))
(0)</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[dns_cache.c:840]: dns_cache_add_unsafe():
adding kamailio.org(12) 1 (flags=0) at 235</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[forward.c:174]: get_out_socket(): socket
determined: 0x7fb96c730fc8</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm [uac.c:150]:
dlg2hash(): DEBUG: dlg2hash: 18155</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: INFO: <script>:
We appear to have an entry for 209-thirdlane and
its 10.70.1.129so modify Accordingly</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm
[t_lookup.c:1312]: t_newtran(): DEBUG:
t_newtran: msg id=4 , global msg id=4 , T on
entrance=(nil)</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm
[t_lookup.c:466]: t_lookup_request():
t_lookup_request: start searching: hash=4096,
isACK=0</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm
[t_lookup.c:424]: matching_3261(): DEBUG:
RFC3261 transaction matching failed</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm
[t_lookup.c:648]: t_lookup_request(): DEBUG:
t_lookup_request: no transaction found</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm
[t_hooks.c:358]: run_reqin_callbacks_internal():
DBG: trans=0x7fb9632c6558, callback type 1, id 0
entered</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm
[t_hooks.c:358]: run_reqin_callbacks_internal():
DBG: trans=0x7fb9632c6558, callback type 1, id 0
entered</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[md5utils.c:67]: MD5StringArray(): MD5
calculated: ede2024c259a7db0dd7350b8d0d986f8</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm
[t_funcs.c:321]: t_relay_to(): SER: new INVITE</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[mem/shm_mem.c:101]: _shm_resize():
WARNING:vqm_resize: resize(0) called</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm
[t_reply.c:647]: _reply_light(): DEBUG: reply
sent out. buf=0x7fb96c9e0340: SIP/2.0 100 Trying</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm
[t_reply.c:657]: _reply_light(): DEBUG:
_reply_light: finished</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <script>:
new branch [0] to
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:07917190438@10.70.1.129">sip:07917190438@10.70.1.129</a></div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: siputils
[checks.c:97]: has_totag(): no totag</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[forward.c:174]: get_out_socket(): socket
determined: 0x7fb96c731808</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: tm
[t_funcs.c:368]: t_relay_to(): SER: new
transaction fwd'ed</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[usr_avp.c:631]: destroy_avp_list(): destroying
list (nil)</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[usr_avp.c:631]: destroy_avp_list(): destroying
list (nil)</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[usr_avp.c:631]: destroy_avp_list(): destroying
list (nil)</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[usr_avp.c:631]: destroy_avp_list(): destroying
list (nil)</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[usr_avp.c:631]: destroy_avp_list(): destroying
list (nil)</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[usr_avp.c:631]: destroy_avp_list(): destroying
list (nil)</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[xavp.c:446]: xavp_destroy_list(): destroying
xavp list (nil)</div>
<div>Oct 7 13:45:36 POC_ProxyA
/usr/sbin/kamailio[6572]: DEBUG: <core>
[receive.c:278]: receive_msg(): cleaning up</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> 15 November 2016 10:59<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>I looked quickly at the code and the mi
command should take the values from the
parameters. Can you run with debug=3 and get
all the logs messages to see if we can spot
something threre.</p>
<p><br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 15/11/16
11:27, 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">
<p>Hi,</p>
<p><br>
</p>
<p>Sorry Daniel, let me be clear.</p>
<p><br>
</p>
<p>Correct the To/From are not taken from
the rpc command, the INFO is
triggered/sent but with the To/From of
the new request coming in;</p>
<p><br>
</p>
<p>Below I dial 07917190438 from ext 209
and this INFO is sent;</p>
<p><br>
</p>
<p><br>
</p>
<div>INFO <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:kamailio.org">sip:kamailio.org</a>
SIP/2.0</div>
<div>Via: SIP/2.0/UDP
8.8.8.8;branch=z9hG4bK63d7.374d4573000000000000000000000000.0</div>
<div>To: <<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:07917190438@">sip:07917190438@</a><span
style="">8.8.8.8</span>></div>
<div>From: <<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:209@">sip:209@</a><span
style="">8.8.8.8</span>>;tag=c32652d8e50f480c90e2f8379a0698aa-ea50</div>
<div>CSeq: 10 INFO</div>
<div>Call-ID:
YWFhMmVmMzUxM2Q2YzUwMzZhOTFjNDc4OGZlYmM2N2I</div>
<div>Max-Forwards: 70</div>
<div>Content-Length: 0</div>
<div>User-Agent: HA PBX</div>
<div><br>
</div>
<div>However this command is triggered to
send the INFO and the To/From/Contact
are not changed/added;</div>
<div><br>
</div>
<div>
<blockquote type="cite" style="">
<div id="divtagdefaultwrapper"
dir="ltr" style="font-size:12pt;
font-family:Calibri,Arial,Helvetica,sans-serif">
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@8.8.8.8">"sip:3003@8.8.8.8"</a>,".",".","From:<a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:1234@2.2.2.2">sip:1234@2.2.2.2</a>","To:<a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:3003@8.8.8.8">sip:3003@8.8.8.8</a>",<a
moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="https://outlook.live.com/owa/?path=/mail/AQMkADAwATE0YzUwLWUxMjQtMzE3Yy0wMAItMDAKAC4AAAN%2F3kvE%2FPvCRZG1c9k9YgOnAQChqxR4ZvI4ToC2kdUvgxopAAACP%2FMAAAA%3D/rp">"Contact:sip:1234@2.2.2.2"</a>]}');</div>
</blockquote>
<br>
</div>
<div><br>
</div>
<div>I assumed (possibly incorrectly) you
can get the command to overwrite the
current contents of the headers, so as
above the RURI would change to
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:3003@8.8.8.8">sip:3003@8.8.8.8</a>
and the From to
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:1234@2.2.2.2">sip:1234@2.2.2.2</a>
etc, however they remain unchanged.</div>
<div><br>
</div>
<div>Does that make sense?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Jon</div>
<div><br>
</div>
<div><br>
</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> 15 November 2016 10:12<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>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 type="cite">
<div id="divtagdefaultwrapper"
dir="ltr" style="font-size:12pt;
color:#000000;
font-family:Calibri,Arial,Helvetica,sans-serif">
<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 moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="sip:3003@8.8.8.8">"sip:3003@8.8.8.8"</a>,".",".","From:<a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:1234@2.2.2.2">sip:1234@2.2.2.2</a>","To:<a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:3003@8.8.8.8">sip:3003@8.8.8.8</a>",<a
moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="">"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
moz-do-not-send="true"
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>
</blockquote>
</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>
</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>
</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>