dynamically change the presence status
Hello, i'm a bit confused about how to port a special function i've on some asterisk system to Freeswitch. In my old asterisk scenario i've all the phones subscribe to extensions <sip:999@PBXIP> this exentions is configured not to monitor a device but a "DeviceState" variable, i.e.: 999,hint,DS/faxserver using dialplan i turn on the blinking status using DevState(DS/FaxServer,${RINGING}) and i turn it off when the call is hanged down. The same applies to other functions: queues, night service, etc. Under freeswitch the solution is http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_presence ? I tried but it didn't worked: presence in|999@PBXIP|dnd|'Do not disturb.' presence out|999@PBXIP|dnd|'Do not disturb.' The LED on the phones (Grandstream GXP 2010 or Snom 320) does not turn RED/ON. Any suggestion?
<action application="set" data="presence_id=999@${domain}"/> On Mon, Apr 27, 2009 at 8:48 AM, Antonio Gallo <gallo@mctelefonia.com>wrote:
Hello, i'm a bit confused about how to port a special function i've on some asterisk system to Freeswitch.
In my old asterisk scenario i've all the phones subscribe to extensions <sip:999@PBXIP> this exentions is configured not to monitor a device but a "DeviceState" variable, i.e.: 999,hint,DS/faxserver using dialplan i turn on the blinking status using DevState(DS/FaxServer,${RINGING}) and i turn it off when the call is hanged down. The same applies to other functions: queues, night service, etc.
Under freeswitch the solution is http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_presence ? I tried but it didn't worked: presence in|999@PBXIP|dnd|'Do not disturb.' presence out|999@PBXIP|dnd|'Do not disturb.'
The LED on the phones (Grandstream GXP 2010 or Snom 320) does not turn RED/ON.
Any suggestion?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Anthony Minessale ha scritto:
<action application="set" data="presence_id=999@${domain}"/> Sorry its still not clean to me.
The phones are already subscribed to 999@${domain}. 999 in my idea is not a SIP device but something like global variable that i should change status using a script (that for instances run a SQL Query too) or some stuffs like that. Thanks, Antonio
He's saying if you just set the presense_id variable the core will take care of sending the presence messages for you! On Apr 27, 2009, at 9:43 AM, Antonio Gallo wrote:
Sorry its still not clean to me.
The phones are already subscribed to 999@${domain}. 999 in my idea is not a SIP device but something like global variable that i should change status using a script (that for instances run a SQL Query too) or some stuffs like that.
Thanks, Antonio
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
I looked at FS code directly and had an improvement about the problem. Topic 1: presence can be changed and working The wiki page: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_presence is totally wrong about the presence application, indeed when i first asked on IRC some weeks ago i get confused. On my user page, http://wiki.freeswitch.org/wiki/User:Agx, i posted some working example. I tested using X-Lite and Zoiper from my home connecting to FS behind NAT in the office. Topic 2: is this a BUG? 1. phone A register and subsribe about presence of B 2. phone B register and A get a notified that B is online (IN) 3. phone B unregister and A get notified that B is offline (OUT) 4. phone B register and A *NEVER* get notified that B is online UNTIL A register/resubscribe or A reboots is FS that remove A subscribtions when B generate a presence OUT event? is this a bug? Topic 3: presence seems stateless if is not a phone 1. phone A subscribe about presence of test@domain (not a phone) and about B@domain (a phone) 2. i change test@domain status to busy (using the presence tool) and A get notified 3. i start a call from B@domain and A get notified 4. i reboot/unregister A 5. i restart/register A then A get notified about B@domain still being on the phone but not about test@domain been busy i looked in the code and seems the PRESENCE_PROBE stuffs looks about the internal database of registrations to have test@domain been persistence across FS restart/reboot do i need to create a module myself that handle presence using a database? Thanks in advance, Antonio (AGX)
On Wed, Apr 29, 2009 at 2:01 AM, Antonio Gallo <gallo@mctelefonia.com>wrote:
I looked at FS code directly and had an improvement about the problem.
Topic 1: presence can be changed and working
The wiki page: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_presence is totally wrong about the presence application, indeed when i first asked on IRC some weeks ago i get confused.
On my user page, http://wiki.freeswitch.org/wiki/User:Agx, i posted some working example. I tested using X-Lite and Zoiper from my home connecting to FS behind NAT in the office.
Topic 2: is this a BUG?
1. phone A register and subsribe about presence of B 2. phone B register and A get a notified that B is online (IN) 3. phone B unregister and A get notified that B is offline (OUT) 4. phone B register and A *NEVER* get notified that B is online UNTIL A register/resubscribe or A reboots
is FS that remove A subscribtions when B generate a presence OUT event? is this a bug?
It depends, not every phone does presence right and they all have different levels of support. The 2 you are using are very different from how the majority of them work (snom, polycom, linksys etc) Did you try reversing the role of A and B
Topic 3: presence seems stateless if is not a phone
1. phone A subscribe about presence of test@domain (not a phone) and about B@domain (a phone) 2. i change test@domain status to busy (using the presence tool) and A get notified 3. i start a call from B@domain and A get notified 4. i reboot/unregister A 5. i restart/register A then A get notified about B@domain still being on the phone but not about test@domain been busy
i looked in the code and seems the PRESENCE_PROBE stuffs looks about the internal database of registrations to have test@domain been persistence across FS restart/reboot do i need to create a module myself that handle presence using a database?
YES
Thanks in advance, Antonio (AGX)
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
It depends, not every phone does presence right and they all have different levels of support. The 2 you are using are very different from how the majority of them work (snom, polycom, linksys etc) Did you try reversing the role of A and B I will pickup a snom320 and a gxp 20xx and will try
Topic 3: presence seems stateless if is not a phone
to create a module myself that handle presence using a database?
YES
I looked at source code of conferece/fico (that generate presence from XML config) and dingaling (who use database). So i think its not difficult to write it. Hope to have free time :) Thank you, Antonio (AGX)
ok i did some test today using the yesterday's trunk with a gxp2010 and a snom360 both with 2 LEDS monitoring each other and themselves. Configuration: gxp2010 user: 1000 led1: 1000 led2: 1001 snom360 user: 1001 led1: 1000 led2: 1001 Problem with both phones: - when a phone reboot and it subscribe it does not get notified of the current status of the subscribed phones i.e. if gxp is on the phone the snom led1 is off/unlit i.e. if snom is on the phone the gxp led2 is off/unlit Problem with GXP only: - both subscribe LED stop working after a 1 or 2 calls until the gxp re-subscribe or re-register To skip using LED on phones is there is something like "flash operator panel" to display telephone status? Thanks in advance, Antonio (AGX)
None that I know of, but it should be fairly simple to create FOP for FS with the event socket. 2009/4/29 Antonio Gallo <gallo@mctelefonia.com>
ok i did some test today using the yesterday's trunk with a gxp2010 and a snom360 both with 2 LEDS monitoring each other and themselves.
Configuration: gxp2010 user: 1000 led1: 1000 led2: 1001 snom360 user: 1001 led1: 1000 led2: 1001
Problem with both phones: - when a phone reboot and it subscribe it does not get notified of the current status of the subscribed phones i.e. if gxp is on the phone the snom led1 is off/unlit i.e. if snom is on the phone the gxp led2 is off/unlit
Problem with GXP only: - both subscribe LED stop working after a 1 or 2 calls until the gxp re-subscribe or re-register
To skip using LED on phones is there is something like "flash operator panel" to display telephone status?
Thanks in advance, Antonio (AGX)
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Wed, Apr 29, 2009 at 2:13 PM, Mikael Bjerkeland <mikael@bjerkeland.com>wrote:
None that I know of, but it should be fairly simple to create FOP for FS with the event socket.
The "fairly simple" part is actually doing it. The really hard part is finding the time/energy/inclination to do it... -MC
edit autoload_configs/sofia.conf.xml in <global_settings> add <param name="debug-presence" value="2"/> then you will see all the sql stmts etc and you can debug your issue On Wed, Apr 29, 2009 at 11:18 AM, Antonio Gallo <gallo@mctelefonia.com>wrote:
ok i did some test today using the yesterday's trunk with a gxp2010 and a snom360 both with 2 LEDS monitoring each other and themselves.
Configuration: gxp2010 user: 1000 led1: 1000 led2: 1001 snom360 user: 1001 led1: 1000 led2: 1001
Problem with both phones: - when a phone reboot and it subscribe it does not get notified of the current status of the subscribed phones i.e. if gxp is on the phone the snom led1 is off/unlit i.e. if snom is on the phone the gxp led2 is off/unlit
Problem with GXP only: - both subscribe LED stop working after a 1 or 2 calls until the gxp re-subscribe or re-register
To skip using LED on phones is there is something like "flash operator panel" to display telephone status?
Thanks in advance, Antonio (AGX)
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (5)
-
Anthony Minessale
-
Antonio Gallo
-
Brian West
-
Michael Collins
-
Mikael Bjerkeland