Anyone have any suggestions on obtaining / setting the Account Code for BLeg for Mod_xml_cdr. I applied accountcode but that is only handling for ALeg. I also looked at effective_caller_id_number - but I need to dynamically (at time of bridging a-leg to b-leg) define the accountcode? Probably some custom coding I would assume to pull this off. Any thoughts. Thanks
Use the export app to export the variable from the aleg from the bleg. http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_export -Steve On 27 March 2011 00:55, Robert Huddleston <rhuddleston@gmail.com> wrote:
Anyone have any suggestions on obtaining / setting the Account Code for BLeg for Mod_xml_cdr.
I applied accountcode but that is only handling for ALeg. I also looked at effective_caller_id_number – but I need to dynamically (at time of bridging a-leg to b-leg) define the accountcode?
Probably some custom coding I would assume to pull this off…
Any thoughts…
Thanks
_______________________________________________ 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
You can export it or set it in the dialstring. Just be sure to use "nolocal" if you export it: <action application="export" data="nolocal:accountcode=12345"/> Or do this: <action application="bridge" data="{accountcode=12345}sofia/foo/bar@baz"/> -MC On Sat, Mar 26, 2011 at 5:55 PM, Robert Huddleston <rhuddleston@gmail.com>wrote:
Anyone have any suggestions on obtaining / setting the Account Code for BLeg for Mod_xml_cdr.
I applied accountcode but that is only handling for ALeg. I also looked at effective_caller_id_number – but I need to dynamically (at time of bridging a-leg to b-leg) define the accountcode?
Probably some custom coding I would assume to pull this off…
Any thoughts…
Thanks
_______________________________________________ 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
Duh... completely forgot about the preceding data in the gateway call... Thanks a bunch On Sat, Mar 26, 2011 at 9:38 PM, Michael Collins <msc@freeswitch.org> wrote:
You can export it or set it in the dialstring. Just be sure to use "nolocal" if you export it:
<action application="export" data="nolocal:accountcode=12345"/>
Or do this:
<action application="bridge" data="{accountcode=12345}sofia/foo/bar@baz"/>
-MC
On Sat, Mar 26, 2011 at 5:55 PM, Robert Huddleston <rhuddleston@gmail.com>wrote:
Anyone have any suggestions on obtaining / setting the Account Code for BLeg for Mod_xml_cdr.
I applied accountcode but that is only handling for ALeg. I also looked at effective_caller_id_number – but I need to dynamically (at time of bridging a-leg to b-leg) define the accountcode?
Probably some custom coding I would assume to pull this off…
Any thoughts…
Thanks
_______________________________________________ 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
_______________________________________________ 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
-- I could put... strychnine in the guacamole
participants (4)
-
Michael Collins
-
Rob Huddleston
-
Robert Huddleston
-
Steven Ayre