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.







_______________________________________________
Users mailing list
Users@openser.org
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to