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:
El Wednesday 10 October 2007 20:51:08 Klaus Darilion escribió:
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.
El Thursday 11 October 2007 15:05:41 Klaus Darilion escribió:
I will contact with Ramona then as the author of the module doc.
Done: http://www.openser.org/dokuwiki/doku.php/pseudovariables:devel#avps
Done: http://www.openser.org/dokuwiki/doku.php/troubleshooting:avp
Hope it's correct.
Regards.