[Serusers] help required disabling DNS lookup

Michal Matyska michal.matyska at iptel.org
Tue Apr 1 13:50:24 CEST 2008


geethanjali.csg at wipro.com píše v Út 01. 04. 2008 v 10:41 +0530:
> Hi Martin,
> 
> I have 2 users A and B registered to 2 domains domainA and domainB.
> 
> When A calls B at domainB, DNS lookup is happening. Also I have routing
> logic logic in ser.cfg which is,
> 
> if(method == INVITE && uri=~*@domainB)
> {
> 	forward(192.168.2.105,5060)
> }

I think your RE is not correct, should be like this:
if(method == INVITE && uri=~".*@domainB")

If you use CVS head version you can also use
if(method == INVITE && @ruri.host=="domainB")

Put xlog statement into the block to make sure the request is passing
the forward .... and (depends on the rest of the script) you also might
want to put drop there at the end.

Michal




More information about the sr-users mailing list