Hi, in order to match the domain of "Refer-to" header I must do a dirty string 
substitution:

  $avp(s:rt) = $rt;
  avp_subst("$avp(s:rt)", "/(.*@|[;?].*)//gi");

If for example:

  Refer-To: <sip:[EMAIL PROTECTED]:bobsdesk.
       biloxi.example.net&Call-ID%3D55432%40alicepc.atlanta.example.com>

Then $avp(s:rt) is "biloxi.example.net".

Couldn't be possible to have generic string transformations to get part of a 
URI in any header/variable? Is there any other way I don't know to get it 
easily?

Thanks.

-- 
Iñaki Baz Castillo
[EMAIL PROTECTED]

_______________________________________________
Users mailing list
Users@lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users

Reply via email to