Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
oej at edvina.net
Guest





PostPosted: Tue Jan 15, 2008 10:41 am    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

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/

Regards,
/Olle
Back to top
asterisk-list at puzzl...
Guest





PostPosted: Tue Jan 15, 2008 11:11 am    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

On Tue, 2008-01-15 at 16:41 +0100, Johansson Olle E wrote:
Quote:
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/

Nice one Olle. Before I possibly waste my time trying this does this
blinkety lights magic also work with SCCP phones?

Regards,
Patrick
Back to top
atis at iq-labs.net
Guest





PostPosted: Tue Jan 15, 2008 11:16 am    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

On 1/15/08, Johansson Olle E <oej at edvina.net> wrote:
Quote:
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.

Regards,
Atis
--
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835
Back to top
philipp.kempgen at amo...
Guest





PostPosted: Tue Jan 15, 2008 11:41 am    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

Atis Lezdins wrote:
Quote:
On 1/15/08, Johansson Olle E <oej at edvina.net> wrote:
Quote:
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.

Regards,
Philipp Kempgen

--
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
Let's use IT to solve problems and not to create new ones.
Asterisk? -> http://www.das-asterisk-buch.de

Gesch?ftsf?hrer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998
Back to top
kjcsb at xnet.co.nz
Guest





PostPosted: Tue Jan 15, 2008 11:51 am    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

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
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Tue Jan 15, 2008 12:29 pm    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

On Tuesday 15 January 2008 10:51:31 CSB wrote:
Quote:
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
Back to top
atis at iq-labs.net
Guest





PostPosted: Tue Jan 15, 2008 1:13 pm    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

On 1/15/08, Tilghman Lesher <tilghman at mail.jeffandtilghman.com> wrote:
Quote:
On Tuesday 15 January 2008 10:51:31 CSB wrote:
Quote:
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.

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 at from-queue), if i would create something like this (in
realtime of course)

[from-queue]
exten=>200,hint,SIP/300
exten=>200,1,Dial(SIP/300)

Would this send update to queue of SIP/300 state? All the RINGING/INUSE?
Regards,
Atis


--
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Tue Jan 15, 2008 2:07 pm    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

On Tuesday 15 January 2008 12:13:46 Atis Lezdins wrote:
Quote:
On 1/15/08, Tilghman Lesher <tilghman at mail.jeffandtilghman.com> wrote:
Quote:
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
Back to top
a.spadaccini at mediat...
Guest





PostPosted: Tue Jan 15, 2008 4:11 pm    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

Hello,

Quote:
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.
Back to top
russell at digium.com
Guest





PostPosted: Tue Jan 15, 2008 4:22 pm    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

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.

More information:

http://asterisk.org/node/48325
http://asterisk.org/node/48360

--
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.
Back to top
russell at digium.com
Guest





PostPosted: Tue Jan 15, 2008 4:23 pm    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

Patrick wrote:
Quote:
Nice one Olle. Before I possibly waste my time trying this does this
blinkety lights magic also work with SCCP phones?

IIRC, this feature is currently only supported in Asterisk trunk (soon to become
Asterisk 1.6).

--
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.
Back to top
a.spadaccini at mediat...
Guest





PostPosted: Tue Jan 15, 2008 5:03 pm    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

Ciao Russell,

Quote:
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.

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. Sad

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.
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Tue Jan 15, 2008 6:03 pm    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

On Tuesday 15 January 2008 16:03:16 Andrea Spadaccini wrote:
Quote:
Russell wrote:
Quote:
Andrea 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.

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. Sad

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
Back to top
oej at edvina.net
Guest





PostPosted: Wed Jan 16, 2008 2:39 am    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

16 jan 2008 kl. 00.03 skrev Tilghman Lesher:

Quote:
On Tuesday 15 January 2008 16:03:16 Andrea Spadaccini wrote:
Quote:
Russell wrote:
Quote:
Andrea 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.

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. Sad

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
Back to top
a.spadaccini at mediat...
Guest





PostPosted: Wed Jan 16, 2008 3:33 am    Post subject: [asterisk-users] Discover Asterisk 1.4 :: SIP Subscriptions Reply with quote

Ciao Olle, Tilghman,

Quote:
Quote:
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. Smile
Bye

--
Dott. Andrea Spadaccini
Multimedia Technologies Institute s.r.l.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services