Hi.

In my project with OpenSIPS, I have the following kind of code in the 
configuration:


modparam("registrar", "attr_avp", "$avp(attr)")

.

.

.

if register request come from machine M1 {

   $avp(attr) = "User in M1"; //this mean that the user is behind a NAT, from 
the point of view OpenSIPS.

}

if register request come from machine M2 {

   $avp(attr) = "User in M2";

}

...

else{

  $avp(attr) = "User in Mx"; //this mean that there is no NAT.

}




In my opensips.cfg file I need read "$(avp(attr)[$T_branch_idx])" in the 
"branch_route[per_branch_ops]" .


Does $(avp(attr)[$T_branch_idx]) will give me the correct value, even if the 
callee is always online in several machines (M1, M2...etc) ?


So, can I discover which machine is participating in the dialog?


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to