blak3r / yaai

SugarCRM Asterisk integration
http://www.sugarforge.org/projects/yaai
GNU General Public License v3.0
84 stars 85 forks source link

Call transfer to extension won't redirect #151

Open MazZzaka opened 11 years ago

MazZzaka commented 11 years ago

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)?

blak3r commented 11 years ago

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 notifications@github.com 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 .

MazZzaka commented 11 years ago

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.

ddacus commented 10 years ago

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