<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>I guess a simple search in the text file would have answered
      your question.<br>
      <br>
      That AVP is populated during caller authentication, being loaded
      from the subscriber table, the "countrycode" column.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <br>
    On 08/16/2012 01:38 PM, Binan AL Halabi wrote:
    <blockquote
cite="mid:1345113516.68831.YahooMailClassic@web125303.mail.ne1.yahoo.com"
      type="cite">
      <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td style="font: inherit;" valign="top">Hi Bogdan,<br>
              thank you very much ,<br>
              the attached file is the script,<br>
              <br>
              regards<br>
              --- On <b>Thu, 8/16/12, Bogdan-Andrei Iancu <i><a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org">&lt;bogdan@opensips.org&gt;</a></i></b>
              wrote:<br>
              <blockquote style="border-left: 2px solid rgb(16, 16,
                255); margin-left: 5px; padding-left: 5px;"><br>
                From: Bogdan-Andrei Iancu <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org">&lt;bogdan@opensips.org&gt;</a><br>
                Subject: Re: [OpenSIPS-Users] Dial Plan<br>
                To: "OpenSIPS users mailling list"
                <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org">&lt;users@lists.opensips.org&gt;</a><br>
                Cc: "Binan AL Halabi" <a class="moz-txt-link-rfc2396E" href="mailto:binanalhalabi@yahoo.com">&lt;binanalhalabi@yahoo.com&gt;</a><br>
                Date: Thursday, August 16, 2012, 3:17 AM<br>
                <br>
                <div id="yiv1852517355">
                  <div> <tt>Hi Binan,<br>
                      <br>
                      Where do you have this example from? check the
                      script where you copied this from, as you will
                      find there also your answer. <br>
                      <br>
                      The avp s:country may be populated in tens of
                      ways, depending on what you are trying to do.<br>
                      <br>
                      Regards,<br>
                      Bogdan</tt><br>
                    <br>
                    <pre class="yiv1852517355moz-signature">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" rel="nofollow" class="yiv1852517355moz-txt-link-freetext" target="_blank" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
                    <br>
                    On 08/15/2012 12:57 PM, Binan AL Halabi wrote:
                    <blockquote type="cite">
                      <table border="0" cellpadding="0" cellspacing="0">
                        <tbody>
                          <tr>
                            <td style="font: inherit;" valign="top"><br>
                              <blockquote style="border-left: 2px solid
                                rgb(16, 16, 255); margin-left: 5px;
                                padding-left: 5px;">
                                <div id="yiv1852517355">
                                  <table border="0" cellpadding="0"
                                    cellspacing="0">
                                    <tbody>
                                      <tr>
                                        <td style="font: inherit;"
                                          valign="top">Hi all , <br>
                                          can any one tell me how the
                                          AVP&nbsp; s:country takes its
                                          value,<br>
                                          <br>
                                          $var(sdpid)=$avp(s:country);<br>
$var(dpid)=$(var(sdpid){s.int});<br>
                                          xlog("$var(dpid)");<br>
if(!dp_translate("$var(dpid)","$ruri.user/$ruri.user")){<br>
                                          send_reply("420", "Invalid
                                          Destination");<br>
                                          }<br>
                                          <br>
                                          one thing more&nbsp; : what is the
                                          result of executing
                                          dp_translate<br>
                                          <br>
                                          <br>
                                          thank you very much<br>
                                        </td>
                                      </tr>
                                    </tbody>
                                  </table>
                                </div>
                              </blockquote>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                      <pre><fieldset class="yiv1852517355mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" rel="nofollow" class="yiv1852517355moz-txt-link-abbreviated" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="/mc/compose?to=Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" rel="nofollow" class="yiv1852517355moz-txt-link-freetext" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                    </blockquote>
                  </div>
                </div>
              </blockquote>
            </td>
          </tr>
        </tbody>
      </table>
    </blockquote>
  </body>
</html>