<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Try this link &#8211; I think they describe it better than I would<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://www.voip-info.org/wiki/view/Asterisk+standard+extensions">http://www.voip-info.org/wiki/view/Asterisk+standard+extensions</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> virendra bhati [mailto:virbhati@gmail.com] <br><b>Sent:</b> Tuesday, December 06, 2011 7:28 AM<br><b>To:</b> Danny Nicholas<br><b>Subject:</b> Re: How to use Hints in asterisk<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'>thank you Danny, I want to know how to configure HINT in dialplan. please give me some clue about it <o:p></o:p></p><div><p class=MsoNormal>On Tue, Dec 6, 2011 at 6:52 PM, Danny Nicholas &lt;<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>&gt; wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I&#8217;m sure this is &#8220;overly generic&#8221; but AFAIK DEVICE_STATE is for use with the active dialplan and HINT can be used in the dialplan or externally with AMI/AGI, etc.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> virendra bhati [mailto:<a href="mailto:virbhati@gmail.com" target="_blank">virbhati@gmail.com</a>] <br><b>Sent:</b> Tuesday, December 06, 2011 6:57 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion; Danny Nicholas<br><b>Cc:</b> Sammy Govind<br><b>Subject:</b> Re: How to use Hints in asterisk</span><o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'>Hi All,<br><br>If you used <b>DEVICE_STATE </b>function then there is no need to used <b>HINT</b> it work independently. <br><br>It's not become to confusion for me how to when to used <b>HINT&nbsp; </b>and when <b>DEVICE_STATE ? <br><br></b><o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Tue, Dec 6, 2011 at 6:20 PM, virendra bhati &lt;<a href="mailto:virbhati@gmail.com" target="_blank">virbhati@gmail.com</a>&gt; wrote:<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hi All,<br><br>Below bold application gives the correct information with asterisk <b>HINT</b> function.<br><br>exten =&gt; 222,1,NoOp( Call from Gtalk )<br><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; same =&gt; n,NoOp(My phone state is currently ${DEVICE_STATE(SIP/2218)})</b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; same =&gt; n,Set(CALLERID(name)=&quot;From Google Talk&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; same =&gt; n,Wait(10)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; same =&gt; n,Dial(SIP/my_sip_phones)<br>&nbsp;<br>Spatially thanks for Sammy who give me the way to get success on that way.<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Tue, Dec 6, 2011 at 5:58 PM, Sammy Govind &lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hello,<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>AFAIK Hints are used for looking out for a device state before actually doing anything. Hints can be used from Dial-plan, AMI, or AGI. An example can be to look for state of a SIP user. &nbsp;&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Read these links for better understanding.<o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><a href="http://www.smartvox.co.uk/astfaq_subscribe_hints.htm" target="_blank">http://www.smartvox.co.uk/astfaq_subscribe_hints.htm</a><o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><a href="http://www.voip-info.org/wiki/view/Asterisk+standard+extensions" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+standard+extensions</a><o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Regards,<o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Sammy.<o:p></o:p></p></div><div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Tue, Dec 6, 2011 at 5:14 PM, virendra bhati &lt;<a href="mailto:virbhati@gmail.com" target="_blank">virbhati@gmail.com</a>&gt; wrote:<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hi All,<br><br>I did some google and found some documents on that and finally I got some response from asterisk . Below is the CLI output of my google.<br><br><b><span style='color:#660000'>haddock8-astrx*CLI&gt; </span><span style='color:black'>core show hint 2218</span><span style='color:#660000'><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2218@bhati-subscribe&nbsp;&nbsp;&nbsp;&nbsp; : SIP/2218&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='background:#99FF99'>State:Idle&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Watchers&nbsp; 0<br>1 hint matching extension 2218<br>&nbsp; == Using SIP RTP CoS mark 5<br>&nbsp;&nbsp;&nbsp; -- Executing [222@bhati-test:1] NoOp(&quot;SIP/2218-000002c3&quot;, &quot; Call from Gtalk &quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [222@bhati-test:2] NoOp(&quot;SIP/2218-000002c3&quot;, &quot;Hint for Extension 2218 is &quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [222@bhati-test:3] Set(&quot;SIP/2218-000002c3&quot;, &quot;CALLERID(name)=&quot;From Google Talk&quot;&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [222@bhati-test:4] Wait(&quot;SIP/2218-000002c3&quot;, &quot;10&quot;) in new stack<br><br>haddock8-astrx*CLI&gt; </span><span style='color:black'>core show hint 2218</span><span style='color:#660000'><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2218@bhati-subscribe&nbsp;&nbsp;&nbsp;&nbsp; : SIP/2218&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style='background:#99FF99'>State:InUse</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Watchers&nbsp; 0<br>1 hint matching extension 2218<br><br>&nbsp;&nbsp;&nbsp; -- Executing [222@bhati-test:5] Dial(&quot;SIP/2218-000002c3&quot;, &quot;SIP/my_sip_phones&quot;) in new stack<br>&nbsp; == Using SIP RTP CoS mark 5<br>[Dec&nbsp; 6 17:39:38] WARNING[6689]: chan_sip.c:5331 create_addr: No such host: my_sip_phones<br>[Dec&nbsp; 6 17:39:38] WARNING[6689]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)<br>&nbsp; == Everyone is busy/congested at this time (1:0/0/1)<br>&nbsp;&nbsp;&nbsp; -- Auto fallthrough, channel 'SIP/2218-000002c3' status is 'CHANUNAVAIL'<br>&nbsp;&nbsp;&nbsp; -- Executing [h@bhati-test:1] NoOp(&quot;SIP/2218-000002c3&quot;, &quot;hangup the call now&quot;) in new stack<br>haddock8-astrx*CLI&gt; </span><span style='color:black'>core show hint 2218</span><span style='color:#660000'><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2218@bhati-subscribe&nbsp;&nbsp;&nbsp;&nbsp; : SIP/2218&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style='background:#33FF33'> State:Idle&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Watchers&nbsp; 0<br>1 hint matching extension 2218<br></span></b><br><b>Is this the right way to use HINT of asterisk ?</b><o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Tue, Dec 6, 2011 at 3:38 PM, virendra bhati &lt;<a href="mailto:virbhati@gmail.com" target="_blank">virbhati@gmail.com</a>&gt; wrote:<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hi All,<br><br>I read about the <b>Hint</b> in asterisk. I want to implements into my server for testing purpose. How to use it ?&nbsp; please help me...<br clear=all><span style='color:#888888'><br>-- </span><o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#888888'><br>Thanks and regards<br><br>&nbsp;Virendra Bhati<br><a href="tel:%2B91-8885268942" target="_blank">+91-8885268942</a><br>Software Engineer</span><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br><br clear=all><br>-- <o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br>Thanks and regards<br><br>&nbsp;Virendra Bhati<br><a href="tel:%2B91-8885268942" target="_blank">+91-8885268942</a><br>Software Engineer<o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p></div></div></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p></div></div></div></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br><br clear=all><br>-- <o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br>Thanks and regards<br><br>&nbsp;Virendra Bhati<br><a href="tel:%2B91-8885268942" target="_blank">+91-8885268942</a><br>Software Engineer<o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p></div></div></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br><br clear=all><br>-- <o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br>Thanks and regards<br><br>&nbsp;Virendra Bhati<br><a href="tel:%2B91-8885268942" target="_blank">+91-8885268942</a><br>Software Engineer<o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p></div></div></div></div></div></div><p class=MsoNormal><br><br clear=all><br>-- <o:p></o:p></p><div><p class=MsoNormal><br>Thanks and regards<br><br>&nbsp;Virendra Bhati<br>+91-8885268942<br>Software Engineer<o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></body></html>