<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453131522-08082007>Here is my first
step (call it a proof of concept) in using the "hint" priority with dynamic
values.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453131522-08082007>Background
- this works</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=453131522-08082007>exten =>
12345,hint,SIP/12345-1</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453131522-08082007>To make this a
little dynamic, I used a web page to return to me the value of the sip
registration. In other words, <A
href="http://www.somepage.com/test.html">http://www.somepage.com/test.html</A>
returns the following (without quotes): "SIP/12345-1"</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453131522-08082007>I should therefore
be getting the same result by using the following:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453131522-08082007>exten =>
12345,hint,${CURL(<A
href="http://www.somepage.com/test.html">http://www.somepage.com/test.html</A>)}</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453131522-08082007>BUT....no. I
get the following in the Asterisk CLI when reloading the
config:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453131522-08082007>Aug 8 18:24:27
NOTICE[26765]: pbx.c:1508 pbx_substitute_variables_helper_full: Error in
extension logic (missing '}')</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=453131522-08082007></SPAN></FONT><FONT
face=Arial size=2><SPAN class=453131522-08082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453131522-08082007>Now, I'm paying
close attention to my Asterisk code up there, and I don't see a missing '}'
.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=453131522-08082007>Anybody has an
explanation for me? Is there some deeper meaning to this notice I am
getting?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=453131522-08082007>Mike</SPAN></FONT></DIV></BODY></HTML>