You may uncomment that part of config on mediaproxy.ini, then let kamailio load mi_datagram module with parameters that match that same socket.

Eg:

mi_datagram socket in kamailio == [OpenSIPS] socket path in mediaproxy

mediaproxy socket in kamailio == [Dispatcher] socket path in mediaproxy

-giovanni



On 2 November 2016 at 14:06, Laura <red_dra@plugit.net> wrote:

Yes Giovanni..

Of course it was referred to Internal Dispatcher of mediaproxy and not to the kamailio module.

On Kamailio i have configured the socket here

modparam("mediaproxy", "mediaproxy_socket", "/var/run/mediaproxy/dispatcher.sock")
modparam("mediaproxy", "mediaproxy_timeout", 500)

and over the mediaproxy config.ini here..

[Dispatcher]
; Local socket on which to communicate with OpenSIPS. The OpenSIPS mediaproxy
; module should be configured to connect to this socket. If a relative path,
; /var/run/mediaproxy will be prepended. Default value is dispatcher.sock.
;
socket_path = dispatcher.sock

In the filesystem the socket is correct..

vm-test:/etc/kamailio# ls -l /var/run/mediaproxy/dispatcher.sock
srw-rw-rw- 1 root root 0 Jul 24 09:28 /var/run/mediaproxy/dispatcher.sock


So all seem to be correct.. but on syslog i still see lot of these errors.

Nov  2 13:04:36 vm-test media-dispatcher[25540]: error: cannot write request to `/var/run/opensips/socket': No such file or directory
Nov  2 13:04:36 vm-test media-dispatcher[25540]: error: failed to end dialog: Cannot send request to OpenSIPS

I think that the problem is referred to this section of mediaproxy config.ini

[OpenSIPS]
; Configure interaction between the media dispatcher and OpenSIPS

; Path to OpenSIPS's UNIX filesystem socket from the mi_datagram module. 
; socket_path = /var/run/opensips/socket
 
; Maximum number of connections to open with OpenSIPS's 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 = 50

It is referred to mi_datagram module that i have not enable on the config.

Is it possible.. how can i fix it ?

Thanks
Laura






Il 02/11/16 13:08, Giovanni Maruzzelli ha scritto:
You can find the Kamailio parameter to tweak here:

http://kamailio.org/docs/modules/4.4.x/modules/mediaproxy.html#idp27686148

(you were referring to mediaproxy internal dispatcher, I had understood dispatcher module).

-giovanni

On 2 November 2016 at 12:58, Giovanni Maruzzelli <gmaruzz@gmail.com> wrote:
Dear Laura,

you probably are trying to use a config file made for OpenSIPS on Kamailio.

Also, you probably do not have configured the correct paths for socket (fifo, etc?) in it.

Dispatcher has nothing to do with mediaproxy.

Eg, a lot of confusion here.

You better start from Kamailio config file, and modify it as needed.

-giovanni


On 2 November 2016 at 12:27, Laura <red_dra@plugit.net> wrote:
Dear support,

on my Kamailio server (version: kamailio 4.3.6 (x86_64/linux) )  i see
lot of these messages..

Nov  2 11:24:42 vm-test media-dispatcher[25540]: error: cannot write
request to `/var/run/opensips/socket': No such file or directory
Nov  2 11:24:42 vm-test media-dispatcher[25540]: error: failed to end
dialog: Cannot send request to OpenSIPS

I have only configured Disptachet (mediaproxy) for write on db..

Any idea ?

Thanks

Laura


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



--
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618



--
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




--
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618