<p>Hello,</p>
<p>I have a bug with mi_xmlrpc_ng module when using tm module MI function t_uac_dlg.<br>
I am using it to restart phones and manage MWI.</p>
<p>Python script example to reproduce problem (I have the same problem with ruby xmlrpc client):</p>
<pre><code>#!/usr/bin/env python
import xmlrpclib
opensips = xmlrpclib.ServerProxy('http://10.130.8.20:8000/RPC2')
headers="From: <sip:7714@voip.etsmtl.ca>;tag=8755a8d01aa27e903a6f4ccaf393f04\r\nTo: <sip:7714@voip.etsmtl.ca>\r\nEvent: check-sync\r\n"
opensips.t_uac_dlg('NOTIFY', 'sip:7714@campus.voip.etsmtl.ca', ".", ".", headers)
</code></pre>
<p>When I run the script, opensips generates following NOTIFY packet (from <strong>ngrep</strong>):</p>
<pre><code>NOTIFY sip:7714@10.130.8.209 SIP/2.0.
Via: SIP/2.0/UDP 10.130.8.20:5060;branch=z9hG4bK43ec.c13af041.0.
Via: SIP/2.0/UDP 10.130.8.20:5060;branch=z9hG4bK43ec.b13af041.0.
To: sip:7714@voip.etsmtl.ca.
From: <sip:7714@voip.etsmtl.ca>;tag=8755a8d01aa27e903a6f4ccaf393f04.
CSeq: 10 NOTIFY.
Call-ID: 1c1bbe0b4e2c0d26-27166@10.130.8.20.
Max-Forwards: 69.
Content-Length: 0.
Server: ETS voip router01.
Event: check-sync
.
</code></pre>
<p>There is a terminating character "." is missing in header <em>Event: check-sync</em>. Some phone (Avaya) do not accept the packet.</p>
<p>When I run FIFO same command:</p>
<pre><code>opensipsctl fifo t_uac_dlg NOTIFY sip:7714@campus.voip.etsmtl.ca . . '"From: <sip:7714@voip.etsmtl.ca>;tag=8755a8d01aa27e903a6f4ccaf393f04\r\nTo: <sip:7714@voip.etsmtl.ca>\r\nEvent: check-sync\r\n"'
</code></pre>
<p>My packet looks fine and phones accept it:</p>
<pre><code>NOTIFY sip:7714@10.130.8.209 SIP/2.0.
Via: SIP/2.0/UDP 10.130.8.20:5060;branch=z9hG4bKb31f.4656abe3.0.
Via: SIP/2.0/UDP 10.130.8.20:5060;branch=z9hG4bKb31f.3656abe3.0.
To: sip:7714@voip.etsmtl.ca.
From: <sip:7714@voip.etsmtl.ca>;tag=8755a8d01aa27e903a6f4ccaf393f04.
CSeq: 10 NOTIFY.
Call-ID: 1c1bbe0b4e2c0d1f-27167@10.130.8.20.
Max-Forwards: 69.
Content-Length: 0.
Server: ETS voip router01.
Event: check-sync.
.
</code></pre>
<p>The same problem I have with MWI packets. </p>
<p>OpenSIPS version:<br>
version: opensips 1.11.5-notls (x86_64/linux)<br>
flags: STATS: On, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
git revision: <a href="https://github.com/OpenSIPS/opensips/commit/980b680a3a1b27d5894943daec2adf029bd5897f" class="commit-link"><tt>980b680</tt></a><br>
main.c compiled on 16:04:51 Jun 1 2015 with gcc 4.4.7</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/537">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciXNB5YiP7gpyfKGL_A6Ht4m6vR1Lks5oPMGegaJpZM4EzfXn.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/537"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>