Re: [Asterisk-Users] SIMPLE support in Asterisk?
So what's a call for asterisk? * Something that's set up between two endpoints through the dialplan. Simple can send messages within a call, like * A calls B with SIP (INVITE-ACK-ACK) * B sends a URL to A with SIMPLE within the SIP session The problem that we have, if I understand Mark, is that Simple may also be used to send IM without setting up a SIP call (INVITE-ACK-ACK). Like the MWI SIP Notify message from Asterisk. Is that only generated in the relation to a SIP register? Asterisk has some notion of presense (CLI SIP show peers) but not detailed as the normal IM user wants: Presence with some attribute (atoffice, athome, atmistress etc). To get SIMPLE to work within Asterisk, we'll have to: * Add SIMPLE support within the context of a call * Add a new session apart from a call - notification * Add some attributes to presence structure * Add a SUBCRIBE/ACCEPT mechanism - who may subscribe to my whereabouts? * Find programmers that can do this :-) Do the other protocols, MGCP, IAX2, H.323 have any support for text messages? I'd love this to implemented in IAX2 as well, without setting up and tearing down a channel everytime you wish to send a message. Also the ability to subscribe to someone's presence but not a pull method. (eg not polling every minute) - It needs to be instant, as soon as they go on call, their subscribers need to be notified. I'd like to do it myself but I don't think I understand asterisk and chan_iax2.c well enough. Hence, I'm currently hacking chan_iax2.c in my own way. A generic method needs to be made so you can set up a message dial plan so we reuse everything, hence it's simple to store the message if the recipient isn't online, using existing functions. -Adam ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] SIMPLE support in Asterisk?
Just thought of another, I think an iax_func or iax_custom would be great. It would act like an rpc and on the other end you'd have a dialplan or similar to parse and return the result. eg iax_func(fetchvoicemailcount) or iax_func(getactivecallcount) - this would allow for phones to be very customable without hacking asterisk source. So what's a call for asterisk? * Something that's set up between two endpoints through the dialplan. Simple can send messages within a call, like * A calls B with SIP (INVITE-ACK-ACK) * B sends a URL to A with SIMPLE within the SIP session The problem that we have, if I understand Mark, is that Simple may also be used to send IM without setting up a SIP call (INVITE-ACK-ACK). Like the MWI SIP Notify message from Asterisk. Is that only generated in the relation to a SIP register? Asterisk has some notion of presense (CLI SIP show peers) but not detailed as the normal IM user wants: Presence with some attribute (atoffice, athome, atmistress etc). To get SIMPLE to work within Asterisk, we'll have to: * Add SIMPLE support within the context of a call * Add a new session apart from a call - notification * Add some attributes to presence structure * Add a SUBCRIBE/ACCEPT mechanism - who may subscribe to my whereabouts? * Find programmers that can do this :-) Do the other protocols, MGCP, IAX2, H.323 have any support for text messages? I'd love this to implemented in IAX2 as well, without setting up and tearing down a channel everytime you wish to send a message. Also the ability to subscribe to someone's presence but not a pull method. (eg not polling every minute) - It needs to be instant, as soon as they go on call, their subscribers need to be notified. I'd like to do it myself but I don't think I understand asterisk and chan_iax2.c well enough. Hence, I'm currently hacking chan_iax2.c in my own way. A generic method needs to be made so you can set up a message dial plan so we reuse everything, hence it's simple to store the message if the recipient isn't online, using existing functions. -Adam ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] SIMPLE support in Asterisk?
Leif Madsen wrote: On Thu, 2003-11-27 at 12:03, Mark Spencer wrote: Yea, cause I used both Kphone and Windows messenger, and they successfully registered (and subscribed i think) towards asterisk. Using Kphone I even get a online status on all other users on the asterisk but no interaction with status or IM. So maybe there is some quasi presence avaible? I think it would be a great tool to support IM/Presence. There is so much that can be done with such implementations. SIMPLE could be added within chan_sip, but there is no mechanism within Asterisk to move text from one channel to another *without* the context of a call. *With* the context of a call, we definitely have such a thing (TEXT frames) Some brainstorm notes then: So what's a call for asterisk? * Something that's set up between two endpoints through the dialplan. Simple can send messages within a call, like * A calls B with SIP (INVITE-ACK-ACK) * B sends a URL to A with SIMPLE within the SIP session The problem that we have, if I understand Mark, is that Simple may also be used to send IM without setting up a SIP call (INVITE-ACK-ACK). Like the MWI SIP Notify message from Asterisk. Is that only generated in the relation to a SIP register? Asterisk has some notion of presense (CLI SIP show peers) but not detailed as the normal IM user wants: Presence with some attribute (atoffice, athome, atmistress etc). To get SIMPLE to work within Asterisk, we'll have to: * Add SIMPLE support within the context of a call * Add a new session apart from a call - notification * Add some attributes to presence structure * Add a SUBCRIBE/ACCEPT mechanism - who may subscribe to my whereabouts? * Find programmers that can do this :-) Do the other protocols, MGCP, IAX2, H.323 have any support for text messages? /O ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] SIMPLE support in Asterisk?
Ok Yea, cause I used both Kphone and Windows messenger, and they successfully registered (and subscribed i think) towards asterisk. Using Kphone I even get a online status on all other users on the asterisk but no interaction with status or IM. So maybe there is some quasi presence avaible? I think it would be a great tool to support IM/Presence. There is so much that can be done with such implementations. rgds, /staffan kerker On Thu, 2003-11-27 at 04:53, John Todd wrote: Hi Is there any work being done on implementing IM/SIMPLE support for SIP on Asterisk? Like a presence server? rdgs, /Staffan Kerker No. There are currently requests in the system for that functionality (http://bugs.digium.com/bug_view_page.php?bug_id=134) but it's waiting for a White Knight to ride up and code a solution. However, there are some quasi-presence tools that appear to be built into Asterisk in ways that nobody has explained yet. I wouldn't use the term secret but the total lack of documentation and/or answers to the questions on how to use these features makes me wonder... JT Date: Thu, 16 Oct 2003 03:51:01 -0500 To: asterisk-users-lists.digium.com From: John Todd [EMAIL PROTECTED] Subject: Use of the hint modifiers - examples, anyone? Cc: Bcc: X-Attachments: I have found some references to the hint (or HINT?) variable and method in the source code, but quite a bit of Google-ing has not turned up any extensive answers as to some real-life examples of how to use this perhaps very useful tool. I understand the point of the tool, but I need to get some actual configs to look at before I think I'll figure it out. Even if my particular equipment doesn't support it, there may be other ideas I can get from it. (JerJer - maybe SCCP could use that data if there is an SCCP command of similar nature to the SIP SUBSCRIBE command - that would be pretty handy for those 7914 operator stations.) Searching through the source gives tantalizing hints (no pun intended) in pbx.c, but no actual real-life samples. Can someone who is familiar with it put some words to the features? I found this from March 20, 2003 from Andre Bierwirth: Subject: [Asterisk-Dev] Logged in users To: [EMAIL PROTECTED] I am currently work on it. If i am ready Asterisk have functions to get = device or extension state. int ast_extension_state(struct ast_channel *c, char *context, char = *exten) returns=20 -1 =3D error or no hint(device hint) for extension 0 =3D extension is free or unknown 1 =3D one device in extension is busy (have a call) 2 =3D all devices in extension unavailable(unregistered) ** You can give ast_device_state a Dialstring like SIP/mark or IAX/mark = ** int ast_device_state(char *device) returns -1 =3D error 0 =3D device is free or unknown 1 =3D device is busy (have a call) 2 =3D device is valid but unregistered So SIP can support SUBSCRIBE requests, and for Snom200 SUBSCIBE Dialogs = (Map a Key to an extension and see if the extension have a call (the LED = turned on)) Its easy to implement the device state support for IAX, i have talk with = mark about it. I implement only the PBX and Channel and SIP functions. With IAX you can poll the dialplan and get the extension states if its = implemented. Andre --- JT ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users -- Staffan Kerker AerotechTelub AB, Communications [EMAIL PROTECTED] ph. +46(0)47042185 cell. +46(0)705391365 -- Don't get involved in politics man, just play the gig... /Sgt Floyd, Electric Mayhem Band ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] SIMPLE support in Asterisk?
Yea, cause I used both Kphone and Windows messenger, and they successfully registered (and subscribed i think) towards asterisk. Using Kphone I even get a online status on all other users on the asterisk but no interaction with status or IM. So maybe there is some quasi presence avaible? I think it would be a great tool to support IM/Presence. There is so much that can be done with such implementations. SIMPLE could be added within chan_sip, but there is no mechanism within Asterisk to move text from one channel to another *without* the context of a call. *With* the context of a call, we definitely have such a thing (TEXT frames) Mark ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] SIMPLE support in Asterisk?
On Thu, 2003-11-27 at 12:03, Mark Spencer wrote: Yea, cause I used both Kphone and Windows messenger, and they successfully registered (and subscribed i think) towards asterisk. Using Kphone I even get a online status on all other users on the asterisk but no interaction with status or IM. So maybe there is some quasi presence avaible? I think it would be a great tool to support IM/Presence. There is so much that can be done with such implementations. SIMPLE could be added within chan_sip, but there is no mechanism within Asterisk to move text from one channel to another *without* the context of a call. *With* the context of a call, we definitely have such a thing (TEXT frames) I haven't read the rest of this thread as I've been away, but I would also love to see Asterisk able to support some sort of IM'ing / Presence. Sorry for the non-informative post :) Leif Madsen. ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] SIMPLE support in Asterisk?
Hi Is there any work being done on implementing IM/SIMPLE support for SIP on Asterisk? Like a presence server? rdgs, /Staffan Kerker No. There are currently requests in the system for that functionality (http://bugs.digium.com/bug_view_page.php?bug_id=134) but it's waiting for a White Knight to ride up and code a solution. However, there are some quasi-presence tools that appear to be built into Asterisk in ways that nobody has explained yet. I wouldn't use the term secret but the total lack of documentation and/or answers to the questions on how to use these features makes me wonder... JT Date: Thu, 16 Oct 2003 03:51:01 -0500 To: asterisk-users-lists.digium.com From: John Todd [EMAIL PROTECTED] Subject: Use of the hint modifiers - examples, anyone? Cc: Bcc: X-Attachments: I have found some references to the hint (or HINT?) variable and method in the source code, but quite a bit of Google-ing has not turned up any extensive answers as to some real-life examples of how to use this perhaps very useful tool. I understand the point of the tool, but I need to get some actual configs to look at before I think I'll figure it out. Even if my particular equipment doesn't support it, there may be other ideas I can get from it. (JerJer - maybe SCCP could use that data if there is an SCCP command of similar nature to the SIP SUBSCRIBE command - that would be pretty handy for those 7914 operator stations.) Searching through the source gives tantalizing hints (no pun intended) in pbx.c, but no actual real-life samples. Can someone who is familiar with it put some words to the features? I found this from March 20, 2003 from Andre Bierwirth: Subject: [Asterisk-Dev] Logged in users To: [EMAIL PROTECTED] I am currently work on it. If i am ready Asterisk have functions to get = device or extension state. int ast_extension_state(struct ast_channel *c, char *context, char = *exten) returns=20 -1 =3D error or no hint(device hint) for extension 0 =3D extension is free or unknown 1 =3D one device in extension is busy (have a call) 2 =3D all devices in extension unavailable(unregistered) ** You can give ast_device_state a Dialstring like SIP/mark or IAX/mark = ** int ast_device_state(char *device) returns -1 =3D error 0 =3D device is free or unknown 1 =3D device is busy (have a call) 2 =3D device is valid but unregistered So SIP can support SUBSCRIBE requests, and for Snom200 SUBSCIBE Dialogs = (Map a Key to an extension and see if the extension have a call (the LED = turned on)) Its easy to implement the device state support for IAX, i have talk with = mark about it. I implement only the PBX and Channel and SIP functions. With IAX you can poll the dialplan and get the extension states if its = implemented. Andre --- JT ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] SIMPLE support in Asterisk?
Hi Is there any work being done on implementing IM/SIMPLE support for SIP on Asterisk? Like a presence server? rdgs, /Staffan Kerker ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users