I wonder - when this will be available from Realtime.. Managing more
than 50 users makes static config a nightmare, and AFAIK there is no
ways how to create hints with variables/extension masks. So, it is
logical to ask for hint support in Realtime.
Regards,
Atis
--
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
atis@iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue Jan 15, 2008 4:47 pm Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions
Atis Lezdins wrote:
Quote:
On 1/15/08, Johansson Olle E <oej@edvina.net> wrote:
> A new article in my Asterisk 1.4 series cover blinking lamps on SIP
> business phones.
> Read it to learn all the new things!
>
> http://www.voip-forum.com/asterisk/2008-01/sip-subscriptions/
>
I wonder - when this will be available from Realtime.. Managing more
than 50 users makes static config a nightmare, and AFAIK there is no
ways how to create hints with variables/extension masks. So, it is
logical to ask for hint support in Realtime.
I fail to see the problem. An #exec in the dialplan and
a custom script which reads your database and generates
the hints does the trick.
Maybe a bit too complicated for the newbie but feasible
for larger installations.
Posted: Tue Jan 15, 2008 5:01 pm Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions
Quote:
I wonder - when this will be available from Realtime.. Managing more
than 50 users makes static config a nightmare, and AFAIK there is no
ways how to create hints with variables/extension masks. So, it is
logical to ask for hint support in Realtime.
AFAIK hints are supported in Realtime:
Set the priority as -1.
Set the app as the hint.
Regards
Cameron
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue Jan 15, 2008 5:41 pm Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions
On Tuesday 15 January 2008 10:51:31 CSB wrote:
Quote:
> I wonder - when this will be available from Realtime.. Managing more
> than 50 users makes static config a nightmare, and AFAIK there is no
> ways how to create hints with variables/extension masks. So, it is
> logical to ask for hint support in Realtime.
AFAIK hints are supported in Realtime:
Set the priority as -1.
Set the app as the hint.
That's all well and good, but as the entry is in the database, it is not able
to keep a pointer to a routine in memory (or else the pointer may become
invalid after restart, without clearing the database, or else you have
multiple servers, or .....)
Having a hint entry is only half the battle. The other half is in keeping a
registry of function pointers to call when the state of the device changes.
--
Tilghman
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue Jan 15, 2008 6:23 pm Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions
On 1/15/08, Tilghman Lesher <tilghman@mail.jeffandtilghman.com> wrote:
Quote:
On Tuesday 15 January 2008 10:51:31 CSB wrote:
> > I wonder - when this will be available from Realtime.. Managing more
> > than 50 users makes static config a nightmare, and AFAIK there is no
> > ways how to create hints with variables/extension masks. So, it is
> > logical to ask for hint support in Realtime.
>
> AFAIK hints are supported in Realtime:
> Set the priority as -1.
> Set the app as the hint.
Oh, haven't seen anything like this, and not even any queries in log
that asks for "-1" priority Any more docs on this?
Quote:
That's all well and good, but as the entry is in the database, it is not able
to keep a pointer to a routine in memory (or else the pointer may become
invalid after restart, without clearing the database, or else you have
multiple servers, or .....)
Having a hint entry is only half the battle. The other half is in keeping a
registry of function pointers to call when the state of the device changes.
I'm not very familiar with internal structure of device states,
however i think this is not so hard. Why would you need to keep a
registry, i think you should just do SELECT whenever any device state
changes, to find out what to update.
While on topic - may i ask for help.. For queues with dynamic members
(i.e. Local/200@from-queue), if i would create something like this (in
realtime of course)
Posted: Tue Jan 15, 2008 7:16 pm Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions
On Tuesday 15 January 2008 12:13:46 Atis Lezdins wrote:
Quote:
On 1/15/08, Tilghman Lesher <tilghman@mail.jeffandtilghman.com> wrote:
> Having a hint entry is only half the battle. The other half is in
> keeping a registry of function pointers to call when the state of the
> device changes.
I'm not very familiar with internal structure of device states,
however i think this is not so hard. Why would you need to keep a
registry, i think you should just do SELECT whenever any device state
changes, to find out what to update.
No, you need the REVERSE direction. You need to know what code to notify
when the device changes (the device does not need to know that its state
changed -- the device is what *initiated* the state change).
And that code is not always specifically pointing to a device. In some cases,
the code is notifying an application that a device changed, which is why it's
a function pointer callback that is registered to the device hint.
--
Tilghman
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue Jan 15, 2008 9:19 pm Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions
Hello,
Quote:
> I wonder - when this will be available from Realtime.. Managing more
> than 50 users makes static config a nightmare, and AFAIK there is no
> ways how to create hints with variables/extension masks. So, it is
> logical to ask for hint support in Realtime.
>
AFAIK hints are supported in Realtime:
Set the priority as -1.
Set the app as the hint.
I have a small question: other than a phone (ie. SIP/something), what else can
I use as "app"? Can I handle the change via some custom code?
TIA,
--
Dott. Andrea Spadaccini
Multimedia Technologies Institute s.r.l.
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue Jan 15, 2008 9:28 pm Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions
Andrea Spadaccini wrote:
Quote:
I have a small question: other than a phone (ie. SIP/something), what else can
I use as "app"? Can I handle the change via some custom code?
There are a number of things that can provide "device state" in Asterisk. That
includes "real" devices such as SIP endpoints, or any other channel driver.
However, it also includes things like monitoring the state of a space in
parking, or the usage of a MeetMe conference. I have also written a small
dialplan function which lets you create custom device states. A lot of people
use this for things like having a light on the phone that reflects whether the
agent is logged in or not.
Posted: Tue Jan 15, 2008 10:10 pm Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions
Ciao Russell,
Quote:
> I have a small question: other than a phone (ie. SIP/something), what else
> can I use as "app"? Can I handle the change via some custom code?
There are a number of things that can provide "device state" in Asterisk.
That includes "real" devices such as SIP endpoints, or any other channel
driver. However, it also includes things like monitoring the state of a space
in parking, or the usage of a MeetMe conference. I have also written a small
dialplan function which lets you create custom device states. A lot of
people use this for things like having a light on the phone that reflects
whether the agent is logged in or not.
Thanks a lot for the info, I already read the first article, and it's great to
know that DEVSTATE can be used in 1.4.
But my question was different, my poor english doesn't help me. :(
In your article I read
"For example, when someone subscribes to the state of extension
1234, Asterisk knows to give them the state of the SIP phone SIP/myphone.
exten => 1234,hint,SIP/myphone"
Suppose that I want to write to a database the state of all my extensions, in
order to display it in a web page.
How could I do it using the hint mechanism?
Thanks again,
--
Dott. Andrea Spadaccini
Multimedia Technologies Institute s.r.l.
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Tue Jan 15, 2008 11:12 pm Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions
On Tuesday 15 January 2008 16:03:16 Andrea Spadaccini wrote:
Quote:
Russell wrote:
> Andrea wrote:
> > I have a small question: other than a phone (ie. SIP/something), what
> > else can I use as "app"? Can I handle the change via some custom code?
>
> There are a number of things that can provide "device state" in Asterisk.
> That includes "real" devices such as SIP endpoints, or any other channel
> driver. However, it also includes things like monitoring the state of a
> space in parking, or the usage of a MeetMe conference. I have also
> written a small dialplan function which lets you create custom device
> states. A lot of people use this for things like having a light on the
> phone that reflects whether the agent is logged in or not.
>
> More information:
>
> http://asterisk.org/node/48325
> http://asterisk.org/node/48360
Thanks a lot for the info, I already read the first article, and it's great
to know that DEVSTATE can be used in 1.4.
But my question was different, my poor english doesn't help me. :(
In your article I read
"For example, when someone subscribes to the state of extension
1234, Asterisk knows to give them the state of the SIP phone SIP/myphone.
exten => 1234,hint,SIP/myphone"
Suppose that I want to write to a database the state of all my extensions,
in order to display it in a web page.
How could I do it using the hint mechanism?
Just create a module that subscribes to every single device and when the state
changes, your callback will get an event with the device name that changed.
You could then update your database with an SQL query (or whatever else you
like).
--
Tilghman
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Wed Jan 16, 2008 7:46 am Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions
16 jan 2008 kl. 00.03 skrev Tilghman Lesher:
Quote:
On Tuesday 15 January 2008 16:03:16 Andrea Spadaccini wrote:
> Russell wrote:
>> Andrea wrote:
>>> I have a small question: other than a phone (ie. SIP/something),
>>> what
>>> else can I use as "app"? Can I handle the change via some custom
>>> code?
>>
>> There are a number of things that can provide "device state" in
>> Asterisk.
>> That includes "real" devices such as SIP endpoints, or any other
>> channel
>> driver. However, it also includes things like monitoring the state
>> of a
>> space in parking, or the usage of a MeetMe conference. I have also
>> written a small dialplan function which lets you create custom
>> device
>> states. A lot of people use this for things like having a light
>> on the
>> phone that reflects whether the agent is logged in or not.
>>
>> More information:
>>
>> http://asterisk.org/node/48325
>> http://asterisk.org/node/48360
>
> Thanks a lot for the info, I already read the first article, and
> it's great
> to know that DEVSTATE can be used in 1.4.
>
> But my question was different, my poor english doesn't help me. :(
>
> In your article I read
> "For example, when someone subscribes to the state of extension
> 1234, Asterisk knows to give them the state of the SIP phone SIP/
> myphone.
>
> exten => 1234,hint,SIP/myphone"
>
> Suppose that I want to write to a database the state of all my
> extensions,
> in order to display it in a web page.
>
> How could I do it using the hint mechanism?
Just create a module that subscribes to every single device and when
the state
changes, your callback will get an event with the device name that
changed.
You could then update your database with an SQL query (or whatever
else you
like).
The manager interface is our preferred connection to Asterisk from
third-party
modules. The AMI will report all device state changes, so you can
create an
app that updates your database based on this information.
/Olle
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Posted: Wed Jan 16, 2008 8:37 am Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions
Ciao Olle, Tilghman,
Quote:
>> How could I do it using the hint mechanism?
>
> Just create a module that subscribes to every single device and when
> the state
> changes, your callback will get an event with the device name that
> changed.
> You could then update your database with an SQL query (or whatever
> else you
> like).
The manager interface is our preferred connection to Asterisk from
third-party
modules. The AMI will report all device state changes, so you can
create an
app that updates your database based on this information.
Thanks to both of you for the hints. :)
Bye
--
Dott. Andrea Spadaccini
Multimedia Technologies Institute s.r.l.
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum