[OpenSER-Users] regex syntax?

Nick Warr tecno at mobilia.it
Tue Jan 8 18:11:17 CET 2008


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.

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')




More information about the sr-users mailing list