I guess a simple search in the text file would have answered your question.

That AVP is populated during caller authentication, being loaded from the subscriber table, the "countrycode" column.

Regards,

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


On 08/16/2012 01:38 PM, Binan AL Halabi wrote:
Hi Bogdan,
thank you very much ,
the attached file is the script,

regards
--- On *Thu, 8/16/12, Bogdan-Andrei Iancu /<[email protected]>/* wrote:


    From: Bogdan-Andrei Iancu <[email protected]>
    Subject: Re: [OpenSIPS-Users] Dial Plan
    To: "OpenSIPS users mailling list" <[email protected]>
    Cc: "Binan AL Halabi" <[email protected]>
    Date: Thursday, August 16, 2012, 3:17 AM

    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]  </mc/[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