[Kamailio-Users] Question about manually manipulating RURI

Geoffrey Mina geoffreymina at gmail.com
Fri Jun 19 21:01:02 CEST 2009


I have a need to perform some manipulation of the user part of the
RURI.  I have some dialers which send INVITES with the RURI in the
following format:

d15555551212 at 123.345.123.345:5060

I need to check for the existence of the "d" and strip it off if it is
present.  Basically what I want is pseduo code is:

if(left($ruri),1 == "d"){
  $ruri = right($ruri,len($ruri)-1);
}

Thanks!




More information about the sr-users mailing list