[OpenSIPS-Users] Dialog ping fails with UDP, mhomed and virtual IP

Patrick Wakano pwakano at gmail.com
Wed Sep 24 13:45:46 CEST 2014


Hello list,

I was having a problem in which my Opensips was not sending the Options of
the dialog ping mechanism. After debuging I found out that Opensips could
not send it because it was not listening to the primary IP of the
interface. I am in a mhomed scenario and using Linux-HA so the virtual IP
managed by the heartbeat is the one Opensips listens to. If I configured
Opensips to listen to both IPs then the dialog ping works. Also the problem
only happens in UDP, if I use TCP then it works fine too.

I found this thread that may be related, but with the drouting module:
http://opensips.org/pipermail/users/2013-November/027203.html
So is this an Opensips error in the dialog module or should I face it as a
linux restriction?

The following lines are printed on the log when the dialog ping fails:
 /sbin/opensips[28392]: DBG:dialog:ref_dlg: ref dlg 0xb4e8e37c with 1 -> 4
 /sbin/opensips[28392]: DBG:dialog:send_leg_msg: sending [OPTIONS] to
caller (0)
 /sbin/opensips[28392]: DBG:tm:t_uac: next_hop=<sip:1003m at 100.0.0.50:38283>
 /sbin/opensips[28392]: DBG:core:mk_proxy: doing DNS lookup...
 /sbin/opensips[28392]: ERROR:core:get_out_socket: no socket found
 /sbin/opensips[28392]: ERROR:tm:t_uac: no corresponding socket for af 2
 /sbin/opensips[28392]: ERROR:dialog:send_leg_msg: failed to send the
in-dialog request
 /sbin/opensips[28392]: ERROR:dialog:dlg_ping_routine: failed to ping caller
 /sbin/opensips[28392]: DBG:dialog:unref_dlg: unref dlg 0xb4e8e37c with 1
-> 3 in entry 0xb4d24d74
....
 /sbin/opensips[28392]: DBG:dialog:dlg_ping_routine: dialog
0xb4e8e37c-1537054613 has expired
 /sbin/opensips[28392]: DBG:dialog:init_dlg_term_reason: Setting DLG term
reason to [Ping Timeout]
 /sbin/opensips[28392]: DBG:dialog:send_leg_bye: sending BYE to caller (0)
 /sbin/opensips[28392]: DBG:dialog:ref_dlg: ref dlg 0xb4e8e37c with 1 -> 4
 /sbin/opensips[28392]: DBG:tm:t_uac: next_hop=<sip:1003m at 100.0.0.50:38283>
 /sbin/opensips[28392]: DBG:core:mk_proxy: doing DNS lookup...
 /sbin/opensips[28392]: ERROR:core:get_out_socket: no socket found
 /sbin/opensips[28392]: ERROR:tm:t_uac: no corresponding socket for af 2
 /sbin/opensips[28392]: ERROR:dialog:send_leg_bye: failed to send the BYE
request

Thanks!

Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140924/4fe2a79f/attachment.htm>


More information about the Users mailing list