[OpenSIPS-Users] Mediaproxy cannot write request to opensips mi_datagram socket

Giuseppe Roberti jnod at jnod.org
Sat Nov 15 14:25:39 CET 2008


Hi.

I have configured opensips mi_datagram socket with mode 0666 on file
/tmp/opensips_socket.
But, when i simulate e relay error, media-dispatcher cannot write
(dlg_end_dlg ?) request to opensips.

Here the log:
Issuing "update" command to relay at 192.168.1.67
Issuing "update" command to relay at 192.168.1.67
mediaproxy.interfaces.opensips.UNIXSocketProtocol starting on
'/var/run/mediaproxy/opensips_01.sock'
cannot write request to '/tmp/opensips_socket': No such file or directory
failed to end dialog: Cannot send request to OpenSIPS
Got statistics: {'from_tag': '8be673d8b6e193c5o0', 'callee_packets':
{'audio': 732}, 'dialog_id': '1585:0', 'start_time': 1226754595.4300001,
'timed_out': True, 'caller_bytes': {'audio': 147600}, 'callee_bytes':
{'audio': 146292}, 'call_id': 'fcd18794-f13d3339 at 192.168.1.66',
'to_tag': 'as4f8875fd', 'streams': [{'status': 'closed', 'caller_codec':
'G711u', 'pdd': 3.2557408809699999, 'callee_codec': 'G711u',
'start_time': 0, 'caller_bytes': 146200, 'callee_bytes': 146200,
'callee_remote': '192.168.1.100:15946', 'caller_remote':
'192.168.1.66:16450', 'media_type': 'audio', 'callee_local':
'192.168.1.67:50014', 'timeout_wait': 0, 'caller_local':
'192.168.1.67:50012', 'end_time': 15}], 'caller_packets': {'audio':
741}, 'duration': 15, 'to_uri': '1000 at 192.168.1.67', 'from_uri':
'pap1 at 192.168.1.67', 'callee_ua': 'Asterisk PBX', 'caller_ua':
'Linksys/PAP2-3.1.22(LS)'}
Connection with relay at 192.168.1.67 was closed
Error processing request: Non-update command received from OpenSIPS for
unknown session

Here the config for mi_datagram:
loadmodule "mi_datagram.so"
modparam("mi_datagram", "socket_name", "/tmp/opensips_socket")
modparam("mi_datagram", "children_count", 23)
modparam("mi_datagram", "unix_socket_mode", 0666)

Here the config for media-dispatcher:
[OpenSIPS]
; Configure interaction between the media dispatcher and OpenSIPS
; Path to OpenSIPS' UNIX filesystem socket from the mi_datagram module.
socket_path = '/tmp/opensips_socket'
; Maximum number of connections to open with OpenSIPS' mi_datagram socket.
; Please note that connections will be opened on a need basis depending on
; load, but never more than the number configured below.
max_connections = 10

Here the socket:
srw-rw-rw- 1 root root 0 2008-11-15 14:17 /tmp/opensips_socket

Regards.

-- 
Giuseppe Roberti
<jnod at jnod.org>



More information about the Users mailing list