Hi Binan,

Where do you have this example from? check the script where you copied this from, as you will find there also your answer.

The avp s:country may be populated in tens of ways, depending on what you are trying to do.

Regards,
Bogdan

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 08/15/2012 12:57 PM, Binan AL Halabi wrote:

    Hi all ,
    can any one tell me how the AVP  s:country takes its value,

    $var(sdpid)=$avp(s:country);
    $var(dpid)=$(var(sdpid){s.int});
    xlog("$var(dpid)");
    if(!dp_translate("$var(dpid)","$ruri.user/$ruri.user")){
    send_reply("420", "Invalid Destination");
    }

    one thing more  : what is the result of executing dp_translate


    thank you very much


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to