[OpenSER-Users] regex syntax?

Iñaki Baz Castillo ibc at in.ilimit.es
Wed Jan 9 10:20:22 CET 2008


On Tuesday 08 January 2008 18:11:17 Nick Warr wrote:
> Hi, I've got a question, I have some really stupid ATAs that can't do
> proper DNS lookups and are are a bit retarded when it comes to making
> calls. Unlike other systems, if I put sipserver.mobilia.it in as the
> proxy/registrar, it decides that its domain is also sipserver.mobilia.it.

Terrible, have you trying upgrading firmware? Maybe you must define proxy or 
domain as "mobilia.it"?

> While registering that isn't too much of a problem, but when I send
> calls to PSTN termination (through a carrier), they'll accept at mobilia.it
> or other domains.. but they don't seem to want @sipserver.mobilia.it.
>
> Instead of asking my carrier to make an exception, I figured it should
> be fairly easy to just drop the sipserver from the ruri, and let it be..
>
> I'm just not sure if I'm getting the sysntax right.. this should do the
> trick, right?
>
> BTW openser 1.1.1 and code borrowed from openser wiki.
>
> subst_uri('/^sip:[0-9]{8,24}@(sipserver.*)$/sip:\1 at mobilia.it;orig_uri=\0/i
>')

And why not the following at the beginning of the script?

  if ($rd == "sipserver.mobilia.it")
	$rd = "mobilia.it";

Note: Not sure if OpenSer 1.1 allows these assignements.




-- 
Iñaki Baz Castillo
ibc at in.ilimit.es




More information about the sr-users mailing list