Hi, I am facing an issue where my argument of bridge command is getting truncated while using through perl esl. I am having a requirement where i need to bridge the call to 8 agents in a sequential manner and i am using pipe separator to fulfil this. This works well when i am using 2-3 bridging numbers, however the argument part is truncated when trying to use more than 4-5. The argument is truncated at exact length of 503 characters. Please find the below sample from the freeswitch DEBUG logs. bridge({originate_timeout=40,vcall_id=20140307212134279125021410419292,user_id=11,script_name=ibd_bridge_test,interface_id=81,ignore_early_media=true,caller_id_number=xxxxxxxxxx,api_to_call= http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx... }[leg_timeout=40,ignore_early_media=true,destination=xxxxxxxxxx]freetdm/wp4/a/xxxxxxxxxxx|[leg_timeout=40,ignore_early_media=true,destination=xxxxxxxxxx]freetdm/wp4/a/0xxxxxxxxxx|[leg_timeout=40,ignore_early_media=true,destination=99) I am using freeswitch version 1.2.14 with perl ESL, and the bridge command is sent to the freeswitch using below line , $conn->execute("bridge","----args as mentioned above----");
I’m guessing the issue is in src/esl.c char arg_buf[512] = ""; -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Mar 7, 2014, at 10:33 AM, Manish Kumar <manish.kumar.fs@gmail.com> wrote:
Hi,
I am facing an issue where my argument of bridge command is getting truncated while using through perl esl. I am having a requirement where i need to bridge the call to 8 agents in a sequential manner and i am using pipe separator to fulfil this.
This works well when i am using 2-3 bridging numbers, however the argument part is truncated when trying to use more than 4-5. The argument is truncated at exact length of 503 characters. Please find the below sample from the freeswitch DEBUG logs.
bridge({originate_timeout=40,vcall_id=20140307212134279125021410419292,user_id=11,script_name=ibd_bridge_test,interface_id=81,ignore_early_media=true,caller_id_number=xxxxxxxxxx,api_to_call=http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}[leg_timeout=40,ignore_early_media=true,destination=xxxxxxxxxx]freetdm/wp4/a/xxxxxxxxxxx|[leg_timeout=40,ignore_early_media=true,destination=xxxxxxxxxx]freetdm/wp4/a/0xxxxxxxxxx|[leg_timeout=40,ignore_early_media=true,destination=99)
I am using freeswitch version 1.2.14 with perl ESL, and the bridge command is sent to the freeswitch using below line ,
$conn->execute("bridge","----args as mentioned above----");
_________________________________________________________________________ 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
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
Thanks Brian, the arg_buf[512] begins with "execute-app-arg: " (17 characters) After recalculating my argument string its exact 495 characters and adding above it gives 512. However it seems there is no configuration parameter to increase this value. I have to edit and recompile it. I hope increasing this value by 1024 would not create any problem. :) On Fri, Mar 7, 2014 at 11:47 PM, Brian West <brian@freeswitch.org> wrote:
I'm guessing the issue is in src/esl.c char arg_buf[512] = ""; -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com
T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
On Mar 7, 2014, at 10:33 AM, Manish Kumar <manish.kumar.fs@gmail.com> wrote:
Hi,
I am facing an issue where my argument of bridge command is getting truncated while using through perl esl. I am having a requirement where i need to bridge the call to 8 agents in a sequential manner and i am using pipe separator to fulfil this.
This works well when i am using 2-3 bridging numbers, however the argument part is truncated when trying to use more than 4-5. The argument is truncated at exact length of 503 characters. Please find the below sample from the freeswitch DEBUG logs.
bridge({originate_timeout=40,vcall_id=20140307212134279125021410419292,user_id=11,script_name=ibd_bridge_test,interface_id=81,ignore_early_media=true,caller_id_number=xxxxxxxxxx,api_to_call= http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx... }[leg_timeout=40,ignore_early_media=true,destination=xxxxxxxxxx]freetdm/wp4/a/xxxxxxxxxxx|[leg_timeout=40,ignore_early_media=true,destination=xxxxxxxxxx]freetdm/wp4/a/0xxxxxxxxxx|[leg_timeout=40,ignore_early_media=true,destination=99)
I am using freeswitch version 1.2.14 with perl ESL, and the bridge
command is sent to the freeswitch using below line ,
$conn->execute("bridge","----args as mentioned above----");
_________________________________________________________________________ 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
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
_________________________________________________________________________ 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
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
www.bkw.org/esl.diff, Apply this and let me know how it works for you. -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Mar 8, 2014, at 2:17 AM, Manish Kumar <manish.kumar.fs@gmail.com> wrote:
Thanks Brian, the arg_buf[512] begins with "execute-app-arg: " (17 characters) After recalculating my argument string its exact 495 characters and adding above it gives 512.
However it seems there is no configuration parameter to increase this value. I have to edit and recompile it. I hope increasing this value by 1024 would not create any problem. :)
On Fri, Mar 7, 2014 at 11:47 PM, Brian West <brian@freeswitch.org> wrote: I’m guessing the issue is in src/esl.c char arg_buf[512] = ""; -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com
T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
On Mar 7, 2014, at 10:33 AM, Manish Kumar <manish.kumar.fs@gmail.com> wrote:
Hi,
I am facing an issue where my argument of bridge command is getting truncated while using through perl esl. I am having a requirement where i need to bridge the call to 8 agents in a sequential manner and i am using pipe separator to fulfil this.
This works well when i am using 2-3 bridging numbers, however the argument part is truncated when trying to use more than 4-5. The argument is truncated at exact length of 503 characters. Please find the below sample from the freeswitch DEBUG logs.
bridge({originate_timeout=40,vcall_id=20140307212134279125021410419292,user_id=11,script_name=ibd_bridge_test,interface_id=81,ignore_early_media=true,caller_id_number=xxxxxxxxxx,api_to_call=http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}[leg_timeout=40,ignore_early_media=true,destination=xxxxxxxxxx]freetdm/wp4/a/xxxxxxxxxxx|[leg_timeout=40,ignore_early_media=true,destination=xxxxxxxxxx]freetdm/wp4/a/0xxxxxxxxxx|[leg_timeout=40,ignore_early_media=true,destination=99)
I am using freeswitch version 1.2.14 with perl ESL, and the bridge command is sent to the freeswitch using below line ,
$conn->execute("bridge","----args as mentioned above----");
_________________________________________________________________________ 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
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
_________________________________________________________________________ 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
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
_________________________________________________________________________ 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
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 Brian, Tried dowloading the patch, but it seems the link is not working. Meanwhile i will be trying to recompile with few changes. On Sat, Mar 8, 2014 at 8:20 PM, Brian West <brian@freeswitch.org> wrote:
www.bkw.org/esl.diff, Apply this and let me know how it works for you.
-- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com
T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
On Mar 8, 2014, at 2:17 AM, Manish Kumar <manish.kumar.fs@gmail.com> wrote:
Thanks Brian, the arg_buf[512] begins with "execute-app-arg: " (17 characters) After recalculating my argument string its exact 495 characters and adding above it gives 512.
However it seems there is no configuration parameter to increase this value. I have to edit and recompile it. I hope increasing this value by 1024 would not create any problem. :)
On Fri, Mar 7, 2014 at 11:47 PM, Brian West <brian@freeswitch.org> wrote: I'm guessing the issue is in src/esl.c char arg_buf[512] = ""; -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com
T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
On Mar 7, 2014, at 10:33 AM, Manish Kumar <manish.kumar.fs@gmail.com> wrote:
Hi,
I am facing an issue where my argument of bridge command is getting truncated while using through perl esl. I am having a requirement where i need to bridge the call to 8 agents in a sequential manner and i am using pipe separator to fulfil this.
This works well when i am using 2-3 bridging numbers, however the argument part is truncated when trying to use more than 4-5. The argument is truncated at exact length of 503 characters. Please find the below sample from the freeswitch DEBUG logs.
bridge({originate_timeout=40,vcall_id=20140307212134279125021410419292,user_id=11,script_name=ibd_bridge_test,interface_id=81,ignore_early_media=true,caller_id_number=xxxxxxxxxx,api_to_call= http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx... }[leg_timeout=40,ignore_early_media=true,destination=xxxxxxxxxx]freetdm/wp4/a/xxxxxxxxxxx|[leg_timeout=40,ignore_early_media=true,destination=xxxxxxxxxx]freetdm/wp4/a/0xxxxxxxxxx|[leg_timeout=40,ignore_early_media=true,destination=99)
I am using freeswitch version 1.2.14 with perl ESL, and the bridge
command is sent to the freeswitch using below line ,
$conn->execute("bridge","----args as mentioned above----");
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
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
_________________________________________________________________________ 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
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
_________________________________________________________________________ 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
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
_________________________________________________________________________ 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
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)
-
Brian West
-
Manish Kumar