[asterisk-users] Mimic SIP Events framework in Asterisk without coding ...

Olivier oza-4h07 at myamail.com
Sun Oct 5 10:05:14 CDT 2008


2008/10/4 Tzafrir Cohen <tzafrir.cohen at xorcom.com>

> On Sat, Oct 04, 2008 at 02:02:48PM +0200, Olivier wrote:
> > Hi,
> >
> > You can see here and there, several new SIP RFCs relying on SIP Events
> > Framework.
> > For example, RFC3680 with which a registration server would notify
> endpoints
> > with relevant events.
> >
> > In Asterisk 1.6.1, a new SIPnotify AMI command implements a mechanism to
> > send arbitrary NOTIFY commands.
> >
> > Is there any sister SUBSCRIBE mechanism that allow an application relying
> on
> > AMI to receive SUSCRIBE messages matching some criteria ?
> > With both NOTIFY and SUBSCRIBE tools in hands, one could extend Asterisk
> to
> > support SIP RFC without having to code into Asterisk source.
>
> Use sipsak (apt-get install sipsak) ?
>
> This program has to be good for something.


Hi,

I'm sure sipsak is good for something but it's not easy for me to see how it
could help.

Let's say you've got an RFC3680 compliant phone and you can configure its
RegEvent server address.
This server would receive SUBSCRIBE message from phones and return NOTIFY
according values embedded in SUBSCRIBE and REGISTER messages.

Do you mean sipsak is configurable-enough to read those SUBSCRIBE messages,
get missings values from Asterisk and write NOTIFY answers ?


On an other hand, new AMI-custom-notify feature in 1.6.1 made me wonder if
Asterisk could support what I would call USER SUBSCRIBE: anytime Asterisk
receives a SUBSCRIBE it has been told to treat this way, it would send an
AMI-USER-SUBSCRIBE event.
With such "USER SUBSCRIBE" event, with this custom NOTIFY and with usual AMI
features, it should become easier to extend
Asterisk implementing any SIP Event Framework-based features like this :

SIP endpoint                        Asterisk                            AMI
application
       -------- SUBSCRIBE ----------->
                                                ------ USER SUBSCRIBE
-------->
                                                <-------- AMI queries
---------------->
                                                <-- Customer NOTIFY request
--
       <------------- NOTIFY -------------

Tzafir, are suggesting to use sipsak instead of Asterisk in this ?


>
> > AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> > Register Now: http://www.astricon.net
>
> I tried. I get: "Comming soon, registration for AstriCon 2009." :-)
>
> --
>               Tzafrir Cohen
> icq#16849755              jabber:tzafrir.cohen at xorcom.com<jabber%3Atzafrir.cohen at xorcom.com>
> +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081005/a9bfe5ad/attachment.htm 


More information about the asterisk-users mailing list