On 10.03.2014 06:18, Juha Heinanen wrote:
rr module has check_route_param(re) function that can be used to check
if local route header has a param that matches re.  however, there does
not exist a function to find out what is the value of a given rr param.
for example, if route header has param ;param=foo, how to extract value
foo of param?

there is @rr.uri.params select that together with {param.value,name}
transformation might be able to do the job?

I do it this way:

   $var(param) = @msg.header.Route[1].nameaddr.uri.params["param"];

--> $var(param) == "foo"

regards
Klaus

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to