On Saturday 16 January 2010 11:02:52 Deep D wrote: > On Sat, Jan 16, 2010 at 9:21 PM, Tilghman Lesher <[email protected]> wrote: > > On Saturday 16 January 2010 06:04:01 Deep D wrote: > >> When I create a sip peer in users.conf then a hint is automatically > >> created for that peer. But when I create a peer in sip.conf or a > >> realtime peer with the same values then this hint is not created. > >> Every time I add such peers I have to add a hint in extensions.conf. > >> > >> Is it possible to have something like exten => > >> _XXX,hint,SIP/${EXTEN} in extensions.conf so that I don't have to > >> add hint for each sip peer I create? > > > > Only in 1.6.1 and later. The hints will grow, as phones subscribe to > > them, one entry per hint, automatically. > > I tried this in asterisk 1.6.1.1 by adding the line exten => > _XXX,hint,SIP/${EXTEN} to the default context, but it did not work. > > I gave the following commands through the manager interface > > action: extensionstate > exten: 777 > > and the response was > > Response: Success > Message: Extension Status > Exten: 777 > Context: default > Hint: SIP/${EXTEN} > Status: 0 > > I am always getting a Status: 0 for any value of exten. I think the > variable ${EXTEN} is not being evaluated to its value.
That's not a subscription. You must actually get a phone to subscribe to the hint before it is created. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
