[reSIProcate] Setting a different UDP port?

Jason Fischl jason at purplecomm.com
Mon Nov 15 13:59:46 CST 2004


Christian_Gavin at logitech.com wrote:
> Hi,
> 
> I am testing the basic_register project under DUM.
> 
> I am trying to change the default port from 5060 to 5065 by doing:
> 
> ...
>    DialogUsageManager clientDum;
>    clientDum.addTransport(UDP, 5065);
> ...
> 
> Unfortunately this only changes the source port but not the destination
> port (I sniffed packets with Ethereal). I want to REGISTER to an outbound
> proxy that is on port 5065. I have no problem REGISTERing on a proxy that
> is on the default port 5060.
> 
> Thanks for any help on this!

You can do this several different ways:

1. Set up a DNS SRV record for your domainname.
_sip._udp.example.com	-> 	0 0 5065 proxy.example.com

2. set an outbound proxy in the profile
Profile profile;
Uri ob;
ob.host() = "proxy.example.com";
ob.port() = 5065;
profile.setOutboundProxy(ob);

3. use a preloaded route
SipMessage& reg = dum.makeRegister(target);
reg.header(h_Routes).push_front(NameAddr(ob));




More information about the resiprocate-devel mailing list