<!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>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="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/15/2012 12:57 PM, Binan AL Halabi wrote:
<blockquote
cite="mid:1345024635.59447.YahooMailClassic@web125301.mail.ne1.yahoo.com"
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="yiv1793827973">
<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 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 : 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 wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>