[Freeswitch-users] Group confusions

Michael Collins msc at freeswitch.org
Mon Feb 7 21:44:23 MSK 2011


How much changing will there be in the members who are rung? Do you need to
be able to change the users dynamically? Or can you hard-code them? I see
two options, both of which use the time of day (TOD) routing:

Set up the day-night routing and during 8am-5pm manually dial the group like
this:
<extension name=tod_incoming">
  <condition wday="1-5" hour="8-17">
    <action application="bridge"
data="<ignore_early_media=true>user/xx1:_:user/xx2:_:user/xx3">
    <anti-action application="bridge"
data="<ignore_early_media=true>user/xx4:_:user/xx5:_:user/xx6">
  </condition>
</extension>

This creates a static list of users to be dialed during 8-5, M-F and a
separate, static list to be dialed outside those hours. That's quick and
easy and if you never need to change the users who are dialed then that's
the best option.

If, though, you need to be able to control who is in each group then
designate something like group "1" is day and group "2" is night. Have the
users dial 8101/8001 to join/leave the "day" group and dial 8102/8002 to
join/leave the "night" group. From there your dialplan is very similar to
the previous example:

<extension name=tod_incoming">
  <condition wday="1-5" hour="8-17">
    <action application="bridge"
data="{ignore_early_media=true}${group(call:01@${domain_name})}">
    <anti-action application="bridge"
data="{leg_timeout=15,ignore_early_media=true}${group(call:02@
${domain_name})}">
  </condition>
</extension>

This example simply calls group "01" during business hours and calls group
"02" during non-business hours. If you trust your users to add/remove
themselves properly then this method is nice.

Have fun tinkering, and let us know if you need help setting up
voicemail/auto attendant fallback if none of your users answers the incoming
call. ;)

-MC

On Mon, Feb 7, 2011 at 11:11 AM, Larry Marshall <larry at newportpc.com> wrote:

> Michael,
>
>
>
> Thanks for your response. The cli tests are:
>
>
>
> freeswitch at internal> group call:01 at 192.168.10.29
>
> sofia/internal/sip:1002 at 192.168.10.105
>
> freeswitch at internal> sofia_contact 1013 at 192.168.10.29
>
> sofia/internal/sip:1013 at 192.168.10.107
>
> freeswitch at internal> group insert:01:1013 at 192.168.10.29
>
> +OK
>
> freeswitch at internal> group call:01 at 192.168.10.29
>
> sofia/internal/sip:1002 at 192.168.10.105
>
>
>
> I assume that after adding extension 1013 to group 01 it should be listed
> in the ‘group call’ function. Is this correct?
>
>
>
> Maybe I should start from the beginning, especially with your warning about
> the difference between the group and group_call APIs. I want to ring a group
> of extensions on an inbound call. I need to populate the members of this
> group based on time constraints (the current time of day, e.g. extension
> 1013 should only ring between 8:00AM and 5:00PM Monday-Friday), and ring the
> appropriate extensions. I wanted to try to do this within a lua script.
>
>
>
> Which group API should I look at?
>
>
>
> Thanks, Lars
>
>
>
> *From:* freeswitch-users-bounces at lists.freeswitch.org [mailto:
> freeswitch-users-bounces at lists.freeswitch.org] *On Behalf Of *Michael
> Collins
> *Sent:* Monday, February 07, 2011 8:05 AM
> *To:* FreeSWITCH Users Help
> *Subject:* Re: [Freeswitch-users] Group confusions
>
>
>
> I may be that the value you are trying to delete isn't "1013 at 192.168.10.29".
> To find out, go to fs_cli and do this:
>
>
>
> group call:01 at 192.168.10.29
>
>
>
> It will spit out all the sofia contacts in group 01. Most likely you have
> something like this:
>
> 1013 at 192.168.10.29:12345;rinstance=aabbccddeeff0011;transport=udp
>
>
>
> BTW, the value put into the group call when you dial 8101 is the same value
> that you find by doing this at fs_cli:
>
>
>
> sofia_contact 1013 at 192.168.10.29
>
>
>
> Go try it and let us now.
>
>
>
> -MC
>
>
>
> P.S. - the 'group' API and dp apps you are using are the same - they come
> from mod_db. They are *totally* different from the group_call API...
>
> On Fri, Feb 4, 2011 at 2:11 PM, Lars Zeb <larclap at yahoo.com> wrote:
>
> I went to two individual extensions and registered them for group 01 by
> dialing 8101. I then tested that group by dialing 8201 - both extensions
> rang.
>
> I then went to the cli and entered the command:
>
> group delete:01:1013 at 192.168.10.29
>
> where 1013 is one of the two extensions I had joined into group 01 earlier
> and the url is the domain and fs address. However, when I dialed 8201 after
> entering this cli command, both extensions rang. I had expected that only
> one would ring.
>
> I am confused. Are these two different types of "groups"?
>
> Thanks, Lars
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110207/893cc5bb/attachment-0001.html 


More information about the FreeSWITCH-users mailing list