[Kamailio-Users] remove_uri_param(param)?

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 1 15:58:27 CEST 2009


Hello,

On 04/01/2009 02:03 PM, Juha Heinanen wrote:
> siputils has function uri_param that can us used to check if r-uri has a
> given parameter.  how about a function
>
> remove_uri_param(param)
>
> that would remove from r-uri the given parameter?  does any efficient
> (non regex) means exist to achieve it?
>   
no, not one step function. You can get it by playing with 
pseudo-variables and transformations -- iterating through parameters and 
skipping the parameters you do not want, but could be simpler with subst 
in this case.

IMO such a function is good to have.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com/





More information about the sr-users mailing list