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 <govoi...@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 <virbh...@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@bhati-subscribe : SIP/2218 >> State:Idle Watchers 0 >> 1 hint matching extension 2218 >> == Using SIP RTP CoS mark 5 >> -- Executing [222@bhati-test:1] NoOp("SIP/2218-000002c3", " Call >> from Gtalk ") in new stack >> -- Executing [222@bhati-test:2] NoOp("SIP/2218-000002c3", "Hint for >> Extension 2218 is ") in new stack >> -- Executing [222@bhati-test:3] Set("SIP/2218-000002c3", >> "CALLERID(name)="From Google Talk"") in new stack >> -- Executing [222@bhati-test:4] Wait("SIP/2218-000002c3", "10") in >> new stack >> >> haddock8-astrx*CLI> core show hint 2218 >> 2218@bhati-subscribe : SIP/2218 >> State:InUse Watchers 0 >> 1 hint matching extension 2218 >> >> -- Executing [222@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@bhati-test:1] NoOp("SIP/2218-000002c3", "hangup the >> call now") in new stack >> haddock8-astrx*CLI> core show hint 2218 >> 2218@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 <virbh...@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
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users