[OpenSIPS-Users] Media proxy basic setup

Jeff Pyle jpyle at fidelityvoice.com
Fri Oct 16 18:38:38 CEST 2009


Dan,

Are you using the dialog module?  I recommend it.  If so, you¹ll need
somewhere in there before any t_relay():

create_dialog();
engage_media_proxy();

This actually switches on Mediaproxy for the call.  It uses the dialog
module to track any reinvites, etc.


- Jeff



On 10/16/09 12:32 PM, "Daniel Goepp" <dan at goepp.net> wrote:

> I have finally successfully install and am running media proxy on the same
> server that I am running opensips.  I have added to the opensips.cfg the
> mediaproxy module
> 
> loadmodule "mediaproxy.so"
> 
> From an example site I tried with these, then commented them out:
> #modparam("mediaproxy", "mediaproxy_socket",
> "/var/run/mediaproxy/dispatcher.sock")
> #modparam("mediaproxy", "mediaproxy_timeout", 500)
> #modparam("mediaproxy", "signaling_ip_avp", "$avp(s:nat_ip)")
> #modparam("mediaproxy", "media_relay_avp", "$avp(s:media_relay)")
> 
> The SDP on my calls are not getting re-written with the IP of the media.  With
> RTP proxy I had to put in the force_rtp_proxy call, but I don't see anything
> similar with media proxy.  Any ideas on what I might look at next to get
> opensips to re-write the SDP?
> 
> Here are the startup commands and output:
> 
> /usr/local/src# media-dispatcher --no-fork
> Starting MediaProxy Dispatcher 2.3.8
> Twisted is using epollreactor
> mediaproxy.dispatcher.RelayFactory starting on 25060
> mediaproxy.dispatcher.OpenSIPSControlFactory starting on
> "'/var/run/mediaproxy/dispatcher.sock'"
> mediaproxy.dispatcher.ManagementControlFactory starting on 25061
> debug: Connection from relay at 127.0.0.1
> debug: Issuing "sessions" command to relay at 127.0.0.1
> 
> /etc/mediaproxy# media-relay --no-fork
> Starting MediaProxy Relay 2.3.8
> Set resource limit for maximum open file descriptors to 11000
> gc: collectable <tuple 0xb7c1152c>
> gc: collectable <StgDict 0xb7a9c6ac>
> gc: collectable <_ctypes.ArrayType 0x8552fc4>
> gc: collectable <getset_descriptor 0xb7bd0a0c>
> gc: collectable <getset_descriptor 0xb7bd09cc>
> gc: collectable <tuple 0xb7f5c61c>
> gc: collectable <tuple 0xb7bd0a2c>
> gc: collectable <StgDict 0xb7a9c91c>
> gc: collectable <_ctypes.ArrayType 0x8554e54>
> gc: collectable <getset_descriptor 0xb7bd08ac>
> gc: collectable <getset_descriptor 0xb7bd048c>
> gc: collectable <tuple 0xb7a632fc>
> gc: collectable <getset_descriptor 0xb7bd060c>
> gc: collectable <getset_descriptor 0xb7bd0c6c>
> /etc/resolv.conf changed, reparsing
> Resolver added ('172.16.0.23', 53) to server list
> <class 'twisted.names.dns.DNSDatagramProtocol'> starting on 21651
> Starting protocol <twisted.names.dns.DNSDatagramProtocol object at 0xb7a2254c>
> (Port 21651 Closed)
> Stopping protocol <twisted.names.dns.DNSDatagramProtocol object at 0xb7a2254c>
> 
> Thanks
> 
> -dg
> 




More information about the Users mailing list