Based on a discussion on the IRC a long time ago (several days) I've created a patch for 1.2 in the bug tracker that allows you to see if a parking lot is occupied or not - provided you use the Flash panel or SIP subscriptions. What you do: * Patch the 1.2 source with the patch in http://bugs.digium.com/view.php?id=5779 * Add an extension in your dialplan with a hint that uses the local channel (yes, the patch adds device state to the local channel) exten=> 100,hint,local/701@parkedcalls * Add a subscription to this extension in a SIP phone, like Eye-beam * As soon as there's a call parked on that parking log (701), you will see it visually - how depends on the phone. This hack possibly have other uses as well, feel free to explore. If it doesn't work, tell me more in the bug tracker. If it does work, tell me about it in the bug tracker. /O
Does it hold state information for any channel? Even ZAP, IAX, etc....!!! If it does, Olle, you have just placed us one step closer to being able to emulate a Key system!!!> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > Olle E. Johansson > Sent: Monday, November 21, 2005 11:45 AM > To: Users Asterisk > Subject: [Asterisk-Users] Anyone parked in your Asterisk? > > Based on a discussion on the IRC a long time ago (several > days) I've created a patch for 1.2 in the bug tracker that > allows you to see if a parking lot is occupied or not - > provided you use the Flash panel or SIP subscriptions. > > What you do: > * Patch the 1.2 source with the patch in > http://bugs.digium.com/view.php?id=5779 > > * Add an extension in your dialplan with a hint that uses the local > channel (yes, the patch adds device state to the local channel) > > exten=> 100,hint,local/701@parkedcalls > > * Add a subscription to this extension in a SIP phone, like Eye-beam > > * As soon as there's a call parked on that parking log (701), you will > see it visually - how depends on the phone. > > This hack possibly have other uses as well, feel free to explore. > If it doesn't work, tell me more in the bug tracker. If it > does work, tell me about it in the bug tracker. > > /O > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Alexander Lopez wrote:> >Does it hold state information for any channel? Even ZAP, IAX, >etc....!!! > >If it does, Olle, you have just placed us one step closer to being able >to emulate a Key system!!! > >This fix is very focused on parking. Previous to this fix, we can check device status in chan_agent, chan_iax2 and chan_sip. "show channeltypes" tell you which channels in your Asterisk that support device status notification. The ability to visually "see" parking lots has been asked for, and I created this by adding device status notification in chan_local (does an extension exist or not in the active dialplan?) and a notification system in res_features whenever parking adds or removes an extension - i.e. parks a call. It is a strange form of abstraction, but it works :-) /O
> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Olle E Johansson > Sent: Monday, November 21, 2005 1:13 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Anyone parked in your Asterisk? > > Alexander Lopez wrote: > > > > >Does it hold state information for any channel? Even ZAP, IAX, > >etc....!!! > > > >If it does, Olle, you have just placed us one step closer to beingable> >to emulate a Key system!!! > > > > > This fix is very focused on parking. Previous to this fix, we cancheck> device status > in chan_agent, chan_iax2 and chan_sip. "show channeltypes" tell you > which channels > in your Asterisk that support device status notification. > > The ability to visually "see" parking lots has been asked for, and I > created this by adding > device status notification in chan_local (does an extension exist ornot> in the active dialplan?) > and a notification system in res_features whenever parking adds or > removes an extension > - i.e. parks a call. It is a strange form of abstraction, but it works:-)> > /O > _______________________________________________Since the state gets updated every time an event happens. Event being placing or receiving a call. Would it be a good idea to add this to the IsChanAvail application (such as IsExtenAvail)?? That would give us a channel independent application to update the notification system. It would put more work into the dialplan but it could be handled by a macro for the lazy... Or am I just not understanding the notification idea.
this is very welcome as i need to keep track of agent status using the SNOM BLF Alexander Lopez wrote:> >>-----Original Message----- >>From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- >>bounces@lists.digium.com] On Behalf Of Olle E Johansson >>Sent: Monday, November 21, 2005 1:13 PM >>To: Asterisk Users Mailing List - Non-Commercial Discussion >>Subject: Re: [Asterisk-Users] Anyone parked in your Asterisk? >> >>Alexander Lopez wrote: >> >> >>>Does it hold state information for any channel? Even ZAP, IAX, >>>etc....!!! >>> >>>If it does, Olle, you have just placed us one step closer to being > > able > >>>to emulate a Key system!!! >>> >>> >> >>This fix is very focused on parking. Previous to this fix, we can > > check > >>device status >>in chan_agent, chan_iax2 and chan_sip. "show channeltypes" tell you >>which channels >>in your Asterisk that support device status notification. >> >>The ability to visually "see" parking lots has been asked for, and I >>created this by adding >>device status notification in chan_local (does an extension exist or > > not > >>in the active dialplan?) >>and a notification system in res_features whenever parking adds or >>removes an extension >>- i.e. parks a call. It is a strange form of abstraction, but it works > > :-) > >>/O >>_______________________________________________ > > > Since the state gets updated every time an event happens. Event being > placing or receiving a call. > > Would it be a good idea to add this to the IsChanAvail application (such > as IsExtenAvail)?? That would give us a channel independent application > to update the notification system. It would put more work into the > dialplan but it could be handled by a macro for the lazy... > > Or am I just not understanding the notification idea. > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >