[sr-dev] uri userpart replacement
Daniel-Constantin Mierla
miconda at gmail.com
Tue Nov 23 00:32:30 CET 2010
you can get to some extent this functionality by using uri
transformation to break down existing uri and build a new one from
desired pieces.
If you like a more compact options, then you can write some functions
for it. uri module seems a good place for such features.
Daniel
On 11/23/10 12:04 AM, Juha Heinanen wrote:
> looks like there is currently no function that could be used to replace
> parts of uri (such as userpart) with a new value. it can be done by
> copying the uri temporarily to request uri or by a ugly regular
> expression.
>
> should i write utility function(s) for replacing userpart and perhaps
> also hostpart or are there better, more generic suggestions?
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
http://www.asipto.com
More information about the sr-dev
mailing list