blak3r / yaai

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

Is AMI 1.3 supported? #149

Closed jamski68 closed 10 years ago

jamski68 commented 10 years ago

With Asterisk 11.5 not getting calls logged or popups appearing, any help would be appreciated.

AMI Version Info:

 Asterisk Call Manager/1.3

AMI Login action raw response:

 Response: Success
 Message: Authentication accepted

AMI Login was a success! Waiting for call events... [2013-08-22 16:06:54] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel ! Privilege --> call,all ! Channel --> SIP/VOIPFONE-SIP-0000004a ! ChannelState --> 0 ! ChannelStateDesc --> Down ! CallerIDNum --> 02079999999 ! CallerIDName --> 02079999999 ! AccountCode --> ! Exten --> 12345566*222 ! Context --> from-pstn ! Uniqueid --> 1377187710.157 ! --------------------------------------------------------------------- ! AMI Event 'Newstate suppressed. [2013-08-22 16:06:54] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid ! Privilege --> call,all ! Channel --> SIP/VOIPFONE-SIP-0000004a ! CallerIDNum --> 02079999999 ! CallerIDName --> 02079999999 ! Uniqueid --> 1377187710.157 ! CID-CallingPres --> 0 (Presentation Allowed, Not Screened) ! --------------------------------------------------------------------- CallerID Changed to: 02079999999 [2013-08-22 16:06:54] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid ! Privilege --> call,all ! Channel --> SIP/VOIPFONE-SIP-0000004a ! CallerIDNum --> 02079999999 ! CallerIDName --> 02079999999 ! Uniqueid --> 1377187710.157 ! CID-CallingPres --> 0 (Presentation Allowed, Not Screened) ! --------------------------------------------------------------------- CallerID Changed to: 02079999999 [2013-08-22 16:06:54] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel ! Privilege --> call,all ! Channel --> SCCP/8261-00000053 ! ChannelState --> 0 ! ChannelStateDesc --> Down ! CallerIDNum --> 8261 ! CallerIDName --> John Smith ! AccountCode --> ! Exten --> ! Context --> from-internal ! Uniqueid --> 1377187710.158 ! --------------------------------------------------------------------- [2013-08-22 16:06:54] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid ! Privilege --> call,all ! Channel --> SCCP/8261-00000053 ! CallerIDNum --> 8261 ! CallerIDName --> ! Uniqueid --> 1377187710.158 ! CID-CallingPres --> 0 (Presentation Allowed, Not Screened) ! ---------------------------------------------------------------------

PHP Notice: Undefined offset: 1 in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1865 SELECT * FROM WHERE id='' UPDATE asterisk_log SET bean_module='', bean_id='', bean_name='' WHERE asterisk_id='1377187710.158' [2013-08-22 16:07:02] ! --- Event ----------------------------------------------------------- ! Event --> Bridge ! Privilege --> call,all ! Bridgestate --> Link ! Bridgetype --> core ! Channel1 --> SIP/VOIPFONE-SIP-0000004a ! Channel2 --> SCCP/8261-00000053 ! Uniqueid1 --> 1377187710.157 ! Uniqueid2 --> 1377187710.158 ! CallerID1 --> 02079999999 ! CallerID2 --> 8261 ! --------------------------------------------------------------------- DEBUG: Entered Bridge DEBUG: bridge inbound, updating the Link state Bridge isn't internal to internal Internal Queue Event Detected Internal Queue: SELECT id FROM asterisk_log WHERE remote_channel like 'SIP/VOIPFONE-SIP-0000004a' and direction='I' and (channel = '' OR channel is NULL) DEBUG: NO Queue BRIDGE ROWS found [2013-08-22 16:07:10] ! --- Event ----------------------------------------------------------- ! Event --> HangupRequest ! Privilege --> call,all ! Channel --> SIP/VOIPFONE-SIP-0000004a ! Uniqueid --> 1377187710.157 ! --------------------------------------------------------------------- [2013-08-22 16:07:10] ! --- Event ----------------------------------------------------------- ! Event --> Bridge ! Privilege --> call,all ! Bridgestate --> Unlink ! Bridgetype --> core ! Channel1 --> SIP/VOIPFONE-SIP-0000004a ! Channel2 --> SCCP/8261-00000053 ! Uniqueid1 --> 1377187710.157 ! Uniqueid2 --> 1377187710.158 ! CallerID1 --> 02079999999 ! CallerID2 --> 8261 ! --------------------------------------------------------------------- DEBUG: Entered Bridge Bridge isn't internal to internal Internal Queue Event Detected Internal Queue: SELECT id FROM asterisk_log WHERE remote_channel like 'SIP/VOIPFONE-SIP-0000004a' and direction='I' and (channel = '' OR channel is NULL) DEBUG: NO Queue BRIDGE ROWS found ! AMI Event 'Newstate suppressed. ! AMI Event 'ExtensionStatus suppressed. [2013-08-22 16:07:10] ! --- Event ----------------------------------------------------------- ! Event --> Hangup ! Privilege --> call,all ! Channel --> SCCP/8261-00000053 ! Uniqueid --> 1377187710.158 ! CallerIDNum --> 8261 ! CallerIDName --> ! ConnectedLineNum --> 02079999999 ! ConnectedLineName --> 02079999999 ! AccountCode --> ! Cause --> 16 ! Cause-txt --> Normal Clearing ! --------------------------------------------------------------------- In DialEnd... 1377187710.158 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 710

+++ findCallByAsteriskId(1377187710.158)

! Warning, results set was empty! PHP Notice: Undefined index: DestUniqueID in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1352 PHP Notice: Undefined index: Destination in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1352 PHP Notice: Undefined index: CallerIDNum in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1352 PHP Notice: Undefined index: DialString in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1352 [2013-08-22 16:07:10] ! --- Event ----------------------------------------------------------- ! Event --> Dial ! Privilege --> call,all ! SubEvent --> End ! Channel --> SIP/VOIPFONE-SIP-0000004a ! UniqueID --> 1377187710.157 ! DialStatus --> ANSWER ! --------------------------------------------------------------------- In DialEnd... 1377187710.157 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 710

+++ findCallByAsteriskId(1377187710.157)

! Found entry in asterisk_log recordId=-1 PHP Warning: Invalid argument supplied for foreach() in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1561 Looking for user extension number in: SCCP/8261-00000053 Channel Matched SIP/### style regex. Ext is:8261

+++ findUserByAsteriskExtension(8261)

! Assigned user id set to f3d818bc-aeac-4feb-60b1-4b6afb9252a8 Measured call duration is 9 seconds PHP Notice: Undefined index: id in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 995 ! Call is not related to any record (no matches) ! Call start was 2013-08-22 16:06:55 PHP Notice: Undefined index: id in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1007 Updating record in /Calls/ id=... PHP Notice: Undefined index: name in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1010 NAME: PHP Notice: Undefined index: description in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1011 DESCRIPTION: PHP Notice: Undefined index: id in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1021 Cleaning up Failed Calls part1, asterisk_id = 1377187710.157 [2013-08-22 16:07:13] ! --- Event ----------------------------------------------------------- ! Event --> SoftHangupRequest ! Privilege --> call,all ! Channel --> SIP/VOIPFONE-SIP-0000004a ! Uniqueid --> 1377187710.157 ! Cause --> 16 ! --------------------------------------------------------------------- [2013-08-22 16:07:13] ! --- Event ----------------------------------------------------------- ! Event --> Hangup ! Privilege --> call,all ! Channel --> SIP/VOIPFONE-SIP-0000004a ! Uniqueid --> 1377187710.157 ! CallerIDNum --> 02079999999 ! CallerIDName --> 02079999999 ! ConnectedLineNum --> 8261 ! ConnectedLineName --> John Smith ! AccountCode --> ! Cause --> 16 ! Cause-txt --> Normal Clearing ! --------------------------------------------------------------------- In DialEnd... 1377187710.157 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 710

+++ findCallByAsteriskId(1377187710.157)

! Found entry in asterisk_log recordId=-1 PHP Warning: Invalid argument supplied for foreach() in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1561 Looking for user extension number in: SCCP/8261-00000053 Channel Matched SIP/### style regex. Ext is:8261

+++ findUserByAsteriskExtension(8261)

! Assigned user id set to f3d818bc-aeac-4feb-60b1-4b6afb9252a8 Measured call duration is 12 seconds PHP Notice: Undefined index: id in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 995 ! Call is not related to any record (no matches) ! Call start was 2013-08-22 16:06:55 PHP Notice: Undefined index: id in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1007 Updating record in /Calls/ id=... PHP Notice: Undefined index: name in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1010 NAME: PHP Notice: Undefined index: description in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1011 DESCRIPTION: PHP Notice: Undefined index: id in /home/devcrm/public_html/custom/modules/Asterisk/asteriskLogger.php on line 1021 Cleaning up Failed Calls part1, asterisk_id = 1377187710.157

blak3r commented 10 years ago

Please provide more info. Please see the troubleshooting section in user manual.

I haven't officially tested with 11.5 but as far as I know it's still AMI v1.1 so should work.

~blake

On Aug 22, 2013, at 12:05 PM, jamski68 notifications@github.com wrote:

With Asterisk 11.5 not getting calls logged or popups appearing, any help would be appreciated.

Thanks

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

jamski68 commented 10 years ago

I have pasted the log on the post, SugarCRM 6.5.12 and Elastix 2.4 and Asterisk 11.5.0

jamski68 commented 10 years ago

Got this working by downgrading to 3.5.5 :)

blak3r commented 10 years ago

Good to know... we should have a new build coming out soon.

jamski68 commented 10 years ago

Great, let me know if you want any logs from my efforts with 3.6.0

blak3r commented 10 years ago

@jamski68 I have a new build. If you shoot me an email to blake.robertson [at] gmail.com I could give it to you for testing. Would like to see if it fixes your issues prior to making it public.

intuitivevoice commented 10 years ago

I'm having the same issue running on asterisk 1.4.42. I will try downgrading to 3.5.5.

blak3r commented 10 years ago

Asterisk 1.4 is ami 1.0. Not 1.3. Ami 1.0 isn't fully supported.

What issue are you having?

Sent from my iPhone

On Sep 20, 2013, at 12:13 AM, intuitivevoice notifications@github.com wrote:

I'm having the same issue running on asterisk 1.4.42. I will try downgrading to 3.5.5.

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

intuitivevoice commented 10 years ago

I have an 11.5 box I will try this morning. I am not getting call matches, no call notifications… I am seeing these errors.

PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/cloudcrm/custom/modules/Asterisk/asteriskLogger.php on line 683

+++ findCallByAsteriskId(PBX-1379662715.16917)

! Warning, results set was empty!

PHP Notice: Undefined index: CallerIDNum in /var/www/html/cloudcrm/custom/modules/Asterisk/asteriskLogger.php on line 1360

PHP Notice: Undefined index: ConnectedLineNum in /var/www/html/cloudcrm/custom/modules/Asterisk/asteriskLogger.php on line 1360

From: Blake Robertson [mailto:notifications@github.com] Sent: Friday, September 20, 2013 4:44 AM To: blak3r/yaai Cc: intuitivevoice Subject: Re: [yaai] Is AMI 1.3 supported? (#149)

Asterisk 1.4 is ami 1.0. Not 1.3. Ami 1.0 isn't fully supported.

What issue are you having?

Sent from my iPhone

On Sep 20, 2013, at 12:13 AM, intuitivevoice notifications@github.com wrote:

I'm having the same issue running on asterisk 1.4.42. I will try downgrading to 3.5.5.

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

— Reply to this email directly or view it on GitHub https://github.com/blak3r/yaai/issues/149#issuecomment-24796939 . https://github.com/notifications/beacon/qoi0vc4gKJfoYZ3dH3DHnK3be94nsoBRlWk_3Rnx8Bt8jvXKQ2g7daqf1PCilRi_.gif

blak3r commented 10 years ago

None of those things are really errors per se. Try the fake call utility and see if that creates a popup.

Did you configure your user profile in studio etc?

On Fri, Sep 20, 2013 at 10:46 AM, intuitivevoice notifications@github.comwrote:

I have an 11.5 box I will try this morning. I am not getting call matches, no call notifications… I am seeing these errors.

PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/cloudcrm/custom/modules/Asterisk/asteriskLogger.php on line 683

+++ findCallByAsteriskId(PBX-1379662715.16917)

! Warning, results set was empty!

PHP Notice: Undefined index: CallerIDNum in /var/www/html/cloudcrm/custom/modules/Asterisk/asteriskLogger.php on line 1360

PHP Notice: Undefined index: ConnectedLineNum in /var/www/html/cloudcrm/custom/modules/Asterisk/asteriskLogger.php on line 1360

From: Blake Robertson [mailto:notifications@github.com] Sent: Friday, September 20, 2013 4:44 AM To: blak3r/yaai Cc: intuitivevoice Subject: Re: [yaai] Is AMI 1.3 supported? (#149)

Asterisk 1.4 is ami 1.0. Not 1.3. Ami 1.0 isn't fully supported.

What issue are you having?

Sent from my iPhone

On Sep 20, 2013, at 12:13 AM, intuitivevoice notifications@github.com wrote:

I'm having the same issue running on asterisk 1.4.42. I will try downgrading to 3.5.5.

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

— Reply to this email directly or view it on GitHub < https://github.com/blak3r/yaai/issues/149#issuecomment-24796939> . < https://github.com/notifications/beacon/qoi0vc4gKJfoYZ3dH3DHnK3be94nsoBRlWk_3Rnx8Bt8jvXKQ2g7daqf1PCilRi_.gif>

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

jamski68 commented 10 years ago

3.6.6 now can't connect to Sugar FATAL: SOAP login failed,

blak3r commented 10 years ago

Didn't make any significant changes to soap code. So, check your password... is your system language english? Someone mentioned that having dutch as their language broke soap login.

On Tue, Oct 8, 2013 at 7:01 AM, jamski68 notifications@github.com wrote:

3.6.6 now can't connect to Sugar FATAL: SOAP login failed,

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

jamski68 commented 10 years ago

Language is English same username and password on staging and live sugar install works when rolling back to 3.5.5, we are using LDAP

blak3r commented 10 years ago

@jamski68 btw 3.6.7 should work for you.

intuitivevoice commented 10 years ago

Thanks I’ll check it out.. Been swamped. We really do need to connect soon though.

From: Blake Robertson [mailto:notifications@github.com] Sent: Tuesday, November 05, 2013 8:11 PM To: blak3r/yaai Cc: intuitivevoice Subject: Re: [yaai] Is AMI 1.3 supported? (#149)

@jamski68 https://github.com/jamski68 btw 3.6.7 should work for you.

— Reply to this email directly or view it on GitHub https://github.com/blak3r/yaai/issues/149#issuecomment-27830439 . https://github.com/notifications/beacon/qoi0vc4gKJfoYZ3dH3DHnK3be94nsoBRlWk_3Rnx8Bt8jvXKQ2g7daqf1PCilRi_.gif