<div>I am trying to generate a REFER message using mi_xmlrpc and the t_uac_dlg MI Function.  When I send the xmlrpc info to the OpenSIPS server on port XXXX it receives the info but for some reason it sends the REFER message without the &quot;Contact&quot; or &quot;Refer-To&quot; headers included.  I am not sure why or how this is happening.</div>
<div> </div><div>When I do an ngrep on the OpenSIPS server this is what I see on the mi_xml port</div><div> </div><div>POST /RPC2 HTTP/1.0.<br>User-Agent: XML-RPC for PHP 3.0.0.beta.<br>Host: sip.ae.com:XXXX.<br>Accept-Encoding: gzip, deflate.<br>
Accept-Charset: UTF-8,ISO-8859-1,US-ASCII.<br>Content-Type: text/xml.<br>Content-Length: 703.<br>.<br>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;methodCall&gt;<br>&lt;methodName&gt;t_uac_dlg&lt;/methodName&gt;<br>&lt;params&gt;<br>
&lt;param&gt;<br>&lt;value&gt;&lt;string&gt;REFER&lt;/string&gt;&lt;/value&gt;<br>&lt;/param&gt;<br>&lt;param&gt;<br>&lt;value&gt;&lt;string&gt;<a href="mailto:sip%3A9016XX6XX4@irock.com">sip:9016XX6XX4@irock.com</a>&lt;/string&gt;&lt;/value&gt;<br>
&lt;/param&gt;<br>&lt;param&gt;<br>&lt;value&gt;&lt;string&gt;sip:<a href="http://sip.ae.com:5060">sip.ae.com:5060</a>&lt;/string&gt;&lt;/value&gt;<br>&lt;/param&gt;<br>&lt;param&gt;<br>&lt;value&gt;&lt;string&gt;.&lt;/string&gt;&lt;/value&gt;<br>
&lt;/param&gt;<br>&lt;param&gt;<br>&lt;value&gt;&lt;string&gt;To: Duane &amp;<a href="mailto:lt%3Bsip%3A9016XX6XX4@irock.com">lt;sip:9016XX6XX4@irock.com</a>&amp;gt;&amp;#13;&amp;#10;From: <a href="mailto:sip%3Aclicktodial@ae.com">sip:clicktodial@ae.com</a>;tag=1344742147&amp;#10;&amp;#13;&amp;#10;Refer-To: &amp;<a href="mailto:lt%3Bsip%3A9013XX3XX6@irock.com">lt;sip:9013XX3XX6@irock.com</a>&amp;gt;&amp;#13;&amp;#10;Call-ID: 1344742147&amp;#10;&amp;#13;&amp;#10;Contact: sip:caller@50.XX.XX.156:5060&amp;#13;&amp;#10;CSeq: 1 REFER&amp;#13;&amp;#10;&lt;/string&gt;&lt;/value&gt;<br>
&lt;/param&gt;<br>&lt;/params&gt;<br>&lt;/methodCall&gt;<br>##<br>T 2012/08/11 22:29:08.365083 50.XX.XX.156:XXXX -&gt; 50.XX.XX.54:48434 [AP]<br>HTTP/1.1 200 OK.</div><div>#<br>T 2012/08/11 22:29:08.365280 50.XX.XX.156:XXXX -&gt; 50.XX.XX.54:48434 [AP]<br>
Content-type: text/xml; charset=&quot;utf-8&quot;.</div><div>#<br>T 2012/08/11 22:29:08.365369 50.XX.XX.156:XXXX -&gt; 50.XX.XX.54:48434 [AP]<br>Content-length: 552.</div><div>##<br>T 2012/08/11 22:29:08.365488 50.XX.XX.156:XXXX -&gt; 50.XX.XX.54:48434 [AP]<br>
Connection: close.<br>Date: Sun, 12 Aug 2012 04:29:07 GMT.<br>Server: XMLRPC_ABYSS/1.06.<br>.<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;.<br>&lt;methodResponse&gt;.<br>&lt;params&gt;.<br>&lt;param&gt;&lt;value&gt;&lt;string&gt;202 Accepted<br>
<a href="http://sip:9016XX6XX4@192.168.88.13:3072">sip:9016XX6XX4@192.168.88.13:3072</a><br><a href="http://sip:9016XX6XX4@192.168.88.13:3072">sip:9016XX6XX4@192.168.88.13:3072</a><br>.<br>Via: SIP/2.0/UDP 50.XX.XX.156;branch=z9hG4bKaa28.2053f3f1.0.<br>
From: &amp;<a href="mailto:lt%3Bsip%3Aclicktodial@ae.com">lt;sip:clicktodial@ae.com</a>&amp;gt;.<br>To: &quot;Duane&quot; &amp;<a href="mailto:lt%3Bsip%3A9016XX6XX4@irock.com">lt;sip:9016XX6XX4@irock.com</a>&amp;gt;;tag=4tjber3kod.<br>
Call-ID: <a href="mailto:0b54533938f28722-2345@50.XX.XX.156">0b54533938f28722-2345@50.XX.XX.156</a>.<br>CSeq: 10 REFER.<br>Contact: &amp;lt;sip:9016XX6XX4@192.168.88.13:3072&amp;gt;;reg-id=1.<br>Content-Length: 0.<br>.</div>
<div>&lt;/string&gt;&lt;/value&gt;&lt;/param&gt;.<br>&lt;/params&gt;.<br>&lt;/methodResponse&gt;.</div><div> </div><div> </div><div> </div><div> </div><div> </div><div>Here is the actual REFER message that is sent from the OpenSIPS server</div>
<div> </div><div>REFER <a href="http://sip:9016XX6XX4@192.168.88.13:3072">sip:9016XX6XX4@192.168.88.13:3072</a> SIP/2.0<br>Max-Forwards: 10<br>Record-Route: &lt;sip:192.168.88.1;r2=on;lr&gt;<br>Record-Route: &lt;sip:99.114.204.161;r2=on;lr&gt;<br>
Via: SIP/2.0/UDP 192.168.88.1;branch=z9hG4bKaa28.f3be76d.0<br>Via: SIP/2.0/UDP 50.XX.XX.156;branch=z9hG4bKaa28.3053f3f1.0<br>Via: SIP/2.0/UDP 50.XX.XX.156;branch=z9hG4bKaa28.2053f3f1.0<br>To: Duane &lt;<a href="mailto:sip%3A9016XX6XX4@irock.com">sip:9016XX6XX4@irock.com</a>&gt;<br>
From: &lt;<a href="mailto:sip%3Aclicktodial@ae.com">sip:clicktodial@ae.com</a>&gt;;tag=1344742147<br>CSeq: 10 REFER<br>Call-ID: <a href="mailto:0b54533938f28722-2345@50.XX.XX.156">0b54533938f28722-2345@50.XX.XX.156</a><br>
Content-Length: 0<br>User-Agent: OpenSIPS (1.8.0-dev0-tls (x86_64/linux))</div><div> </div><div>You can see that the &quot;Refer-To&quot; and &quot;Contact&quot; headers are missing in the message.  I know this works when you use mi_fifo.  I&#39;ve tried to change up my headers just to be sure that nothing is out of order but nothing seems to fix this issue.  For some reason when using mi_xmlprc with t_uac_dlg and a REFER message the &quot;Refer-To&quot; and &quot;Contact&quot; headers aren&#39;t being inserted into the message.</div>
<div> </div><div> </div>