Hi, in order to not apply RtpPrxy if the called is an Asterisk (that supports "comedia") I load "usr_preferences" table looking for "pbx_comedia" attribute for called domain.
If it's, then it's created a avp: avp(s:pbx_comedia)="yes".
But when I try to test this AVP in the "on_reply_route" (to not apply RtpProxy) this AVP has null value.
In fact it's easy to see:
------------------------------------------------------ route[3] { ; INVITE route $avp(s:test)="hello"; ... route(1); }
onreply_route[1] { xlog("L_INFO","----- avp(s:test) = $avp(s:test) ------\n"); } ------------------------------------------------------
The xlog of onreply_route shows: ----- avp(s_test) = null -----
is it normal? aren't AVP's transaction aware?
Thanks.
Hello,
perhaps you have to play a bit with the tm module parameter: http://www.openser.org/docs/modules/1.2.x/tm.html#AEN303
By default, in reply route the AVPs assigned to the reply as a message are available, not the one attached to the transaction.
Daniel
On 10/10/07 17:13, Iñaki Baz Castillo wrote:
Hi, in order to not apply RtpPrxy if the called is an Asterisk (that supports "comedia") I load "usr_preferences" table looking for "pbx_comedia" attribute for called domain.
If it's, then it's created a avp: avp(s:pbx_comedia)="yes".
But when I try to test this AVP in the "on_reply_route" (to not apply RtpProxy) this AVP has null value.
In fact it's easy to see:
route[3] { ; INVITE route $avp(s:test)="hello"; ... route(1); }
onreply_route[1] { xlog("L_INFO","----- avp(s:test) = $avp(s:test) ------\n"); }
The xlog of onreply_route shows: ----- avp(s_test) = null -----
is it normal? aren't AVP's transaction aware?
Thanks.
El Wednesday 10 October 2007 17:44:58 Daniel-Constantin Mierla escribió:
Hello,
perhaps you have to play a bit with the tm module parameter: http://www.openser.org/docs/modules/1.2.x/tm.html#AEN303
By default, in reply route the AVPs assigned to the reply as a message are available, not the one attached to the transaction.
Thanks, it works. Perhaps this info could appear near the AVP's info in the wiki, since is not easy (at least for me) to find it.
Thanks a lot.
Iñaki Baz Castillo wrote:
El Wednesday 10 October 2007 17:44:58 Daniel-Constantin Mierla escribió:
Hello,
perhaps you have to play a bit with the tm module parameter: http://www.openser.org/docs/modules/1.2.x/tm.html#AEN303
By default, in reply route the AVPs assigned to the reply as a message are available, not the one attached to the transaction.
Thanks, it works. Perhaps this info could appear near the AVP's info in the wiki, since is not easy (at least for me) to find it.
Please add it - it's a wiki ;-)
thanks klaus
El Wednesday 10 October 2007 20:51:08 Klaus Darilion escribió:
Iñaki Baz Castillo wrote:
El Wednesday 10 October 2007 17:44:58 Daniel-Constantin Mierla escribió:
Hello,
perhaps you have to play a bit with the tm module parameter: http://www.openser.org/docs/modules/1.2.x/tm.html#AEN303
By default, in reply route the AVPs assigned to the reply as a message are available, not the one attached to the transaction.
Thanks, it works. Perhaps this info could appear near the AVP's info in the wiki, since is not easy (at least for me) to find it.
Please add it - it's a wiki ;-)
Ok, I'll do it.
El Wednesday 10 October 2007 20:51:08 Klaus Darilion escribió:
Iñaki Baz Castillo wrote:
El Wednesday 10 October 2007 17:44:58 Daniel-Constantin Mierla escribió:
Hello,
perhaps you have to play a bit with the tm module parameter: http://www.openser.org/docs/modules/1.2.x/tm.html#AEN303
By default, in reply route the AVPs assigned to the reply as a message are available, not the one attached to the transaction.
Thanks, it works. Perhaps this info could appear near the AVP's info in the wiki, since is not easy (at least for me) to find it.
Please add it - it's a wiki ;-)
Sincerely I don't know where to add it since:
- http://www.openser.org/dokuwiki/doku.php/pseudovariables:devel#avps This is not a good place to tell too much about AVP's.
- http://www.openser.org/dokuwiki/doku.php/core-cookbook:devel There is no info abouts AVP's.
- http://www.openser.org/dokuwiki/doku.php/tutorials:avpops This tutorial for OpenSer 1.0.X is the only I find, and I'm not sure if it the best place to write (we are in 1.2.X - 1.3.X now).
Any suggestion? Thanks.
1. it should be mentioned in the beginning of the AVPOPS module README.
2.
This is not a good place to tell too much about AVP's.
I think a short note here would be useful too.
3. A "AVPs" section in the troubleshooting section on the wiki start page could be added
klaus
There is no info abouts AVP's.
This tutorial for OpenSer 1.0.X is the only I find, and I'm not sure if it the best place to write (we are in 1.2.X - 1.3.X now).
Any suggestion? Thanks.
El Thursday 11 October 2007 15:05:41 Klaus Darilion escribió:
- it should be mentioned in the beginning of the AVPOPS module README.
I will contact with Ramona then as the author of the module doc.
This is not a good place to tell too much about AVP's.
I think a short note here would be useful too.
Done: http://www.openser.org/dokuwiki/doku.php/pseudovariables:devel#avps
- A "AVPs" section in the troubleshooting section on the wiki start
page could be added
Done: http://www.openser.org/dokuwiki/doku.php/troubleshooting:avp
Hope it's correct.
Regards.
Iñaki Baz Castillo wrote:
El Thursday 11 October 2007 15:05:41 Klaus Darilion escribió:
- it should be mentioned in the beginning of the AVPOPS module README.
I will contact with Ramona then as the author of the module doc.
The readme was updated.
Thanks, Ramona
This is not a good place to tell too much about AVP's.
I think a short note here would be useful too.
Done: http://www.openser.org/dokuwiki/doku.php/pseudovariables:devel#avps
- A "AVPs" section in the troubleshooting section on the wiki start
page could be added
Done: http://www.openser.org/dokuwiki/doku.php/troubleshooting:avp
Hope it's correct.
Regards.
El Tuesday 16 October 2007 09:05:51 Elena-Ramona Modroiu escribió:
Iñaki Baz Castillo wrote:
El Thursday 11 October 2007 15:05:41 Klaus Darilion escribió:
- it should be mentioned in the beginning of the AVPOPS module README.
I will contact with Ramona then as the author of the module doc.
The readme was updated.
Thanks a lot :)