blak3r / yaai

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

Strange popup screen issue in system #143

Open arm123 opened 11 years ago

arm123 commented 11 years ago

Hi Blake,

I am using below versions:

SugarCE-6.5.10 yaai-2.6.0b

I was successfully able to run it on my older server, but unfortunately i had to remove it and now i am installing it on other system. I ran an outbound call by clicking call icon beside of 1 contact by logging as user. But no popup in user screen.

Here is my asterisklogger.php file logs: http://pastebin.com/CKHq2LkX

Here is apache errors: http://pastebin.com/z0cGWjqU

I am using centos 5.9 with php 5.3

Please suggest.

Thanks, Arm

blak3r commented 11 years ago

Hi Arm,

Probably need to create a custom field in accounts and contacts. This is a new requirement. See manual for more info.

~blake

On Jul 24, 2013, at 2:34 PM, arm123 notifications@github.com wrote:

Hi Blake,

I am using below versions:

SugarCE-6.5.10 yaai-2.6.0b

I was successfully able to run it on my older server, but unfortunately i had to remove it and now i am installing it on other system. I ran an outbound call by clicking call icon beside of 1 contact by logging as user. But no popup in user screen.

Here is my asterisklogger.php file logs: http://pastebin.com/CKHq2LkX

Here is apache errors: http://pastebin.com/z0cGWjqU

I am using centos 5.9 with php 5.3

Please suggest.

Thanks, Arm

— Reply to this email directly or view it on GitHub.

blak3r commented 11 years ago

Just noticed you installed 2.6 not the latest. So, it's not custom fields.

Please review the troubleshooting section. I didnt see anything wrong in either log.

~blake

On Jul 24, 2013, at 2:34 PM, arm123 notifications@github.com wrote:

Hi Blake,

I am using below versions:

SugarCE-6.5.10 yaai-2.6.0b

I was successfully able to run it on my older server, but unfortunately i had to remove it and now i am installing it on other system. I ran an outbound call by clicking call icon beside of 1 contact by logging as user. But no popup in user screen.

Here is my asterisklogger.php file logs: http://pastebin.com/CKHq2LkX

Here is apache errors: http://pastebin.com/z0cGWjqU

I am using centos 5.9 with php 5.3

Please suggest.

Thanks, Arm

— Reply to this email directly or view it on GitHub.

arm123 commented 11 years ago

Hi Blake,

Thanks for your response. Actually i had tested same yaai module with my previous sugarcrm setup which was also same version.

So nothing has been changed really. Its just popup does not work when i click on call icon, it calls me on my softphone and also it dials outbound call.

Please suggest.

Thanks, Arm

blak3r commented 11 years ago

Dunno man. Did you go through troubleshooting step by step?

Check your php error logs, make sure you configured your extension, look for JavaScript errors.

~blake

On Jul 25, 2013, at 2:35 AM, arm123 notifications@github.com wrote:

Hi Blake,

Thanks for your response. Actually i had tested same yaai module with my previous sugarcrm setup which was also same version.

So nothing has been changed really. Its just popup does not work when i click on call icon, it calls me on my softphone and also it dials outbound call.

Please suggest.

Thanks, Arm

— Reply to this email directly or view it on GitHub.

arm123 commented 11 years ago

Hi Blake,

I did not upgrade module yaai yet and still using 2.6.0 because same version of yaai and sugarcrm was working perfectly in other system with same scenario.

No javascript errors, extension is configured properly. I have sent you link for apache logs in first post. Here i doubt: my webroot directory for sugarcrm is /var/www/html/sugarcrm/ then why in apache logs its showing /var/www/html//crm/ like below:

[Wed Jul 24 12:53:36 2013] [error] [client] PHP Stack trace: [Wed Jul 24 12:53:36 2013] [error] [client] PHP 1. {main}() /var/www/html//crm/soap.php:0 [Wed Jul 24 12:53:36 2013] [error] [client] PHP 2. nusoap_server->service() /var/www/html//crm/soap.php:95 [Wed Jul 24 12:53:36 2013] [error] [client] PHP 3. nusoap_server->invoke_method() /var/www/html//crm/include/nusoap/nusoap.php:4977

Please let me know.

Thanks, Arm

arm123 commented 11 years ago

Actually if we see asterisklogger log, then it seems its not even able to find contact by phone number. I checked in database, and contact is there.

+++ findCallByAsteriskId(1374748975.155)

! Found entry in asterisk_log recordId=de4306e4-1e40-db0a-7d93-51f1012239b8

[1374748975.155] FOUND outbound CALL

Looking for user extension number in: SIP/101-0000009a Channel Matched SIP/### style regex. Ext is:101

+++ findUserByAsteriskExtension(101)

! Assigned user id set to ee3f2999-4d9f-e07e-fdb3-51efad221af9 [1374748975.155] Measured call duration is 17 seconds

+++ find AccountByPhoneNumber(19998729198)

! No results returned

+++ find ContactByPhoneNumber(19998729198)

findSugarObjectByPhoneNumber: Contact query components- Phone: 8729198 RegEx: (8[^\d]_7[^\d]_2[^\d]_9[^\d]_1[^\d]_9[^\d]8[^\d])$ PHP Notice: Undefined index: accountid in /var/www/html/sugarcrm/custom/modules/Asterisk/asteriskLogger.php on line 1347 PHP Stack trace: PHP 1. {main}() /var/www/html/sugarcrm/custom/modules/Asterisk/asteriskLogger.php:0 PHP 2. findSugarObjectByPhoneNumber() /var/www/html/sugarcrm/custom/modules/Asterisk/asteriskLogger.php:604 Found multiple contacts (3) -- all belong to same account, associating call with account ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=de4306e4-1e40-db0a-7d93-51f1012239b8, beanId=, beanType=Accounts Call start was 2013-07-25 10:42:56 1374748975.155 Now updating record in /Calls/ id=de4306e4-1e40-db0a-7d93-51f1012239b8... NAME: * Automatic record ** DESCRIPTION:

Please help.

Thanks, Arm

blak3r commented 11 years ago

Is this issue still active?

arm123 commented 11 years ago

Hi,

Nope, After lot of testing i found it was .htaccess, for temporary testing i remove .htaccess from webroot directory. Can you please tell me which scripts are there which has been called externally? so i can add them in .htaccess.

Thanks, Arm

On Tue, Aug 20, 2013 at 11:40 PM, Blake Robertson notifications@github.comwrote:

Is this issue still active?

— Reply to this email directly or view it on GitHubhttps://github.com/blak3r/yaai/issues/143#issuecomment-22965313 .

blak3r commented 11 years ago

Hmm... well we have entry points registered in sugar so you shouldn't need to do that...

All our ajax calls go to index.php?entryPoint=Asterisk__ (don't know all the exact names off top of my head)...

Those entrypoints in turn call various scripts in: /custom/modules/include/

So, add that folder to your htaccess.

Let me know how it goes.

On Tue, Aug 20, 2013 at 2:21 PM, arm123 notifications@github.com wrote:

Hi,

Nope, After lot of testing i found it was .htaccess, for temporary testing i remove .htaccess from webroot directory. Can you please tell me which scripts are there which has been called externally? so i can add them in .htaccess.

Thanks, Arm

On Tue, Aug 20, 2013 at 11:40 PM, Blake Robertson notifications@github.comwrote:

Is this issue still active?

— Reply to this email directly or view it on GitHub< https://github.com/blak3r/yaai/issues/143#issuecomment-22965313> .

— Reply to this email directly or view it on GitHubhttps://github.com/blak3r/yaai/issues/143#issuecomment-22966095 .

arm123 commented 11 years ago

Sorry, I did not get chance to do it as we had to remove .htaccess for some reason. But i will let you know.

I figured out call popups not working in chrome, it works in firefox only. is there any fix for it?

Please let me know.

Thanks, Arm