[OpenSIPS-Users] Incomplete REFER sent using mi_xmlrpc with t_uac_dlg

Duane Larson duane.larson at gmail.com
Sun Aug 12 05:48:33 CEST 2012


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:9016XX6XX4 at irock.com</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 &lt;sip:9016XX6XX4 at irock.com&gt;&#13;&#10;From:
sip:clicktodial at ae.com;tag=1344742147&#10;&#13;&#10;Refer-To: &
lt;sip:9013XX3XX6 at irock.com&gt;&#13;&#10;Call-ID:
1344742147&#10;&#13;&#10;Contact: sip:caller at 50.XX.XX.156:5060&#13;&#10;CSeq:
1 REFER&#13;&#10;</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:9016XX6XX4 at 192.168.88.13:3072
sip:9016XX6XX4 at 192.168.88.13:3072
.
Via: SIP/2.0/UDP 50.XX.XX.156;branch=z9hG4bKaa28.2053f3f1.0.
From: &lt;sip:clicktodial at ae.com&gt;.
To: "Duane" &lt;sip:9016XX6XX4 at irock.com&gt;;tag=4tjber3kod.
Call-ID: 0b54533938f28722-2345 at 50.XX.XX.156.
CSeq: 10 REFER.
Contact: &lt;sip:9016XX6XX4 at 192.168.88.13:3072&gt;;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:9016XX6XX4 at 192.168.88.13: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:9016XX6XX4 at irock.com>
From: <sip:clicktodial at ae.com>;tag=1344742147
CSeq: 10 REFER
Call-ID: 0b54533938f28722-2345 at 50.XX.XX.156
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120811/7210b3f3/attachment.htm>


More information about the Users mailing list