<div dir="ltr">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 </b>and when <b>DEVICE_STATE ? <br>
<br><br></b><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 6:20 PM, virendra bhati <span dir="ltr"><<a href="mailto:virbhati@gmail.com">virbhati@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">Hi All,<br><br>Below bold application gives the correct information with asterisk <b>HINT</b> function.<br><br>exten => 222,1,NoOp( Call from Gtalk )<br><b> same => n,NoOp(My phone state is currently ${DEVICE_STATE(SIP/2218)})</b><br>
same => n,Set(CALLERID(name)="From Google Talk")<br> same => n,Wait(10)<br> same => n,Dial(SIP/my_sip_phones)<br> <br>Spatially thanks for Sammy who give me the way to get success on that way.<div>
<div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 5:58 PM, Sammy Govind <span dir="ltr"><<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<div>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. </div><div><br></div>
<div>
Read these links for better understanding.</div><div><br></div><div><a href="http://www.smartvox.co.uk/astfaq_subscribe_hints.htm" target="_blank">http://www.smartvox.co.uk/astfaq_subscribe_hints.htm</a></div><div><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></div>
<div><br></div><div>Regards,</div><div>Sammy.</div><div><div></div><div><div><br><div><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 5:14 PM, virendra bhati <span dir="ltr"><<a href="mailto:virbhati@gmail.com" target="_blank">virbhati@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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 style="color:rgb(102,0,0)">haddock8-astrx*CLI> <span style="color:rgb(0,0,0)">core show hint 2218</span><br>
2218@bhati-subscribe : SIP/2218 <span style="background-color:rgb(153,255,153)">State:Idle </span> Watchers 0<br>1 hint matching extension 2218<br> == Using SIP RTP CoS mark 5<br>
-- Executing [222@bhati-test:1] NoOp("SIP/2218-000002c3", " Call from Gtalk ") in new stack<br> -- Executing [222@bhati-test:2] NoOp("SIP/2218-000002c3", "Hint for Extension 2218 is ") in new stack<br>
-- Executing [222@bhati-test:3] Set("SIP/2218-000002c3", "CALLERID(name)="From Google Talk"") in new stack<br> -- Executing [222@bhati-test:4] Wait("SIP/2218-000002c3", "10") in new stack<br>
<br>haddock8-astrx*CLI> <span style="color:rgb(0,0,0)">core show hint 2218</span><br> 2218@bhati-subscribe : SIP/2218 <span style="background-color:rgb(153,255,153)">State:InUse</span> Watchers 0<br>
1 hint matching extension 2218<br><br> -- Executing [222@bhati-test:5] Dial("SIP/2218-000002c3", "SIP/my_sip_phones") in new stack<br> == Using SIP RTP CoS mark 5<br>[Dec 6 17:39:38] WARNING[6689]: chan_sip.c:5331 create_addr: No such host: my_sip_phones<br>
[Dec 6 17:39:38] WARNING[6689]: app_dial.c:1747 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)<br> == Everyone is busy/congested at this time (1:0/0/1)<br> -- Auto fallthrough, channel 'SIP/2218-000002c3' status is 'CHANUNAVAIL'<br>
-- Executing [h@bhati-test:1] NoOp("SIP/2218-000002c3", "hangup the call now") in new stack<br>haddock8-astrx*CLI> <span style="color:rgb(0,0,0)">core show hint 2218</span><br> 2218@bhati-subscribe : SIP/2218 <span style="background-color:rgb(51,255,51)"> State:Idle </span> Watchers 0<br>
1 hint matching extension 2218<br></b><br><b>Is this the right way to use HINT of asterisk ?</b><div><div><br><br><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 3:38 PM, virendra bhati <span dir="ltr"><<a href="mailto:virbhati@gmail.com" target="_blank">virbhati@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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 ? please help me...<br clear="all">
<font color="#888888"><br>-- <br><div dir="ltr"><br>Thanks and regards<br>
<br> Virendra Bhati<br><a href="tel:%2B91-8885268942" value="+918885268942" target="_blank">+91-8885268942</a><br>Software Engineer<br></div><br>
</font></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br>Thanks and regards<br><br> Virendra Bhati<br><a href="tel:%2B91-8885268942" value="+918885268942" target="_blank">+91-8885268942</a><br>Software Engineer<br>
</div><br>
</div></div></div>
</blockquote></div><br></div></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br>Thanks and regards<br><br> Virendra Bhati<br><a href="tel:%2B91-8885268942" value="+918885268942" target="_blank">+91-8885268942</a><br>Software Engineer<br>
</div><br>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br>Thanks and regards<br><br> Virendra Bhati<br>+91-8885268942<br>Software Engineer<br></div><br>
</div>