Open ferkochteeg opened 10 years ago
I would recommend trying out the paid version. There is a free trial.
The reason being we have some great tools for diagnosing call issues in it.
You could give it a try and then go to The troubleshooting section. Create a call sequence and then I would have more visibility into your issue.
Blake Robertson Callinize blake@callinize.com
On May 5, 2014, at 8:13 AM, popo7 notifications@github.com wrote:
I have tested on versions of SugarCRM 6.5.16 and SuiteCRM 7.1
With Yaai version 3.6.9. I had problems with no popup at all and multiple same calls in section calls.
Solution for me was using 3.5.5 version to solve this problems.
Problem:
When I make outbound call from click to dial and direct from phone there is no popup.
I can see this calls only in call sections but all outbound calls are marked as inbound.
When I make outbound calls they are not recorded although I can see them in CDR from Freepbx
I think something is wrong with "Call Configuration" please see picture.
I have incoming pots lines and for outbound I use sip. I don't know where is problem here.
In call section there is no duration possible correlation with this might be: My server with PBX shows me time 01:15 pm, my CRM server show same time but in asterisklogger.php time is 11:15 am, how do I change that time?
Calls are not matched with contacts. Please see logs, When I make cal from click to dial and second is when I make from phone direct.
----------1-----------
Waiting for call events... [2014-05-05 11:25:27] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel
! Privilege --> call,all
! Channel --> DAHDI/7-1
! ChannelState --> 1
! ChannelStateDesc --> Rsrvd
! CallerIDNum --> 377
! CallerIDName --> 377
! AccountCode -->
! Exten -->
! Context --> from-internal
! Uniqueid --> 1399289126.14
! --------------------------------------------------------------------- [2014-05-05 11:25:27] ! --- Event ----------------------------------------------------------- ! Event --> DAHDIChannel
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1399289126.14
! DAHDISpan --> 1
! DAHDIChannel --> 7
! --------------------------------------------------------------------- ! AMI Event 'ExtensionStatus suppressed. [2014-05-05 11:25:27] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> 7
! CallerIDName --> 377
! Uniqueid --> 1399289126.14
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 7 [2014-05-05 11:25:27] ! --- Event ----------------------------------------------------------- ! Event --> NewAccountCode
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1399289126.14
! AccountCode -->
! OldAccountCode -->
! --------------------------------------------------------------------- [2014-05-05 11:25:27] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> 003xxxxxxxxxx
! CallerIDName --> 377
! Uniqueid --> 1399289126.14
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 003xxxxxxxxxx ! AMI Event 'Newstate suppressed. ! AMI Event 'ExtensionStatus suppressed. ! AMI Event 'Newstate suppressed. ! AMI Event 'ExtensionStatus suppressed. [2014-05-05 11:25:30] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> 003yyyyyyyy
! CallerIDName -->
! Uniqueid --> 1399289126.14
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 003yyyyyyyy [2014-05-05 11:25:30] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel
! Privilege --> call,all
! Channel --> SIP/abcd-00000001
! ChannelState --> 0
! ChannelStateDesc --> Down
! CallerIDNum -->
! CallerIDName -->
! AccountCode -->
! Exten -->
! Context --> from-trunk-sip-abcd
! Uniqueid --> 1399289130.15
! --------------------------------------------------------------------- [2014-05-05 11:25:30] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> SIP/abcd-00000001
! CallerIDNum --> 003xxxxxxxxxx
! CallerIDName -->
! Uniqueid --> 1399289130.15
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 003xxxxxxxxxx PHP Notice: Undefined index: DialString in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 [2014-05-05 11:25:30] ! --- Event ----------------------------------------------------------- ! Event --> Dial
! Privilege --> call,all
! SubEvent --> Begin
! Channel --> DAHDI/7-1
! Destination --> SIP/abcd-00000001
! CallerIDNum --> 003yyyyyyyy
! CallerIDName -->
! ConnectedLineNum --> 003xxxxxxxxxx
! ConnectedLineName -->
! UniqueID --> 1399289126.14
! DestUniqueID --> 1399289130.15
! Dialstring --> abcd/003xxxxxxxxxx
! --------------------------------------------------------------------- ! Dial Event src=DAHDI/7-1 dest=SIP/abcd-00000001 ! Successfully created CALL record with id=e9d48003-bdc1-1de7-1d13-5367756ed476 CallerID set from Dialstring to: 003xxxxxxxxxx Stripping callout prefix: Stripping callin prefix: CallerID is: 003xxxxxxxxxx Looking for user extension number in: SIP/abcd-00000001 Channel Matched SIP/### style regex. Ext is:abcd Looking for user extension number in: SIP/abcd-00000001 Channel Matched SIP/### style regex. Ext is:abcd inbound_extension = abcd Inbound state detected... /^(sip\/[1-9][0-9][0-9]?[0-9]?-|Local)/i is astMatchInternal eChannel= DAHDI/7-1 eDestination=SIP/abcd-00000001 ! AMI Event 'Newstate suppressed. [2014-05-05 11:25:47] ! --- Event ----------------------------------------------------------- ! Event --> NewAccountCode
! Privilege --> call,all
! Channel --> SIP/abcd-00000001
! Uniqueid --> 1399289130.15
! AccountCode -->
! OldAccountCode -->
! --------------------------------------------------------------------- [2014-05-05 11:25:47] ! --- Event ----------------------------------------------------------- ! Event --> Bridge
! Privilege --> call,all
! Bridgestate --> Link
! Bridgetype --> core
! Channel1 --> DAHDI/7-1
! Channel2 --> SIP/abcd-00000001
! Uniqueid1 --> 1399289126.14
! Uniqueid2 --> 1399289130.15
! CallerID1 --> 003yyyyyyyy
! CallerID2 --> 003xxxxxxxxxx
! --------------------------------------------------------------------- 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 'DAHDI/7-1' and direction='I' and (channel = '' OR channel is NULL) DEBUG: NO Queue BRIDGE ROWS found [2014-05-05 11:26:00] ! --- Event ----------------------------------------------------------- ! Event --> Unlink
! Privilege --> call,all
! Channel1 --> DAHDI/7-1
! Channel2 --> SIP/abcd-00000001
! Uniqueid1 --> 1399289126.14
! Uniqueid2 --> 1399289130.15
! CallerID1 --> 003yyyyyyyy
! CallerID2 --> 003xxxxxxxxxx
! --------------------------------------------------------------------- [2014-05-05 11:26:00] ! --- Event ----------------------------------------------------------- ! Event --> Hangup
! Privilege --> call,all
! Channel --> SIP/abcd-00000001
! Uniqueid --> 1399289130.15
! CallerIDNum --> 003xxxxxxxxxx
! CallerIDName -->
! ConnectedLineNum --> 003yyyyyyyy
! ConnectedLineName -->
! Cause --> 16
! Cause-txt --> Normal Clearing
! --------------------------------------------------------------------- In DialEnd... 1399289130.15 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1399289130.15)
! Warning, results set was empty! PHP Notice: Undefined index: DestUniqueID in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: Destination in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: CallerIDNum in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: DialString in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 [2014-05-05 11:26:00] ! --- Event ----------------------------------------------------------- ! Event --> Dial
! Privilege --> call,all
! SubEvent --> End
! Channel --> DAHDI/7-1
! UniqueID --> 1399289126.14
! DialStatus --> ANSWER
! --------------------------------------------------------------------- In DialEnd... 1399289126.14 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1399289126.14)
! Found entry in asterisk_log recordId=e9d48003-bdc1-1de7-1d13-5367756ed476 Looking for user extension number in: SIP/abcd-00000001 Channel Matched SIP/### style regex. Ext is:abcd
+++ findUserByAsteriskExtension(abcd)
! Assigned user will be set to Administrator. Measured call duration is 13 seconds
+++ find AccountByPhoneNumber(003xxxxxxxxxx)
! No results returned
+++ find ContactByPhoneNumber(003xxxxxxxxxx)
findSugarObjectByPhoneNumber: Contact query components- Phone: xxxxxx RegEx: (2[^\d]9[^\d]_8[^\d]_4[^\d]_7[^\d]_6[^\d])$ ! No results returned ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=e9d48003-bdc1-1de7-1d13-5367756ed476, beanId=, beanType= ! Call start was 2014-05-05 11:25:31 Updating record in /Calls/ id=e9d48003-bdc1-1de7-1d13-5367756ed476... NAME: \ Automatic record ** DESCRIPTION: Cleaning up Failed Calls part1, asterisk_id = 1399289126.14 [2014-05-05 11:26:01] ! --- Event ----------------------------------------------------------- ! Event --> Hangup
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1399289126.14
! CallerIDNum --> 003yyyyyyyy
! CallerIDName -->
! ConnectedLineNum --> 003xxxxxxxxxx
! ConnectedLineName -->
! Cause --> 16
! Cause-txt --> Normal Clearing
! --------------------------------------------------------------------- In DialEnd... 1399289126.14 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1399289126.14)
! Found entry in asterisk_log recordId=e9d48003-bdc1-1de7-1d13-5367756ed476 Looking for user extension number in: SIP/abcd-00000001 Channel Matched SIP/### style regex. Ext is:abcd
+++ findUserByAsteriskExtension(abcd)
! Assigned user will be set to Administrator. Measured call duration is 15 seconds
+++ find AccountByPhoneNumber(003xxxxxxxxxx)
! No results returned
+++ find ContactByPhoneNumber(003xxxxxxxxxx)
findSugarObjectByPhoneNumber: Contact query components- Phone: xxxxxx RegEx: (2[^\d]9[^\d]_8[^\d]_4[^\d]_7[^\d]_6[^\d])$ ! No results returned ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=e9d48003-bdc1-1de7-1d13-5367756ed476, beanId=, beanType= ! Call start was 2014-05-05 11:25:31 Updating record in /Calls/ id=e9d48003-bdc1-1de7-1d13-5367756ed476... NAME: Incoming call DESCRIPTION: Cleaning up Failed Calls part1, asterisk_id = 1399289126.14 ! AMI Event 'ExtensionStatus suppressed
----------2-----------
Waiting for call events... [2014-05-05 11:30:16] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel
! Privilege --> call,all
! Channel --> DAHDI/7-1
! ChannelState --> 1
! ChannelStateDesc --> Rsrvd
! CallerIDNum --> 377
! CallerIDName --> 377
! AccountCode -->
! Exten -->
! Context --> from-internal
! Uniqueid --> 1399289416.16
! --------------------------------------------------------------------- [2014-05-05 11:30:16] ! --- Event ----------------------------------------------------------- ! Event --> DAHDIChannel
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1399289416.16
! DAHDISpan --> 1
! DAHDIChannel --> 7
! --------------------------------------------------------------------- ! AMI Event 'ExtensionStatus suppressed. [2014-05-05 11:30:26] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> 377
! CallerIDName --> 377
! Uniqueid --> 1399289416.16
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 377 [2014-05-05 11:30:26] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> 377
! CallerIDName --> 377
! Uniqueid --> 1399289416.16
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 377 ! AMI Event 'Newstate suppressed. [2014-05-05 11:30:26] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> 003yyyyyyyy
! CallerIDName -->
! Uniqueid --> 1399289416.16
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 003yyyyyyyy [2014-05-05 11:30:26] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel
! Privilege --> call,all
! Channel --> SIP/abcd-00000002
! ChannelState --> 0
! ChannelStateDesc --> Down
! CallerIDNum -->
! CallerIDName -->
! AccountCode -->
! Exten -->
! Context --> from-trunk-sip-abcd
! Uniqueid --> 1399289425.17
! --------------------------------------------------------------------- [2014-05-05 11:30:26] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> SIP/abcd-00000002
! CallerIDNum --> 003xxxxxxxxxx
! CallerIDName --> CID:003yyyyyyyy
! Uniqueid --> 1399289425.17
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 003xxxxxxxxxx PHP Notice: Undefined index: DialString in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 [2014-05-05 11:30:26] ! --- Event ----------------------------------------------------------- ! Event --> Dial
! Privilege --> call,all
! SubEvent --> Begin
! Channel --> DAHDI/7-1
! Destination --> SIP/abcd-00000002
! CallerIDNum --> 003yyyyyyyy
! CallerIDName -->
! ConnectedLineNum --> 003xxxxxxxxxx
! ConnectedLineName --> CID:003yyyyyyyy
! UniqueID --> 1399289416.16
! DestUniqueID --> 1399289425.17
! Dialstring --> abcd/003xxxxxxxxxx
! --------------------------------------------------------------------- ! Dial Event src=DAHDI/7-1 dest=SIP/abcd-00000002 ! Successfully created CALL record with id=41ad67e7-05bb-5bc9-6cfd-536776917e3b CallerID set from Dialstring to: 003xxxxxxxxxx Stripping callout prefix: Stripping callin prefix: CallerID is: 003xxxxxxxxxx Looking for user extension number in: SIP/abcd-00000002 Channel Matched SIP/### style regex. Ext is:abcd Looking for user extension number in: SIP/abcd-00000002 Channel Matched SIP/### style regex. Ext is:abcd inbound_extension = abcd Inbound state detected... /^(sip\/[1-9][0-9][0-9]?[0-9]?-|Local)/i is astMatchInternal eChannel= DAHDI/7-1 eDestination=SIP/abcd-00000002 ! AMI Event 'Newstate suppressed. ! AMI Event 'Newstate suppressed. [2014-05-05 11:30:41] ! --- Event ----------------------------------------------------------- ! Event --> NewAccountCode
! Privilege --> call,all
! Channel --> SIP/abcd-00000002
! Uniqueid --> 1399289425.17
! AccountCode -->
! OldAccountCode -->
! --------------------------------------------------------------------- [2014-05-05 11:30:41] ! --- Event ----------------------------------------------------------- ! Event --> Bridge
! Privilege --> call,all
! Bridgestate --> Link
! Bridgetype --> core
! Channel1 --> DAHDI/7-1
! Channel2 --> SIP/abcd-00000002
! Uniqueid1 --> 1399289416.16
! Uniqueid2 --> 1399289425.17
! CallerID1 --> 003yyyyyyyy
! CallerID2 --> 003xxxxxxxxxx
! --------------------------------------------------------------------- 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 'DAHDI/7-1' and direction='I' and (channel = '' OR channel is NULL) DEBUG: NO Queue BRIDGE ROWS found [2014-05-05 11:30:45] ! --- Event ----------------------------------------------------------- ! Event --> Unlink
! Privilege --> call,all
! Channel1 --> DAHDI/7-1
! Channel2 --> SIP/abcd-00000002
! Uniqueid1 --> 1399289416.16
! Uniqueid2 --> 1399289425.17
! CallerID1 --> 003yyyyyyyy
! CallerID2 --> 003xxxxxxxxxx
! --------------------------------------------------------------------- [2014-05-05 11:30:45] ! --- Event ----------------------------------------------------------- ! Event --> Hangup
! Privilege --> call,all
! Channel --> SIP/abcd-00000002
! Uniqueid --> 1399289425.17
! CallerIDNum --> 003xxxxxxxxxx
! CallerIDName --> CID:003yyyyyyyy
! ConnectedLineNum --> 003yyyyyyyy
! ConnectedLineName -->
! Cause --> 16
! Cause-txt --> Normal Clearing
! --------------------------------------------------------------------- In DialEnd... 1399289425.17 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1399289425.17)
! Warning, results set was empty! PHP Notice: Undefined index: DestUniqueID in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: Destination in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: CallerIDNum in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: DialString in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 [2014-05-05 11:30:45] ! --- Event ----------------------------------------------------------- ! Event --> Dial
! Privilege --> call,all
! SubEvent --> End
! Channel --> DAHDI/7-1
! UniqueID --> 1399289416.16
! DialStatus --> ANSWER
! --------------------------------------------------------------------- In DialEnd... 1399289416.16 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1399289416.16)
! Found entry in asterisk_log recordId=41ad67e7-05bb-5bc9-6cfd-536776917e3b Looking for user extension number in: SIP/abcd-00000002 Channel Matched SIP/### style regex. Ext is:abcd
+++ findUserByAsteriskExtension(abcd)
! Assigned user will be set to Administrator. Measured call duration is 4 seconds
+++ find AccountByPhoneNumber(003xxxxxxxxxx)
! No results returned
+++ find ContactByPhoneNumber(003xxxxxxxxxx)
findSugarObjectByPhoneNumber: Contact query components- Phone: xxxxxx RegEx: (2[^\d]9[^\d]_8[^\d]_4[^\d]_7[^\d]_6[^\d])$ ! No results returned ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=41ad67e7-05bb-5bc9-6cfd-536776917e3b, beanId=, beanType= ! Call start was 2014-05-05 11:30:26 Updating record in /Calls/ id=41ad67e7-05bb-5bc9-6cfd-536776917e3b... NAME: \ Automatic record ** DESCRIPTION: Cleaning up Failed Calls part1, asterisk_id = 1399289416.16 [2014-05-05 11:30:48] ! --- Event ----------------------------------------------------------- ! Event --> Hangup
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1399289416.16
! CallerIDNum --> 003yyyyyyyy
! CallerIDName -->
! ConnectedLineNum --> 003xxxxxxxxxx
! ConnectedLineName --> CID:003yyyyyyyy
! Cause --> 16
! Cause-txt --> Normal Clearing
! --------------------------------------------------------------------- In DialEnd... 1399289416.16 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1399289416.16)
! Found entry in asterisk_log recordId=41ad67e7-05bb-5bc9-6cfd-536776917e3b Looking for user extension number in: SIP/abcd-00000002 Channel Matched SIP/### style regex. Ext is:abcd
+++ findUserByAsteriskExtension(abcd)
! Assigned user will be set to Administrator. Measured call duration is 8 seconds
+++ find AccountByPhoneNumber(003xxxxxxxxxx)
! No results returned
+++ find ContactByPhoneNumber(003xxxxxxxxxx)
findSugarObjectByPhoneNumber: Contact query components- Phone: xxxxxx RegEx: (2[^\d]9[^\d]_8[^\d]_4[^\d]_7[^\d]_6[^\d])$ ! No results returned ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=41ad67e7-05bb-5bc9-6cfd-536776917e3b, beanId=, beanType= ! Call start was 2014-05-05 11:30:26 Updating record in /Calls/ id=41ad67e7-05bb-5bc9-6cfd-536776917e3b... NAME: Incoming call DESCRIPTION: Cleaning up Failed Calls part1, asterisk_id = 1399289416.16 ! AMI Event 'ExtensionStatus suppressed
— Reply to this email directly or view it on GitHub.
I have tested on versions of SugarCRM 6.5.16 and SuiteCRM 7.1
With Yaai version 3.6.9. I had problems with no popup at all and multiple same calls in section calls.
Solution for me was using 3.5.5 version to solve this problems.
Problem:
I think something is wrong with "Call Configuration" please see picture.
I have incoming pots lines and for outbound I use sip trunk. I don't know where is problem here.
My server with PBX shows me time 01:15 pm, my CRM server show same time but in asterisklogger.php time is 11:15 am, how do I change that time?
Please see logs. First log is when I make cal from click to dial and second is when I make from phone direct.
-----------------------------------------------------------1----------------------------------------------------------------------
Waiting for call events... [2014-05-05 11:25:27] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel
! Privilege --> call,all
! Channel --> DAHDI/7-1
! ChannelState --> 1
! ChannelStateDesc --> Rsrvd
! CallerIDNum --> 377
! CallerIDName --> 377
! AccountCode -->
! Exten -->
! Context --> from-internal
! Uniqueid --> 1399289126.14
! --------------------------------------------------------------------- [2014-05-05 11:25:27] ! --- Event ----------------------------------------------------------- ! Event --> DAHDIChannel
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1399289126.14
! DAHDISpan --> 1
! DAHDIChannel --> 7
! --------------------------------------------------------------------- ! AMI Event 'ExtensionStatus suppressed. [2014-05-05 11:25:27] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> 7
! CallerIDName --> 377
! Uniqueid --> 1399289126.14
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 7 [2014-05-05 11:25:27] ! --- Event ----------------------------------------------------------- ! Event --> NewAccountCode
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1399289126.14
! AccountCode -->
! OldAccountCode -->
! --------------------------------------------------------------------- [2014-05-05 11:25:27] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> 003xxxxxxxxxx
! CallerIDName --> 377
! Uniqueid --> 1399289126.14
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 003xxxxxxxxxx ! AMI Event 'Newstate suppressed. ! AMI Event 'ExtensionStatus suppressed. ! AMI Event 'Newstate suppressed. ! AMI Event 'ExtensionStatus suppressed. [2014-05-05 11:25:30] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> 003yyyyyyyy
! CallerIDName -->
! Uniqueid --> 1399289126.14
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 003yyyyyyyy [2014-05-05 11:25:30] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel
! Privilege --> call,all
! Channel --> SIP/abcd-00000001
! ChannelState --> 0
! ChannelStateDesc --> Down
! CallerIDNum -->
! CallerIDName -->
! AccountCode -->
! Exten -->
! Context --> from-trunk-sip-abcd
! Uniqueid --> 1399289130.15
! --------------------------------------------------------------------- [2014-05-05 11:25:30] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> SIP/abcd-00000001
! CallerIDNum --> 003xxxxxxxxxx
! CallerIDName -->
! Uniqueid --> 1399289130.15
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 003xxxxxxxxxx PHP Notice: Undefined index: DialString in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 [2014-05-05 11:25:30] ! --- Event ----------------------------------------------------------- ! Event --> Dial
! Privilege --> call,all
! SubEvent --> Begin
! Channel --> DAHDI/7-1
! Destination --> SIP/abcd-00000001
! CallerIDNum --> 003yyyyyyyy
! CallerIDName -->
! ConnectedLineNum --> 003xxxxxxxxxx
! ConnectedLineName -->
! UniqueID --> 1399289126.14
! DestUniqueID --> 1399289130.15
! Dialstring --> abcd/003xxxxxxxxxx
! --------------------------------------------------------------------- ! Dial Event src=DAHDI/7-1 dest=SIP/abcd-00000001 ! Successfully created CALL record with id=e9d48003-bdc1-1de7-1d13-5367756ed476 CallerID set from Dialstring to: 003xxxxxxxxxx Stripping callout prefix: Stripping callin prefix: CallerID is: 003xxxxxxxxxx Looking for user extension number in: SIP/abcd-00000001 Channel Matched SIP/### style regex. Ext is:abcd Looking for user extension number in: SIP/abcd-00000001 Channel Matched SIP/### style regex. Ext is:abcd inbound_extension = abcd Inbound state detected... /^(sip\/[1-9][0-9][0-9]?[0-9]?-|Local)/i is astMatchInternal eChannel= DAHDI/7-1 eDestination=SIP/abcd-00000001 ! AMI Event 'Newstate suppressed. [2014-05-05 11:25:47] ! --- Event ----------------------------------------------------------- ! Event --> NewAccountCode
! Privilege --> call,all
! Channel --> SIP/abcd-00000001
! Uniqueid --> 1399289130.15
! AccountCode -->
! OldAccountCode -->
! --------------------------------------------------------------------- [2014-05-05 11:25:47] ! --- Event ----------------------------------------------------------- ! Event --> Bridge
! Privilege --> call,all
! Bridgestate --> Link
! Bridgetype --> core
! Channel1 --> DAHDI/7-1
! Channel2 --> SIP/abcd-00000001
! Uniqueid1 --> 1399289126.14
! Uniqueid2 --> 1399289130.15
! CallerID1 --> 003yyyyyyyy
! CallerID2 --> 003xxxxxxxxxx
! --------------------------------------------------------------------- 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 'DAHDI/7-1' and direction='I' and (channel = '' OR channel is NULL) DEBUG: NO Queue BRIDGE ROWS found [2014-05-05 11:26:00] ! --- Event ----------------------------------------------------------- ! Event --> Unlink
! Privilege --> call,all
! Channel1 --> DAHDI/7-1
! Channel2 --> SIP/abcd-00000001
! Uniqueid1 --> 1399289126.14
! Uniqueid2 --> 1399289130.15
! CallerID1 --> 003yyyyyyyy
! CallerID2 --> 003xxxxxxxxxx
! --------------------------------------------------------------------- [2014-05-05 11:26:00] ! --- Event ----------------------------------------------------------- ! Event --> Hangup
! Privilege --> call,all
! Channel --> SIP/abcd-00000001
! Uniqueid --> 1399289130.15
! CallerIDNum --> 003xxxxxxxxxx
! CallerIDName -->
! ConnectedLineNum --> 003yyyyyyyy
! ConnectedLineName -->
! Cause --> 16
! Cause-txt --> Normal Clearing
! --------------------------------------------------------------------- In DialEnd... 1399289130.15 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1399289130.15)
! Warning, results set was empty! PHP Notice: Undefined index: DestUniqueID in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: Destination in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: CallerIDNum in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: DialString in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 [2014-05-05 11:26:00] ! --- Event ----------------------------------------------------------- ! Event --> Dial
! Privilege --> call,all
! SubEvent --> End
! Channel --> DAHDI/7-1
! UniqueID --> 1399289126.14
! DialStatus --> ANSWER
! --------------------------------------------------------------------- In DialEnd... 1399289126.14 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1399289126.14)
! Found entry in asterisk_log recordId=e9d48003-bdc1-1de7-1d13-5367756ed476 Looking for user extension number in: SIP/abcd-00000001 Channel Matched SIP/### style regex. Ext is:abcd
+++ findUserByAsteriskExtension(abcd)
! Assigned user will be set to Administrator. Measured call duration is 13 seconds
+++ find AccountByPhoneNumber(003xxxxxxxxxx)
! No results returned
+++ find ContactByPhoneNumber(003xxxxxxxxxx)
findSugarObjectByPhoneNumber: Contact query components- Phone: xxxxxx RegEx: (2[^\d]_9[^\d]_8[^\d]_4[^\d]_7[^\d]6[^\d])$ ! No results returned ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=e9d48003-bdc1-1de7-1d13-5367756ed476, beanId=, beanType= ! Call start was 2014-05-05 11:25:31 Updating record in /Calls/ id=e9d48003-bdc1-1de7-1d13-5367756ed476... NAME: \ Automatic record ** DESCRIPTION: Cleaning up Failed Calls part1, asterisk_id = 1399289126.14 [2014-05-05 11:26:01] ! --- Event ----------------------------------------------------------- ! Event --> Hangup
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1399289126.14
! CallerIDNum --> 003yyyyyyyy
! CallerIDName -->
! ConnectedLineNum --> 003xxxxxxxxxx
! ConnectedLineName -->
! Cause --> 16
! Cause-txt --> Normal Clearing
! --------------------------------------------------------------------- In DialEnd... 1399289126.14 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1399289126.14)
! Found entry in asterisk_log recordId=e9d48003-bdc1-1de7-1d13-5367756ed476 Looking for user extension number in: SIP/abcd-00000001 Channel Matched SIP/### style regex. Ext is:abcd
+++ findUserByAsteriskExtension(abcd)
! Assigned user will be set to Administrator. Measured call duration is 15 seconds
+++ find AccountByPhoneNumber(003xxxxxxxxxx)
! No results returned
+++ find ContactByPhoneNumber(003xxxxxxxxxx)
findSugarObjectByPhoneNumber: Contact query components- Phone: xxxxxx RegEx: (2[^\d]_9[^\d]_8[^\d]_4[^\d]_7[^\d]6[^\d])$ ! No results returned ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=e9d48003-bdc1-1de7-1d13-5367756ed476, beanId=, beanType= ! Call start was 2014-05-05 11:25:31 Updating record in /Calls/ id=e9d48003-bdc1-1de7-1d13-5367756ed476... NAME: Incoming call DESCRIPTION: Cleaning up Failed Calls part1, asterisk_id = 1399289126.14 ! AMI Event 'ExtensionStatus suppressed
-----------------------------------------------------------2----------------------------------------------------------------------
Waiting for call events... [2014-05-05 11:30:16] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel
! Privilege --> call,all
! Channel --> DAHDI/7-1
! ChannelState --> 1
! ChannelStateDesc --> Rsrvd
! CallerIDNum --> 377
! CallerIDName --> 377
! AccountCode -->
! Exten -->
! Context --> from-internal
! Uniqueid --> 1399289416.16
! --------------------------------------------------------------------- [2014-05-05 11:30:16] ! --- Event ----------------------------------------------------------- ! Event --> DAHDIChannel
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1399289416.16
! DAHDISpan --> 1
! DAHDIChannel --> 7
! --------------------------------------------------------------------- ! AMI Event 'ExtensionStatus suppressed. [2014-05-05 11:30:26] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> 377
! CallerIDName --> 377
! Uniqueid --> 1399289416.16
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 377 [2014-05-05 11:30:26] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> 377
! CallerIDName --> 377
! Uniqueid --> 1399289416.16
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 377 ! AMI Event 'Newstate suppressed. [2014-05-05 11:30:26] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> 003yyyyyyyy
! CallerIDName -->
! Uniqueid --> 1399289416.16
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 003yyyyyyyy [2014-05-05 11:30:26] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel
! Privilege --> call,all
! Channel --> SIP/abcd-00000002
! ChannelState --> 0
! ChannelStateDesc --> Down
! CallerIDNum -->
! CallerIDName -->
! AccountCode -->
! Exten -->
! Context --> from-trunk-sip-abcd
! Uniqueid --> 1399289425.17
! --------------------------------------------------------------------- [2014-05-05 11:30:26] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> SIP/abcd-00000002
! CallerIDNum --> 003xxxxxxxxxx
! CallerIDName --> CID:003yyyyyyyy
! Uniqueid --> 1399289425.17
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: 003xxxxxxxxxx PHP Notice: Undefined index: DialString in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 [2014-05-05 11:30:26] ! --- Event ----------------------------------------------------------- ! Event --> Dial
! Privilege --> call,all
! SubEvent --> Begin
! Channel --> DAHDI/7-1
! Destination --> SIP/abcd-00000002
! CallerIDNum --> 003yyyyyyyy
! CallerIDName -->
! ConnectedLineNum --> 003xxxxxxxxxx
! ConnectedLineName --> CID:003yyyyyyyy
! UniqueID --> 1399289416.16
! DestUniqueID --> 1399289425.17
! Dialstring --> abcd/003xxxxxxxxxx
! --------------------------------------------------------------------- ! Dial Event src=DAHDI/7-1 dest=SIP/abcd-00000002 ! Successfully created CALL record with id=41ad67e7-05bb-5bc9-6cfd-536776917e3b CallerID set from Dialstring to: 003xxxxxxxxxx Stripping callout prefix: Stripping callin prefix: CallerID is: 003xxxxxxxxxx Looking for user extension number in: SIP/abcd-00000002 Channel Matched SIP/### style regex. Ext is:abcd Looking for user extension number in: SIP/abcd-00000002 Channel Matched SIP/### style regex. Ext is:abcd inbound_extension = abcd Inbound state detected... /^(sip\/[1-9][0-9][0-9]?[0-9]?-|Local)/i is astMatchInternal eChannel= DAHDI/7-1 eDestination=SIP/abcd-00000002 ! AMI Event 'Newstate suppressed. ! AMI Event 'Newstate suppressed. [2014-05-05 11:30:41] ! --- Event ----------------------------------------------------------- ! Event --> NewAccountCode
! Privilege --> call,all
! Channel --> SIP/abcd-00000002
! Uniqueid --> 1399289425.17
! AccountCode -->
! OldAccountCode -->
! --------------------------------------------------------------------- [2014-05-05 11:30:41] ! --- Event ----------------------------------------------------------- ! Event --> Bridge
! Privilege --> call,all
! Bridgestate --> Link
! Bridgetype --> core
! Channel1 --> DAHDI/7-1
! Channel2 --> SIP/abcd-00000002
! Uniqueid1 --> 1399289416.16
! Uniqueid2 --> 1399289425.17
! CallerID1 --> 003yyyyyyyy
! CallerID2 --> 003xxxxxxxxxx
! --------------------------------------------------------------------- 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 'DAHDI/7-1' and direction='I' and (channel = '' OR channel is NULL) DEBUG: NO Queue BRIDGE ROWS found [2014-05-05 11:30:45] ! --- Event ----------------------------------------------------------- ! Event --> Unlink
! Privilege --> call,all
! Channel1 --> DAHDI/7-1
! Channel2 --> SIP/abcd-00000002
! Uniqueid1 --> 1399289416.16
! Uniqueid2 --> 1399289425.17
! CallerID1 --> 003yyyyyyyy
! CallerID2 --> 003xxxxxxxxxx
! --------------------------------------------------------------------- [2014-05-05 11:30:45] ! --- Event ----------------------------------------------------------- ! Event --> Hangup
! Privilege --> call,all
! Channel --> SIP/abcd-00000002
! Uniqueid --> 1399289425.17
! CallerIDNum --> 003xxxxxxxxxx
! CallerIDName --> CID:003yyyyyyyy
! ConnectedLineNum --> 003yyyyyyyy
! ConnectedLineName -->
! Cause --> 16
! Cause-txt --> Normal Clearing
! --------------------------------------------------------------------- In DialEnd... 1399289425.17 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1399289425.17)
! Warning, results set was empty! PHP Notice: Undefined index: DestUniqueID in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: Destination in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: CallerIDNum in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: DialString in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 1348 [2014-05-05 11:30:45] ! --- Event ----------------------------------------------------------- ! Event --> Dial
! Privilege --> call,all
! SubEvent --> End
! Channel --> DAHDI/7-1
! UniqueID --> 1399289416.16
! DialStatus --> ANSWER
! --------------------------------------------------------------------- In DialEnd... 1399289416.16 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1399289416.16)
! Found entry in asterisk_log recordId=41ad67e7-05bb-5bc9-6cfd-536776917e3b Looking for user extension number in: SIP/abcd-00000002 Channel Matched SIP/### style regex. Ext is:abcd
+++ findUserByAsteriskExtension(abcd)
! Assigned user will be set to Administrator. Measured call duration is 4 seconds
+++ find AccountByPhoneNumber(003xxxxxxxxxx)
! No results returned
+++ find ContactByPhoneNumber(003xxxxxxxxxx)
findSugarObjectByPhoneNumber: Contact query components- Phone: xxxxxx RegEx: (2[^\d]_9[^\d]_8[^\d]_4[^\d]_7[^\d]6[^\d])$ ! No results returned ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=41ad67e7-05bb-5bc9-6cfd-536776917e3b, beanId=, beanType= ! Call start was 2014-05-05 11:30:26 Updating record in /Calls/ id=41ad67e7-05bb-5bc9-6cfd-536776917e3b... NAME: \ Automatic record ** DESCRIPTION: Cleaning up Failed Calls part1, asterisk_id = 1399289416.16 [2014-05-05 11:30:48] ! --- Event ----------------------------------------------------------- ! Event --> Hangup
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1399289416.16
! CallerIDNum --> 003yyyyyyyy
! CallerIDName -->
! ConnectedLineNum --> 003xxxxxxxxxx
! ConnectedLineName --> CID:003yyyyyyyy
! Cause --> 16
! Cause-txt --> Normal Clearing
! --------------------------------------------------------------------- In DialEnd... 1399289416.16 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/html/suitecrm7.1.13522vf/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1399289416.16)
! Found entry in asterisk_log recordId=41ad67e7-05bb-5bc9-6cfd-536776917e3b Looking for user extension number in: SIP/abcd-00000002 Channel Matched SIP/### style regex. Ext is:abcd
+++ findUserByAsteriskExtension(abcd)
! Assigned user will be set to Administrator. Measured call duration is 8 seconds
+++ find AccountByPhoneNumber(003xxxxxxxxxx)
! No results returned
+++ find ContactByPhoneNumber(003xxxxxxxxxx)
findSugarObjectByPhoneNumber: Contact query components- Phone: xxxxxx RegEx: (2[^\d]_9[^\d]_8[^\d]_4[^\d]_7[^\d]6[^\d])$ ! No results returned ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=41ad67e7-05bb-5bc9-6cfd-536776917e3b, beanId=, beanType= ! Call start was 2014-05-05 11:30:26 Updating record in /Calls/ id=41ad67e7-05bb-5bc9-6cfd-536776917e3b... NAME: Incoming call DESCRIPTION: Cleaning up Failed Calls part1, asterisk_id = 1399289416.16 ! AMI Event 'ExtensionStatus suppressed