[Serusers] Need to check usrloc address for from and to

Jan Janak jan at iptel.org
Wed Jul 21 12:57:18 CEST 2004


>From and To header fields do not contain an IP address in most messages,
they typically contain a SIP URI with domain, something like
sip:jan at iptel.org. Comparing it to the IP from contact would be complex
since you would have to do a DNS query (which can return several IP
addreses).

There is no way of doing that so you will have to write a new module.

  Jan.

On 19-07 10:30, Dave wrote:
> Hi,
> 
> I need to make a decision and/or set a flag in the routing script based on
> the IP address of the address record for the contact.
> 
> Basically, I need to check if the current IP address of the From and To in
> an INVITE are the same and act accordingly.
> 
> How do I do this? Do I have to write an exec module and/or a custom ser
> module? I guess the latter is the way to go, unless there's a better way, as
> I don't want to span a new process (exec) for each "INVITE" that passes
> trough the router.
> 
> Any hints are greatly appreciated.
> 
> Dave.
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list