blak3r / yaai

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

no popup at sugarcrm #198

Open shaymaael opened 10 years ago

shaymaael commented 10 years ago

Dears, call appears at sugarcrm but no popup is there is any thing else i should install, i run the script and the call appears but nothing else plz help what should i do i really need it to work... thanks

blak3r commented 10 years ago

Just follow the instructions...

shaymaael commented 10 years ago

i did but the call logs that appears not assigned to specific contact how can i fix this

blak3r commented 10 years ago

They aren't assigned to a Sugar user? Or they aren't matching a contact...

Blake Robertson ᐧ www.callinize.com

shaymaael commented 10 years ago

sugarcrm

shaymaael commented 10 years ago

admin page

shaymaael commented 10 years ago

PHP Warning: fopen(): Filename cannot be empty in /var/www/sugarcrm/custom/modules/Asterisk/asteriskLogger.php on line 1498 PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/sugarcrm/custom/modules/Asterisk/asteriskLogger.php on line 1505

\ Asterisk Logger Starting [2014-07-09 06:44:31]**** [Config Settings] Sugar root set to [/var/www/sugarcrm/custom/modules/Asterisk/../../../] Main Log is logging to: /etc/asterisk/logger.conf Dial Events Log is enabled and logging to: /etc/asterisk/logger.conf Found Language file for en_us Callout prefix is [6] Callin prefix is [6] Match Internal Regex = /^(sip\/[1-9][0-9][0-9]?[0-9]?-|Local)/i [Database Connection] Selecting DB Name: sugarcrm6 [SOAP Connection] Trying SOAP login endpoint=[http://localhost/sugarcrm/soap.php] user=[admin] password=[21232f297a57a5a743894a0e4a801fc3] PHP Warning: Attempt to modify property of non-object in /var/www/sugarcrm/include/nusoap/nusoap.php on line 6166 PHP Warning: Attempt to modify property of non-object in /var/www/sugarcrm/include/nusoap/nusoap.php on line 6166 PHP Warning: Attempt to modify property of non-object in /var/www/sugarcrm/include/nusoap/nusoap.php on line 6166 PHP Warning: Attempt to modify property of non-object in /var/www/sugarcrm/include/nusoap/nusoap.php on line 6166 Successfully logged into Sugar via SOAP! SessionId=1t5mtrr6iqmbjp7hrm06aa6490 user=admin GUID=1 [Asterisk Manager Interface (AMI) Connection] Successfully opened socket connection to 127.0.0.1:5038 AMI Version Info:

 Asterisk Call Manager/1.1

Supported AMI version: 1.1 Detected AMI Login action raw response:

 Response: Success
 Message: Authentication accepted

AMI Login was a success! Waiting for call events... [2014-07-09 06:45:38] Patiently Waiting...! (mem_used: 4018464) [2014-07-09 06:46:07] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel
! Privilege --> call,all
! Channel --> SIP/774123456787-00000025
! ChannelState --> 0
! ChannelStateDesc --> Down
! CallerIDNum --> 774123456787
! CallerIDName -->
! AccountCode -->
! Exten --> 994123456789
! Context --> my-phones
! Uniqueid --> 1404888366.37
! --------------------------------------------------------------------- ! AMI Event 'Newstate suppressed. [2014-07-09 06:46:07] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel
! Privilege --> call,all
! Channel --> SIP/asterisk-00000026
! ChannelState --> 0
! ChannelStateDesc --> Down
! CallerIDNum -->
! CallerIDName -->
! AccountCode -->
! Exten -->
! Context --> my-phones
! Uniqueid --> 1404888367.38
! --------------------------------------------------------------------- [2014-07-09 06:46:07] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> SIP/asterisk-00000026
! CallerIDNum --> 994123456789
! CallerIDName -->
! Uniqueid --> 1404888367.38
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 994123456789 [2014-07-09 06:46:07] ! --- Event ----------------------------------------------------------- ! Event --> Dial
! Privilege --> call,all
! SubEvent --> Begin
! Channel --> SIP/774123456787-00000025
! Destination --> SIP/asterisk-00000026
! CallerIDNum --> 774123456787
! CallerIDName -->
! ConnectedLineNum -->
! ConnectedLineName -->
! UniqueID --> 1404888366.37
! DestUniqueID --> 1404888367.38
! Dialstring --> 994123456789@asterisk
! --------------------------------------------------------------------- ! Dial Event src=SIP/774123456787-00000025 dest=SIP/asterisk-00000026 PHP Notice: Undefined index: event in /var/www/sugarcrm/custom/modules/Asterisk/asteriskLogger.php on line 439 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 ! Successfully created CALL record with id=2d4e3ccc-ce42-c0fe-d36f-53bce543148c CallerID is: 774123456787 Looking for user extension number in: SIP/asterisk-00000026 Channel Matched SIP/### style regex. Ext is:asterisk Looking for user extension number in: SIP/asterisk-00000026 Channel Matched SIP/### style regex. Ext is:asterisk inbound_extension = asterisk Inbound state detected... /^(sip\/[1-9][0-9][0-9]?[0-9]?-|Local)/i is astMatchInternal eChannel= SIP/774123456787-00000025 eDestination=SIP/asterisk-00000026 PHP Notice: Undefined index: event in /var/www/sugarcrm/custom/modules/Asterisk/asteriskLogger.php on line 613 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 ! AMI Event 'Newstate suppressed. [2014-07-09 06:46:22] ! --- Event ----------------------------------------------------------- ! Event --> Hangup
! Privilege --> call,all
! Channel --> SIP/asterisk-00000026
! Uniqueid --> 1404888367.38
! CallerIDNum --> 994123456789
! CallerIDName -->
! ConnectedLineNum --> 774123456787
! ConnectedLineName -->
! Cause --> 16
! Cause-txt --> Normal Clearing
! --------------------------------------------------------------------- In DialEnd... 1404888367.38 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/sugarcrm/custom/modules/Asterisk/asteriskLogger.php on line 716

+++ findCallByAsteriskId(1404888367.38)

! Warning, results set was empty! [2014-07-09 06:46:22] ! --- Event ----------------------------------------------------------- ! Event --> Dial
! Privilege --> call,all
! SubEvent --> End
! Channel --> SIP/774123456787-00000025
! UniqueID --> 1404888366.37
! DialStatus --> CANCEL
! --------------------------------------------------------------------- In DialEnd... 1404888366.37 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/sugarcrm/custom/modules/Asterisk/asteriskLogger.php on line 716

+++ findCallByAsteriskId(1404888366.37)

! Found entry in asterisk_log recordId=2d4e3ccc-ce42-c0fe-d36f-53bce543148c Array ( [bitter] => Array ( [id] => 96 [is_master] => 0 [call_record_id] => 2d4e3ccc-ce42-c0fe-d36f-53bce543148c [asterisk_id] => 1404888366.37 [callstate] => Dial [uistate] => [callerID] => 774123456787 [channel] => SIP/asterisk-00000026 [remote_channel] => SIP/774123456787-00000025 [timestamp_call] => 2014-07-09 06:46:07 [timestamp_link] => [timestamp_hangup] => [direction] => I [asterisk_dest_id] => 1404888367.38 [opencnam] => [answered] => 0 [user_extension] => asterisk [user_device] => asterisk [inbound_extension] => asterisk [bean_module] => [bean_id] => [bean_name] => [bean_link] => [bean_description] => [parent_module] => [parent_id] => [parent_name] => [parent_link] => [push_sent] => 0 )

[sweet] => Array
    (
        [assigned_user_name] => shaima
        [modified_by_name] => shaima
        [created_by_name] => shaima
        [id] => 2d4e3ccc-ce42-c0fe-d36f-53bce543148c
        [name] => ** Automatic record **
        [date_entered] => 2014-07-09 06:46:07
        [date_modified] => 2014-07-09 06:46:07
        [modified_user_id] => 1
        [created_by] => 1
        [description] => 
        [deleted] => 0
        [assigned_user_id] => 1
        [duration_hours] => 0
        [duration_minutes] => 
        [date_start] => 
        [date_end] => 
        [parent_type] => 
        [status] => In Limbo
        [direction] => Inbound
        [parent_id] => 
        [reminder_time] => -1
        [email_reminder_time] => -1
        [email_reminder_sent] => 0
        [outlook_id] => 
        [contact_name] => 
        [repeat_type] => 
        [repeat_interval] => 1
        [repeat_dow] => 
        [repeat_until] => 
        [repeat_count] => 
        [repeat_parent_id] => 
        [recurring_source] => 
        [asterisk_caller_id_c] => 
        [asterisk_call_id_c] => 
        [asterisk_inbound_ext_c] => 
        [asterisk_user_ext_c] => 
    )

) Looking for user extension number in: SIP/asterisk-00000026 Channel Matched SIP/### style regex. Ext is:asterisk

+++ findUserByAsteriskExtension(asterisk)

! Assigned user will be set to Administrator. Measured call duration is 0 seconds PHP Notice: Undefined index: Cause-txt in /var/www/sugarcrm/custom/modules/Asterisk/asteriskLogger.php on line 1005 Adding INBOUND Missed (or Failed) Call, id=1404888366.37, call_id = 2d4e3ccc-ce42-c0fe-d36f-53bce543148c ! Call is not related to any record (no matches) ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=2d4e3ccc-ce42-c0fe-d36f-53bce543148c, beanId=, beanType= ! Call start was 2014-07-09 06:46:07 Updating record in /Calls/ id=2d4e3ccc-ce42-c0fe-d36f-53bce543148c... NAME: \ Automatic record ** DESCRIPTION: PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 Cleaning up Failed Calls part1, asterisk_id = 1404888366.37 [2014-07-09 06:46:30] ! --- Event ----------------------------------------------------------- ! Event --> Hangup
! Privilege --> call,all
! Channel --> SIP/774123456787-00000025
! Uniqueid --> 1404888366.37
! CallerIDNum --> 774123456787
! CallerIDName -->
! ConnectedLineNum -->
! ConnectedLineName -->
! Cause --> 0
! Cause-txt --> Unknown
! --------------------------------------------------------------------- In DialEnd... 1404888366.37 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/sugarcrm/custom/modules/Asterisk/asteriskLogger.php on line 716

+++ findCallByAsteriskId(1404888366.37)

! Found entry in asterisk_log recordId=2d4e3ccc-ce42-c0fe-d36f-53bce543148c Array ( [bitter] => Array ( [id] => 96 [is_master] => 0 [call_record_id] => 2d4e3ccc-ce42-c0fe-d36f-53bce543148c [asterisk_id] => 1404888366.37 [callstate] => Hangup [uistate] => [callerID] => 774123456787 [channel] => SIP/asterisk-00000026 [remote_channel] => SIP/774123456787-00000025 [timestamp_call] => 2014-07-09 06:46:07 [timestamp_link] => [timestamp_hangup] => 2014-07-09 06:46:22 [direction] => I [asterisk_dest_id] => 1404888367.38 [opencnam] => [answered] => 1 [user_extension] => asterisk [user_device] => asterisk [inbound_extension] => asterisk [bean_module] => [bean_id] => [bean_name] => [bean_link] => [bean_description] => [parent_module] => [parent_id] => [parent_name] => [parent_link] => [push_sent] => 0 )

[sweet] => Array
    (
        [assigned_user_name] => shaima
        [modified_by_name] => shaima
        [created_by_name] => shaima
        [id] => 2d4e3ccc-ce42-c0fe-d36f-53bce543148c
        [name] => Missed Call
        [date_entered] => 2014-07-09 06:46:07
        [date_modified] => 2014-07-09 06:46:30
        [modified_user_id] => 1
        [created_by] => 1
        [description] => Missed/failed call (

Phone : 774123456787

        [deleted] => 0
        [assigned_user_id] => 1
        [duration_hours] => 0
        [duration_minutes] => 0
        [date_start] => 2014-07-09 06:46:07
        [date_end] => 2014-07-09 06:46:07
        [parent_type] => 
        [status] => Held
        [direction] => Inbound
        [parent_id] => 
        [reminder_time] => -1
        [email_reminder_time] => -1
        [email_reminder_sent] => 0
        [outlook_id] => 
        [contact_name] => 
        [repeat_type] => 
        [repeat_interval] => 1
        [repeat_dow] => 
        [repeat_until] => 
        [repeat_count] => 
        [repeat_parent_id] => 
        [recurring_source] => 
        [asterisk_caller_id_c] => 774123456787
        [asterisk_call_id_c] => 1404888366.37
        [asterisk_inbound_ext_c] => asterisk
        [asterisk_user_ext_c] => asterisk
    )

) Looking for user extension number in: SIP/asterisk-00000026 Channel Matched SIP/### style regex. Ext is:asterisk

+++ findUserByAsteriskExtension(asterisk)

! Assigned user will be set to Administrator. Measured call duration is 0 seconds Adding INBOUND Missed (or Failed) Call, id=1404888366.37, call_id = 2d4e3ccc-ce42-c0fe-d36f-53bce543148c ! Call is not related to any record (no matches) ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=2d4e3ccc-ce42-c0fe-d36f-53bce543148c, beanId=, beanType= ! Call start was 2014-07-09 06:46:07 Updating record in /Calls/ id=2d4e3ccc-ce42-c0fe-d36f-53bce543148c... NAME: Missed Call

DESCRIPTION: Missed/failed call (

Phone : 774123456787

PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 PHP Notice: Array to string conversion in /var/www/sugarcrm/include/nusoap/nusoap.php on line 7604 Cleaning up Failed Calls part1, asterisk_id = 1404888366.37

shaymaael commented 10 years ago

please tell me what is wrong

blak3r commented 10 years ago

I do not have time I help you. Sorry.

On Jul 9, 2014, at 3:44 AM, shaymaael notifications@github.com wrote:

please tell me what is wrong

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