[asterisk-users] How to use Hints in asterisk

virendra bhati virbhati at gmail.com
Tue Dec 6 06:57:25 CST 2011


Hi All,

If you used *DEVICE_STATE *function then there is no need to used *HINT* it
work independently.

It's not become to confusion for me how to when to used *HINT  *and
when *DEVICE_STATE
?


*
On Tue, Dec 6, 2011 at 6:20 PM, virendra bhati <virbhati at gmail.com> wrote:

> Hi All,
>
> Below bold application gives the correct information with asterisk *HINT*function.
>
> exten => 222,1,NoOp( Call from Gtalk )
> *        same => n,NoOp(My phone state is currently
> ${DEVICE_STATE(SIP/2218)})*
>         same => n,Set(CALLERID(name)="From Google Talk")
>         same => n,Wait(10)
>         same => n,Dial(SIP/my_sip_phones)
>
> Spatially thanks for Sammy who give me the way to get success on that way.
>
>
>
> On Tue, Dec 6, 2011 at 5:58 PM, Sammy Govind <govoiper at gmail.com> wrote:
>
>> Hello,
>> 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.
>>
>> Read these links for better understanding.
>>
>> http://www.smartvox.co.uk/astfaq_subscribe_hints.htm
>> http://www.voip-info.org/wiki/view/Asterisk+standard+extensions
>>
>> Regards,
>> Sammy.
>>
>>
>> On Tue, Dec 6, 2011 at 5:14 PM, virendra bhati <virbhati at gmail.com>wrote:
>>
>>> Hi All,
>>>
>>> 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.
>>>
>>> *haddock8-astrx*CLI> core show hint 2218
>>>                    2218 at bhati-subscribe     : SIP/2218
>>> State:Idle            Watchers  0
>>> 1 hint matching extension 2218
>>>   == Using SIP RTP CoS mark 5
>>>     -- Executing [222 at bhati-test:1] NoOp("SIP/2218-000002c3", " Call
>>> from Gtalk ") in new stack
>>>     -- Executing [222 at bhati-test:2] NoOp("SIP/2218-000002c3", "Hint for
>>> Extension 2218 is ") in new stack
>>>     -- Executing [222 at bhati-test:3] Set("SIP/2218-000002c3",
>>> "CALLERID(name)="From Google Talk"") in new stack
>>>     -- Executing [222 at bhati-test:4] Wait("SIP/2218-000002c3", "10") in
>>> new stack
>>>
>>> haddock8-astrx*CLI> core show hint 2218
>>>                    2218 at bhati-subscribe     : SIP/2218
>>> State:InUse           Watchers  0
>>> 1 hint matching extension 2218
>>>
>>>     -- Executing [222 at bhati-test:5] Dial("SIP/2218-000002c3",
>>> "SIP/my_sip_phones") in new stack
>>>   == Using SIP RTP CoS mark 5
>>> [Dec  6 17:39:38] WARNING[6689]: chan_sip.c:5331 create_addr: No such
>>> host: my_sip_phones
>>> [Dec  6 17:39:38] WARNING[6689]: app_dial.c:1747 dial_exec_full: Unable
>>> to create channel of type 'SIP' (cause 20 - Unknown)
>>>   == Everyone is busy/congested at this time (1:0/0/1)
>>>     -- Auto fallthrough, channel 'SIP/2218-000002c3' status is
>>> 'CHANUNAVAIL'
>>>     -- Executing [h at bhati-test:1] NoOp("SIP/2218-000002c3", "hangup the
>>> call now") in new stack
>>> haddock8-astrx*CLI> core show hint 2218
>>>                    2218 at bhati-subscribe     : SIP/2218             State:Idle
>>> Watchers  0
>>> 1 hint matching extension 2218
>>> *
>>> *Is this the right way to use HINT of asterisk ?*
>>>
>>>
>>>
>>> On Tue, Dec 6, 2011 at 3:38 PM, virendra bhati <virbhati at gmail.com>wrote:
>>>
>>>> Hi All,
>>>>
>>>> I read about the *Hint* in asterisk. I want to implements into my
>>>> server for testing purpose. How to use it ?  please help me...
>>>>
>>>> --
>>>>
>>>> Thanks and regards
>>>>
>>>>  Virendra Bhati
>>>> +91-8885268942
>>>> Software Engineer
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Thanks and regards
>>>
>>>  Virendra Bhati
>>> +91-8885268942
>>> Software Engineer
>>>
>>>
>>
>
>
> --
>
> Thanks and regards
>
>  Virendra Bhati
> +91-8885268942
> Software Engineer
>
>


-- 

Thanks and regards

 Virendra Bhati
+91-8885268942
Software Engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111206/2e6ad09f/attachment.htm>


More information about the asterisk-users mailing list