yaai icon indicating copy to clipboard operation
yaai copied to clipboard

Call transfer to extension won't redirect

Open MazZzaka opened this issue 11 years ago • 3 comments

Hello,first i want to thank you for this useful sugar modul :) I want to make the call redirection works,but i get Internal Server Error in chrome debugger console.And It says this: Binding Transfer Button action callPopups.js:913 POST https://xxx.xxx.xxx.xxx/SugarCRM/index.php?entryPoint=AsteriskController&action=transfer 500 (Internal Server Error) sugar_grp1_jquery.js?v=z2Wts8Ze5zPPQ3gj3_ANWg:4 ----------------------------------in network headers tab------------------------------------------ querry string parameters entryPoint:AsteriskController action:transfer form data call_record:d46fbc98-5aca-c8cf-6256-5226e52d150c

extension:511

in response tab i get this : Login Response: Asterisk Call Manager/1.1 Response: Success Message: Authentication accepted

And nothing happens at all ,do i need to change something in the AMI (http.conf or something else)?

MazZzaka avatar Sep 04 '13 10:09 MazZzaka

Thanks for providing useful debug information. I've been away for 10 days on vacation.

It could be an AMI permission error. When you setup your AMI user try setting the read and write lines to "all"and see if that resolves the issue. To originate calls you need a special permission I think it's either originate or system. Docs have more info on this.

If that doesn't resolve it, can you provide what version of callinize and what version of sugar you have installed? In my experience those 500 errors are generally caused by another addon installed.

On Wed, Sep 4, 2013 at 6:20 AM, MazZzaka [email protected] wrote:

Hello,first i want to thank you for this useful sugar modul :) I want to make call redirection working,in chrome debugger console it says this: Binding Transfer Button action callPopups.js:913 POST https://xxx.xxx.xxx.xxx/SugarCRM/index.php?entryPoint=AsteriskController&action=transfer500 (Internal Server Error) sugar_grp1_jquery.js?v=z2Wts8Ze5zPPQ3gj3_ANWg:4 ----------------------------------in network headers tab------------------------------------------ querry string parameters entryPoint:AsteriskController action:transfer form data call_record:d46fbc98-5aca-c8cf-6256-5226e52d150c extension:511

in response tab i get this : Login Response: Asterisk Call Manager/1.1 Response: Success Message: Authentication accepted

And nothing happens at all ,do i need to change something in the AMI (http.conf or something else)?

— Reply to this email directly or view it on GitHubhttps://github.com/blak3r/yaai/issues/151 .

blak3r avatar Sep 04 '13 17:09 blak3r

Hello ,i'm using callinize 3.5.5 on sugarCRM CE v6.5.14 .I've already tried to set full permissions for the AMI user(i use elastix distro if it matters). edit: It runs on clear sugarcrm installation without any other modules installed.

MazZzaka avatar Sep 05 '13 06:09 MazZzaka

Hi, sorry if my English not good enough. I just want to help on Sugar_Root/custom/modules/Asterisk/include find file callinize_db.php

search $this->WasAmiCmdSuccessful($response) and change to WasAmiCmdSuccessful($response)

Hope help to solve the problem. i have test and working properly.

Thank You

ddacus avatar Nov 06 '14 09:11 ddacus