You can try replacing the save("location") with the below lines,
if( method==REGISTER)
{
.........
// should be within the authorised condition ...
if( uri=~"sip:[.]*@eniac.alien.bt.co.uk" )
{
save("location");
rewritehost("132.146.196.91");
save("location");
}
else
save("location");
break;
};
You may also need a line diversion of call, ( Not sure, but you can check
without the following )
if( uri=~"sip:[.]*@132.146.196.91" )
{
rewritehost("eniac.alien.bt.co.uk");
forward(uri:host,uri:post);
}
----- Original Message -----
From: <dhiraj.2.bhuyan(a)bt.com>
To: <serusers(a)lists.iptel.org>
Sent: Tuesday, December 02, 2003 10:50 AM
Subject: RE: [Serusers] SIP URL with IP Address Problem
Sorry I attached the wrong config file in my previous email. Correct one
attached -
Regards,
Dhiraj
-----Original Message-----
From: dhiraj.2.bhuyan(a)bt.com [mailto:dhiraj.2.bhuyan@bt.com]
Sent: 02 December 2003 10:48
To: serusers(a)lists.iptel.org
Subject: [Serusers] SIP URL with IP Address Problem
Hello everyone,
I am facing the following problem -
eniac.alien.bt.co.uk = 132.146.196.91
A Grandstream BudgeTone 100 phone is registered to the SER registrar and
proxy running on eniac.alien.bt.co.uk as dhiraj(a)eniac.alien.bt.co.uk
When I try
serctl ping sip:dhiraj@eniac.alien.bt.co.uk
I get back a "200 OK"
But when I do
serctl ping sip:dhiraj@132.146.196.91
I get back a "404".
How to overcome this? I am using SER from the CVS. My ser.cfg is attached.
Thanks,
Dhiraj Bhuyan
Network Security Specialist,
BT Exact
Tel: +44 1473 643932
Mob: +44 7962 012145
Email: dhiraj.2.bhuyan(a)bt.com
----------------------------------------------------------------------------
----
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers