<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 "Contact" or "Refer-To" 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><?xml version="1.0"?><br><methodCall><br><methodName>t_uac_dlg</methodName><br><params><br>
<param><br><value><string>REFER</string></value><br></param><br><param><br><value><string><a href="mailto:sip%3A9016XX6XX4@irock.com">sip:9016XX6XX4@irock.com</a></string></value><br>
</param><br><param><br><value><string>sip:<a href="http://sip.ae.com:5060">sip.ae.com:5060</a></string></value><br></param><br><param><br><value><string>.</string></value><br>
</param><br><param><br><value><string>To: Duane &<a href="mailto:lt%3Bsip%3A9016XX6XX4@irock.com">lt;sip:9016XX6XX4@irock.com</a>&gt;&#13;&#10;From: <a href="mailto:sip%3Aclicktodial@ae.com">sip:clicktodial@ae.com</a>;tag=1344742147&#10;&#13;&#10;Refer-To: &<a href="mailto:lt%3Bsip%3A9013XX3XX6@irock.com">lt;sip:9013XX3XX6@irock.com</a>&gt;&#13;&#10;Call-ID: 1344742147&#10;&#13;&#10;Contact: sip:caller@50.XX.XX.156:5060&#13;&#10;CSeq: 1 REFER&#13;&#10;</string></value><br>
</param><br></params><br></methodCall><br>##<br>T 2012/08/11 22:29:08.365083 50.XX.XX.156:XXXX -> 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 -> 50.XX.XX.54:48434 [AP]<br>
Content-type: text/xml; charset="utf-8".</div><div>#<br>T 2012/08/11 22:29:08.365369 50.XX.XX.156:XXXX -> 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 -> 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><?xml version="1.0" encoding="UTF-8"?>.<br><methodResponse>.<br><params>.<br><param><value><string>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: &<a href="mailto:lt%3Bsip%3Aclicktodial@ae.com">lt;sip:clicktodial@ae.com</a>&gt;.<br>To: "Duane" &<a href="mailto:lt%3Bsip%3A9016XX6XX4@irock.com">lt;sip:9016XX6XX4@irock.com</a>&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: &lt;sip:9016XX6XX4@192.168.88.13:3072&gt;;reg-id=1.<br>Content-Length: 0.<br>.</div>
<div></string></value></param>.<br></params>.<br></methodResponse>.</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: <sip:192.168.88.1;r2=on;lr><br>Record-Route: <sip:99.114.204.161;r2=on;lr><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 <<a href="mailto:sip%3A9016XX6XX4@irock.com">sip:9016XX6XX4@irock.com</a>><br>
From: <<a href="mailto:sip%3Aclicktodial@ae.com">sip:clicktodial@ae.com</a>>;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 "Refer-To" and "Contact" headers are missing in the message. I know this works when you use mi_fifo. I'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 "Refer-To" and "Contact" headers aren't being inserted into the message.</div>
<div> </div><div> </div>