Discussion:
[SR-Users] Uri transformations stopped working after upgrade from 3.3 to 4.1.6.
Julia Boudniatsky
2014-09-30 08:41:51 UTC
Permalink
Hello,

Some Uri transformations stopped working after upgrade from 3.3 to 4.1.6.



*To: <sip:01412127775678;cic=012;csel=noind-***@public.gmane.org:5060
<http://noind-***@public.gmane.org:5060>;user=phone>*



*In v3.3*



$tu({uri.params}) return: cic=012;csel=noind

$tu({uri.param,cic}) return: 012



*In v4.1.6*



$tu({uri.params}) return : user=phone

$tu({uri.param,cic}) return :



Best regards,

Julia
Daniel-Constantin Mierla
2014-09-30 09:09:28 UTC
Permalink
Hello,
Post by Julia Boudniatsky
Hello,
Some Uri transformations stopped working after upgrade from 3.3 to 4.1.6.
_In v3.3_____
$tu({uri.params}) return:cic=012;csel=noind
$tu({uri.param,cic}) return: 012
_In v4.1.6_
$tu({uri.params}) return : user=phone
looks like this is happening as a fix, as the cic is an username
parameter, not a uri parameter.

You should use {uri.uparam,cic}:

http://www.kamailio.org/wiki/cookbooks/devel/transformations#uriuparam

Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Julia Boudniatsky
2014-09-30 09:46:57 UTC
Permalink
$(tu{uri.uparam,cic}) gets ERROR wrong format,

$(tu{uri.uparam}) return : phone

So, uparam return the value of parameter "user" .

I solved a problem by usage $(tu{param.value,cic,;})

BR
Julia

On Tue, Sep 30, 2014 at 12:09 PM, Daniel-Constantin Mierla <
Post by Julia Boudniatsky
Hello,
Hello,
Some Uri transformations stopped working after upgrade from 3.3 to 4.1.6.
*In v3.3*
$tu({uri.params}) return: cic=012;csel=noind
$tu({uri.param,cic}) return: 012
*In v4.1.6*
$tu({uri.params}) return : user=phone
looks like this is happening as a fix, as the cic is an username
parameter, not a uri parameter.
http://www.kamailio.org/wiki/cookbooks/devel/transformations#uriuparam
Cheers,
Daniel
--
Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel-Constantin Mierla
2014-09-30 10:19:15 UTC
Permalink
Post by Julia Boudniatsky
$(tu{uri.uparam,cic}) gets ERROR wrong format,
$(tu{uri.uparam}) return : phone
So, uparam return the value of parameter "user" .
Right, I forgot what I implemented and misread the docs.

You should add a transformation to return the user parameters.
Post by Julia Boudniatsky
I solved a problem by usage $(tu{param.value,cic,;})
Be careful not to have cic as last parameter before @.

Might be safer to use:

$(tu{s.select,0,@}{param.value,cic})

Cheers,
Daniel
Post by Julia Boudniatsky
BR
Julia
On Tue, Sep 30, 2014 at 12:09 PM, Daniel-Constantin Mierla
Hello,
Post by Julia Boudniatsky
Hello,
Some Uri transformations stopped working after upgrade from 3.3 to 4.1.6.
_In v3.3_____
$tu({uri.params}) return:cic=012;csel=noind
$tu({uri.param,cic}) return: 012
_In v4.1.6_
$tu({uri.params}) return : user=phone
looks like this is happening as a fix, as the cic is an username
parameter, not a uri parameter.
http://www.kamailio.org/wiki/cookbooks/devel/transformations#uriuparam
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> -http://www.linkedin.com/in/miconda
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Loading...