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.
When I do an ngrep on the OpenSIPS server this is what I see on the mi_xml port POST /RPC2 HTTP/1.0. User-Agent: XML-RPC for PHP 3.0.0.beta. Host: sip.ae.com:XXXX. Accept-Encoding: gzip, deflate. Accept-Charset: UTF-8,ISO-8859-1,US-ASCII. Content-Type: text/xml. Content-Length: 703. . <?xml version="1.0"?> <methodCall> <methodName>t_uac_dlg</methodName> <params> <param> <value><string>REFER</string></value> </param> <param> <value><string>sip:[email protected]</string></value> </param> <param> <value><string>sip:sip.ae.com:5060</string></value> </param> <param> <value><string>.</string></value> </param> <param> <value><string>To: Duane <sip:[email protected]> From: sip:[email protected];tag=1344742147 Refer-To: & lt;sip:[email protected]> Call-ID: 1344742147 Contact: sip:[email protected]:5060 CSeq: 1 REFER </string></value> </param> </params> </methodCall> ## T 2012/08/11 22:29:08.365083 50.XX.XX.156:XXXX -> 50.XX.XX.54:48434 [AP] HTTP/1.1 200 OK. # T 2012/08/11 22:29:08.365280 50.XX.XX.156:XXXX -> 50.XX.XX.54:48434 [AP] Content-type: text/xml; charset="utf-8". # T 2012/08/11 22:29:08.365369 50.XX.XX.156:XXXX -> 50.XX.XX.54:48434 [AP] Content-length: 552. ## T 2012/08/11 22:29:08.365488 50.XX.XX.156:XXXX -> 50.XX.XX.54:48434 [AP] Connection: close. Date: Sun, 12 Aug 2012 04:29:07 GMT. Server: XMLRPC_ABYSS/1.06. . <?xml version="1.0" encoding="UTF-8"?>. <methodResponse>. <params>. <param><value><string>202 Accepted sip:[email protected]:3072 sip:[email protected]:3072 . Via: SIP/2.0/UDP 50.XX.XX.156;branch=z9hG4bKaa28.2053f3f1.0. From: <sip:[email protected]>. To: "Duane" <sip:[email protected]>;tag=4tjber3kod. Call-ID: [email protected]. CSeq: 10 REFER. Contact: <sip:[email protected]:3072>;reg-id=1. Content-Length: 0. . </string></value></param>. </params>. </methodResponse>. Here is the actual REFER message that is sent from the OpenSIPS server REFER sip:[email protected]:3072 SIP/2.0 Max-Forwards: 10 Record-Route: <sip:192.168.88.1;r2=on;lr> Record-Route: <sip:99.114.204.161;r2=on;lr> Via: SIP/2.0/UDP 192.168.88.1;branch=z9hG4bKaa28.f3be76d.0 Via: SIP/2.0/UDP 50.XX.XX.156;branch=z9hG4bKaa28.3053f3f1.0 Via: SIP/2.0/UDP 50.XX.XX.156;branch=z9hG4bKaa28.2053f3f1.0 To: Duane <sip:[email protected]> From: <sip:[email protected]>;tag=1344742147 CSeq: 10 REFER Call-ID: [email protected] Content-Length: 0 User-Agent: OpenSIPS (1.8.0-dev0-tls (x86_64/linux)) 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.
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
