[OpenSIPS-Users] port number in record-route

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Apr 4 06:54:00 EDT 2017


Hi Satish,

Ok, you listen on non standard ports (7070, 6060, 5062, etc). And 
OpenSIPS (when doing record_route()) will add the RR header along with 
the port indication (according to the interface the request is handled).

If the request is received on x.x.x.x:7070, it will be RR with that IP 
and port.

If the request is received on x.x.x.x:6060, it will be RR with the 6060 
port.

Where is the problem ?

Regards,

Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
   http://www.opensips.org/events/Summit-2017Amsterdam.html

On 03/31/2017 04:31 AM, Satish Patel wrote:
> is there a way i can re-write record-route port number?
>
> On Wed, Mar 29, 2017 at 6:29 PM, Alex Balashov
> <abalashov at evaristesys.com> wrote:
>> Record-Route headers contain URIs, and like any SIP URI, they can contain a port component. If that port component is omitted, 5060 is presumed.
>>
>> On March 29, 2017 6:27:30 PM EDT, Satish Patel <satish.txt at gmail.com> wrote:
>>> what is the use of port number in record-route?
>>>
>>> I am having major issue with that look like we are running sip server
>>> on different port to protect ourself from sip scanner we are using
>>> non-standard port like 6060/7070 multiple port on single server so it
>>> will failover to other port if firewall block them.
>>>
>>> I am seeing record-route adding first port in listen: directive for
>>> example
>>>
>>> listen=udp:x.x.x.x:7070 udp:x.x.x.x:7070 udp:x.x.x.x:5062
>>>
>>> In this case my record-route always using 7070 in header default
>>> recordless request coming on 5062.
>>>
>>> I found one more issue here someone posted while ago
>>>
>>> https://lists.cs.columbia.edu/pipermail/sip-implementors/2001-March/000601.html
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>> -- Alex
>>
>> --
>> Principal, Evariste Systems LLC (www.evaristesys.com)
>>
>> Sent from my Google Nexus.
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list