Use the dialplan module for this.. it's *great* :)<div>-Brett</div><div><br><div><br><br><div class="gmail_quote">On Thu, Jun 11, 2009 at 7:52 AM, Eli Hayun <span dir="ltr"><<a href="mailto:elihay@savion.huji.ac.il">elihay@savion.huji.ac.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi<br>
I am trying to add my dial plan and I did the following:<br>
<br>
[<br>
<br>
$var(dp_local) = "^sip:9.{3}@";<br>
<br>
if(uri=~$var(dp_local)) {<br>
... act as a local call<br>
}<br>
<br>
]<br>
<br>
I am getting a syntax error because the sip parser expect to get a<br>
string . I do not want to use hard-code string. Is there a way to do<br>
what I want?<br>
<br>
Best regards<br>
<br>
Eli<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>