HI, I read wiki tutorial about call group intercept (http://wiki.freeswitch.org/wiki/Callgroup_intercept) ans also implemented it. (If I make call intercept which is not for callgroup it works) I put this in public dialplan, so that every call UUID will be inserted in mysql database. <action application="set" data="called_party_callgroup=${user_data(${dialed_ext}@${domain} var callgroup)}"/> <action application="db" data="insert/last_dial/${called_party_callgroup}/${uuid}"/> <action application="bridge" data="user/${dialed_ext}@$${domain}"/> When call hit public dialplan I can not access variable callgroup. As callgroup variable is not set I can not make right mysql insert. What is the best way to deal with this? THanks! Miha
I think that perhaps you are misunderstanding what the instructions on that wiki page are doing. The var "callgroup" is set in the user's directory entry. Did you do that for each user in your pickup group? -MC On Sun, May 20, 2012 at 11:51 PM, Miha <miha@softnet.si> wrote:
HI,
I read wiki tutorial about call group intercept ( http://wiki.freeswitch.org/wiki/Callgroup_intercept) ans also implemented it. (If I make call intercept which is not for callgroup it works)
I put this in public dialplan, so that every call UUID will be inserted in mysql database.
<action application="set" data="called_party_callgroup=${user_data(${dialed_ext}@${domain} var callgroup)}"/> <action application="db" data="insert/last_dial/${called_party_callgroup}/${uuid}"/> <action application="bridge" data="user/${dialed_ext}@$${domain}"/>
When call hit public dialplan I can not access variable callgroup. As callgroup variable is not set I can not make right mysql insert. What is the best way to deal with this?
THanks!
Miha
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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 5/21/2012 6:14 PM, Michael Collins wrote:
I think that perhaps you are misunderstanding what the instructions on that wiki page are doing. The var "callgroup" is set in the user's directory entry. Did you do that for each user in your pickup group?
-MC
On Sun, May 20, 2012 at 11:51 PM, Miha <miha@softnet.si <mailto:miha@softnet.si>> wrote:
HI,
I read wiki tutorial about call group intercept (http://wiki.freeswitch.org/wiki/Callgroup_intercept) ans also implemented it. (If I make call intercept which is not for callgroup it works)
I put this in public dialplan, so that every call UUID will be inserted in mysql database.
<action application="set" data="called_party_callgroup=${user_data(${dialed_ext}@${domain} var callgroup)}"/> <action application="db" data="insert/last_dial/${called_party_callgroup}/${uuid}"/> <action application="bridge" data="user/${dialed_ext}@$${domain}"/>
When call hit public dialplan I can not access variable callgroup. As callgroup variable is not set I can not make right mysql insert. What is the best way to deal with this?
THanks!
Miha
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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 HI @Michal,
I have defined callgroup for users that I would like to have in the same callgroup. After call hit public dialplan I make <action application="info" /> but in log I can not see that any variable for that user is set. If I make call from default dialplan variables are set and I can use them. Would it be better to redirect call to default dialplan? Regards, Miha
HI @Michal,
I have defined callgroup for users that I would like to have in the same callgroup.
After call hit public dialplan I make <action application="info" /> but in log I can not see that any variable for that user is set. If I make call from default dialplan variables are set and I can use them. Would it be better to redirect call to default dialplan?
Regards, Miha
If your calls are hitting the public context then that suggests to me that you are not authenticating the user when he/she calls. If you don't authenticate then you don't get the user's channel variables. This happens, e.g., when you let callers in via ACL with a rule in the "domains" ACL. If you know which user it is supposed to be then you can cheat and use the set_user app: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user -MC
Hi @Michal, thank you for your reply. I noticed that it was different problem. <action application="set" data="called_party_callgroup=${user_data(${destination_number}*.fs_kabelvoip2*@${domain} var callgroup)}"/> Thanks! Miha On 5/22/2012 9:07 AM, Michael Collins wrote:
HI @Michal,
I have defined callgroup for users that I would like to have in the same callgroup.
After call hit public dialplan I make <action application="info" /> but in log I can not see that any variable for that user is set. If I make call from default dialplan variables are set and I can use them. Would it be better to redirect call to default dialplan?
Regards, Miha
If your calls are hitting the public context then that suggests to me that you are not authenticating the user when he/she calls. If you don't authenticate then you don't get the user's channel variables. This happens, e.g., when you let callers in via ACL with a rule in the "domains" ACL.
If you know which user it is supposed to be then you can cheat and use the set_user app: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user
-MC
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
participants (2)
-
Michael Collins
-
Miha