[Serusers] How to setup mediaproxy without NAT

Andreas Granig andreas.granig at inode.info
Thu Apr 7 00:08:47 CEST 2005


Hi!

apq at dcc.ufam.edu.br wrote:
> I just want to pass the media through tha same machine that has ser.
> 
> I have a two softphones and a SER server at the same network.

When using mediaproxy without NAT-handling, try something like this:

route
{
   # ...
   if(method=="INVITE")
   {
     use_media_proxy();
     t_on_reply("1");
   }
   else if(method=="BYE" || method=="CANCEL")
   {
     end_media_session();
   }
   t_relay();
}

onreply_route[1]
{
   if(status =~ "(180)|(183)|(2[0-9][0-9])" &&
     is_present_hf("Content-Type"))
   {
     use_media_proxy();
   }
}




More information about the sr-users mailing list