yaai
yaai copied to clipboard
Outbound calls are labeled as inbounds and no popups for outbound calls.
Inbound calls works fine, but my outbound calls go trough SIP trunk and they are labeled as inbound.
I make calls with my analog phone connected trough card.
Using PBX in flash (Asterisk 1.8)
To make calls I had to put my channel number instead of extension in user options:
Here are configure options
Here are logs from AsteriskLogger.php and later from CLI
DIALEDNUMBER --> number which I called MYCUSTOMCID --> CID which I put in opitons
[2014-05-16 18:44:58] Patiently Waiting...! (mem_used: 4199864)
[2014-05-16 18:45:02]
! --- Event -----------------------------------------------------------
! Event --> Newchannel
! Privilege --> call,all
! Channel --> DAHDI/7-1
! ChannelState --> 1
! ChannelStateDesc --> Rsrvd
! CallerIDNum --> 112
! CallerIDName --> 112
! AccountCode -->
! Exten -->
! Context --> from-internal
! Uniqueid --> 1400265900.0
! ---------------------------------------------------------------------
[2014-05-16 18:45:02]
! --- Event -----------------------------------------------------------
! Event --> DAHDIChannel
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1400265900.0
! DAHDISpan --> 1
! DAHDIChannel --> 7
! ---------------------------------------------------------------------
[2014-05-16 18:45:02]
! --- Event -----------------------------------------------------------
! Event --> NewAccountCode
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1400265900.0
! AccountCode -->
! OldAccountCode -->
! ---------------------------------------------------------------------
[2014-05-16 18:45:02]
! --- Event -----------------------------------------------------------
! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> DIALEDNUMBER
! CallerIDName --> 112
! Uniqueid --> 1400265900.0
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! ---------------------------------------------------------------------
CallerID Changed to: DIALEDNUMBER
! AMI Event 'Newstate suppressed.
! AMI Event 'ExtensionStatus suppressed.
! AMI Event 'Newstate suppressed.
! AMI Event 'ExtensionStatus suppressed.
[2014-05-16 18:45:05]
! --- Event -----------------------------------------------------------
! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> DIALEDNUMBER
! CallerIDName --> 112
! Uniqueid --> 1400265900.0
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! ---------------------------------------------------------------------
CallerID Changed to: DIALEDNUMBER
[2014-05-16 18:45:05]
! --- Event -----------------------------------------------------------
! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> DIALEDNUMBER
! CallerIDName --> 112
! Uniqueid --> 1400265900.0
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! ---------------------------------------------------------------------
CallerID Changed to: DIALEDNUMBER
[2014-05-16 18:45:05]
! --- Event -----------------------------------------------------------
! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> MYCUSTOMCID
! CallerIDName -->
! Uniqueid --> 1400265900.0
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! ---------------------------------------------------------------------
CallerID Changed to: MYCUSTOMCID
[2014-05-16 18:45:05]
! --- Event -----------------------------------------------------------
! Event --> Newchannel
! Privilege --> call,all
! Channel --> SIP/sipkor-00000000
! ChannelState --> 0
! ChannelStateDesc --> Down
! CallerIDNum -->
! CallerIDName -->
! AccountCode -->
! Exten -->
! Context --> from-trunk-sip-sipkor
! Uniqueid --> 1400265903.1
! ---------------------------------------------------------------------
[2014-05-16 18:45:05]
! --- Event -----------------------------------------------------------
! Event --> NewCallerid
! Privilege --> call,all
! Channel --> SIP/sipkor-00000000
! CallerIDNum --> DIALEDNUMBER
! CallerIDName -->
! Uniqueid --> 1400265903.1
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! ---------------------------------------------------------------------
CallerID Changed to: DIALEDNUMBER
PHP Notice: Undefined index: DialString in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 1348
[2014-05-16 18:45:05]
! --- Event -----------------------------------------------------------
! Event --> Dial
! Privilege --> call,all
! SubEvent --> Begin
! Channel --> DAHDI/7-1
! Destination --> SIP/sipkor-00000000
! CallerIDNum --> MYCUSTOMCID
! CallerIDName -->
! ConnectedLineNum --> DIALEDNUMBER
! ConnectedLineName -->
! UniqueID --> 1400265900.0
! DestUniqueID --> 1400265903.1
! Dialstring --> sipkor/DIALEDNUMBER
! ---------------------------------------------------------------------
! Dial Event src=DAHDI/7-1 dest=SIP/sipkor-00000000
! Successfully created CALL record with id=ca4fe5d6-bb97-73a8-b08b-53765cef570d
CallerID set from Dialstring to: DIALEDNUMBER
Stripping callout prefix:
Stripping callin prefix:
CallerID is: DIALEDNUMBER
Looking for user extension number in: SIP/sipkor-00000000
Channel Matched SIP/### style regex. Ext is:sipkor
Looking for user extension number in: SIP/sipkor-00000000
Channel Matched SIP/### style regex. Ext is:sipkor
inbound_extension = sipkor
Inbound state detected... /^(sip/[1-9][0-9][0-9]?[0-9]?-|Local)/i is astMatchInternal eChannel= DAHDI/7-1 eDestination=SIP/sipkor-00000000
! AMI Event 'Newstate suppressed.
[2014-05-16 18:45:15]
! --- Event -----------------------------------------------------------
! Event --> NewAccountCode
! Privilege --> call,all
! Channel --> SIP/sipkor-00000000
! Uniqueid --> 1400265903.1
! AccountCode -->
! OldAccountCode -->
! ---------------------------------------------------------------------
[2014-05-16 18:45:15]
! --- Event -----------------------------------------------------------
! Event --> Bridge
! Privilege --> call,all
! Bridgestate --> Link
! Bridgetype --> core
! Channel1 --> DAHDI/7-1
! Channel2 --> SIP/sipkor-00000000
! Uniqueid1 --> 1400265900.0
! Uniqueid2 --> 1400265903.1
! CallerID1 --> MYCUSTOMCID
! CallerID2 --> DIALEDNUMBER
! ---------------------------------------------------------------------
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-16 18:45:17]
! --- Event -----------------------------------------------------------
! Event --> Unlink
! Privilege --> call,all
! Channel1 --> DAHDI/7-1
! Channel2 --> SIP/sipkor-00000000
! Uniqueid1 --> 1400265900.0
! Uniqueid2 --> 1400265903.1
! CallerID1 --> MYCUSTOMCID
! CallerID2 --> DIALEDNUMBER
! ---------------------------------------------------------------------
[2014-05-16 18:45:17]
! --- Event -----------------------------------------------------------
! Event --> Hangup
! Privilege --> call,all
! Channel --> SIP/sipkor-00000000
! Uniqueid --> 1400265903.1
! CallerIDNum --> DIALEDNUMBER
! CallerIDName -->
! ConnectedLineNum --> MYCUSTOMCID
! ConnectedLineName -->
! Cause --> 16
! Cause-txt --> Normal Clearing
! ---------------------------------------------------------------------
In DialEnd... 1400265903.1
PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1400265903.1)
! Warning, results set was empty!
PHP Notice: Undefined index: DestUniqueID in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 1348
PHP Notice: Undefined index: Destination in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 1348
PHP Notice: Undefined index: CallerIDNum in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 1348
PHP Notice: Undefined index: DialString in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 1348
[2014-05-16 18:45:17]
! --- Event -----------------------------------------------------------
! Event --> Dial
! Privilege --> call,all
! SubEvent --> End
! Channel --> DAHDI/7-1
! UniqueID --> 1400265900.0
! DialStatus --> ANSWER
! ---------------------------------------------------------------------
In DialEnd... 1400265900.0
PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1400265900.0)
! Found entry in asterisk_log recordId=ca4fe5d6-bb97-73a8-b08b-53765cef570d Looking for user extension number in: SIP/sipkor-00000000 Channel Matched SIP/### style regex. Ext is:sipkor
+++ findUserByAsteriskExtension(sipkor)
! Assigned user will be set to Administrator. Measured call duration is 2 seconds
+++ find AccountByPhoneNumber(DIALEDNUMBER)
! No results returned
+++ find ContactByPhoneNumber(DIALEDNUMBER)
findSugarObjectByPhoneNumber: Contact query components- Phone: 98298476 RegEx: (9[^\d]_8[^\d]_2[^\d]_9[^\d]_8[^\d]_4[^\d]_7[^\d]6[^\d])$
! No results returned
! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=ca4fe5d6-bb97-73a8-b08b-53765cef570d, beanId=, beanType=
! Call start was 2014-05-16 18:45:06
Updating record in /Calls/ id=ca4fe5d6-bb97-73a8-b08b-53765cef570d...
NAME: ** Automatic record **
DESCRIPTION:
Cleaning up Failed Calls part1, asterisk_id = 1400265900.0
[2014-05-16 18:45:23]
! --- Event -----------------------------------------------------------
! Event --> Hangup
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1400265900.0
! CallerIDNum --> MYCUSTOMCID
! CallerIDName -->
! ConnectedLineNum --> DIALEDNUMBER
! ConnectedLineName -->
! Cause --> 16
! Cause-txt --> Normal Clearing
! ---------------------------------------------------------------------
In DialEnd... 1400265900.0
PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1400265900.0)
! Found entry in asterisk_log recordId=ca4fe5d6-bb97-73a8-b08b-53765cef570d Looking for user extension number in: SIP/sipkor-00000000 Channel Matched SIP/### style regex. Ext is:sipkor
+++ findUserByAsteriskExtension(sipkor)
! Assigned user will be set to Administrator. Measured call duration is 9 seconds
+++ find AccountByPhoneNumber(DIALEDNUMBER)
! No results returned
+++ find ContactByPhoneNumber(DIALEDNUMBER)
findSugarObjectByPhoneNumber: Contact query components- Phone: 98298476 RegEx: (9[^\d]_8[^\d]_2[^\d]_9[^\d]_8[^\d]_4[^\d]_7[^\d]6[^\d])$ ! No results returned ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=ca4fe5d6-bb97-73a8-b08b-53765cef570d, beanId=, beanType= ! Call start was 2014-05-16 18:45:06 Updating record in /Calls/ id=ca4fe5d6-bb97-73a8-b08b-53765cef570d... NAME: Incoming call DESCRIPTION: Cleaning up Failed Calls
Asterisk CLI
[2014-05-16 20:45:03] WARNING[5802]: chan_dahdi.c:4954 dahdi_train_ec: Unable to request echo training on channel 7: Invalid argument -- Executing [MYCUSTOMCID@from-internal:1] Macro("DAHDI/7-1", "user-callerid,LIMIT,EXTERNAL,") in new stack -- Executing [s@macro-user-callerid:1] Set("DAHDI/7-1", "TOUCH_MONITOR=1400265900.0") in new stack -- Executing [s@macro-user-callerid:2] Set("DAHDI/7-1", "AMPUSER=MYCUSTOMCID") in new stack -- Executing [s@macro-user-callerid:3] GotoIf("DAHDI/7-1", "0?report") in new stack -- Executing [s@macro-user-callerid:4] ExecIf("DAHDI/7-1", "1?Set(REALCALLERIDNUM=MYCUSTOMCID)") in new stack -- Executing [s@macro-user-callerid:5] Set("DAHDI/7-1", "AMPUSER=") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/7-1", "0?limit") in new stack -- Executing [s@macro-user-callerid:7] Set("DAHDI/7-1", "AMPUSERCIDNAME=") in new stack -- Executing [s@macro-user-callerid:8] GotoIf("DAHDI/7-1", "1?report") in new stack -- Goto (macro-user-callerid,s,15) -- Executing [s@macro-user-callerid:15] GotoIf("DAHDI/7-1", "1?continue") in new stack -- Goto (macro-user-callerid,s,28) -- Executing [s@macro-user-callerid:28] Set("DAHDI/7-1", "CALLERID(number)=MYCUSTOMCID") in new stack -- Executing [s@macro-user-callerid:29] Set("DAHDI/7-1", "CALLERID(name)=112") in new stack -- Executing [s@macro-user-callerid:30] Set("DAHDI/7-1", "CDR(cnum)=MYCUSTOMCID") in new stack -- Executing [s@macro-user-callerid:31] Set("DAHDI/7-1", "CDR(cnam)=112") in new stack -- Executing [s@macro-user-callerid:32] Set("DAHDI/7-1", "CHANNEL(language)=en") in new stack -- Executing [MYCUSTOMCID@from-internal:2] Set("DAHDI/7-1", "MOHCLASS=default") in new stack -- Executing [MYCUSTOMCID@from-internal:3] Set("DAHDI/7-1", "_NODEST=") in new stack -- Executing [MYCUSTOMCID@from-internal:4] Gosub("DAHDI/7-1", "sub-record-check,s,1(out,MYCUSTOMCID,)") in new stack -- Executing [s@sub-record-check:1] Set("DAHDI/7-1", "REC_POLICY_MODE_SAVE=") in new stack -- Executing [s@sub-record-check:2] GotoIf("DAHDI/7-1", "1?check") in new stack -- Goto (sub-record-check,s,7) -- Executing [s@sub-record-check:7] Set("DAHDI/7-1", "__MON_FMT=wav") in new stack -- Executing [s@sub-record-check:8] GotoIf("DAHDI/7-1", "1?next") in new stack -- Goto (sub-record-check,s,11) -- Executing [s@sub-record-check:11] ExecIf("DAHDI/7-1", "0?Return()") in new stack -- Executing [s@sub-record-check:12] ExecIf("DAHDI/7-1", "0?Set(__REC_POLICY_MODE=)") in new stack -- Executing [s@sub-record-check:13] GotoIf("DAHDI/7-1", "0?out,1") in new stack -- Executing [s@sub-record-check:14] Set("DAHDI/7-1", "__REC_STATUS=INITIALIZED") in new stack -- Executing [s@sub-record-check:15] Set("DAHDI/7-1", "NOW=1400265903") in new stack -- Executing [s@sub-record-check:16] Set("DAHDI/7-1", "__DAY=16") in new stack -- Executing [s@sub-record-check:17] Set("DAHDI/7-1", "__MONTH=05") in new stack -- Executing [s@sub-record-check:18] Set("DAHDI/7-1", "__YEAR=2014") in new stack -- Executing [s@sub-record-check:19] Set("DAHDI/7-1", "__TIMESTR=20140516-204503") in new stack -- Executing [s@sub-record-check:21] Set("DAHDI/7-1", "__CALLFILENAME=out-MYCUSTOMCID-MYCUSTOMCID-20140516-204503-1400265900.0") in new stack -- Executing [s@sub-record-check:22] Goto("DAHDI/7-1", "out,1") in new stack -- Goto (sub-record-check,out,1) -- Executing [out@sub-record-check:1] ExecIf("DAHDI/7-1", "1?Set(__REC_POLICY_MODE=)") in new stack -- Executing [out@sub-record-check:2] GosubIf("DAHDI/7-1", "0?record,1(exten,MYCUSTOMCID,MYCUSTOMCID)") in new stack -- Executing [out@sub-record-check:3] Return("DAHDI/7-1", "") in new stack -- Executing [MYCUSTOMCID@from-internal:5] Macro("DAHDI/7-1", "dialout-trunk,2,MYCUSTOMCID,,off") in new stack -- Executing [s@macro-dialout-trunk:1] Set("DAHDI/7-1", "DIAL_TRUNK=2") in new stack -- Executing [s@macro-dialout-trunk:2] GosubIf("DAHDI/7-1", "0?sub-pincheck,s,1()") in new stack -- Executing [s@macro-dialout-trunk:3] GotoIf("DAHDI/7-1", "0?disabletrunk,1") in new stack -- Executing [s@macro-dialout-trunk:4] Set("DAHDI/7-1", "DIAL_NUMBER=MYCUSTOMCID") in new stack -- Executing [s@macro-dialout-trunk:5] Set("DAHDI/7-1", "DIAL_TRUNK_OPTIONS=Ttr") in new stack -- Executing [s@macro-dialout-trunk:6] Set("DAHDI/7-1", "OUTBOUND_GROUP=OUT_2") in new stack -- Executing [s@macro-dialout-trunk:7] GotoIf("DAHDI/7-1", "1?nomax") in new stack -- Goto (macro-dialout-trunk,s,9) -- Executing [s@macro-dialout-trunk:9] GotoIf("DAHDI/7-1", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:10] Set("DAHDI/7-1", "DIAL_TRUNK_OPTIONS=Tt") in new stack -- Executing [s@macro-dialout-trunk:11] Macro("DAHDI/7-1", "outbound-callerid,2") in new stack -- Executing [s@macro-outbound-callerid:1] ExecIf("DAHDI/7-1", "0?Set(CALLERPRES()=)") in new stack -- Executing [s@macro-outbound-callerid:2] ExecIf("DAHDI/7-1", "0?Set(REALCALLERIDNUM=MYCUSTOMCID)") in new stack -- Executing [s@macro-outbound-callerid:3] GotoIf("DAHDI/7-1", "1?normcid") in new stack -- Goto (macro-outbound-callerid,s,6) -- Executing [s@macro-outbound-callerid:6] Set("DAHDI/7-1", "USEROUTCID=") in new stack -- Executing [s@macro-outbound-callerid:7] Set("DAHDI/7-1", "EMERGENCYCID=") in new stack -- Executing [s@macro-outbound-callerid:8] Set("DAHDI/7-1", "TRUNKOUTCID=MYCUSTOMCID") in new stack -- Executing [s@macro-outbound-callerid:9] GotoIf("DAHDI/7-1", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,14) -- Executing [s@macro-outbound-callerid:14] ExecIf("DAHDI/7-1", "1?Set(CALLERID(all)=MYCUSTOMCID)") in new stack -- Executing [s@macro-outbound-callerid:15] ExecIf("DAHDI/7-1", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:16] ExecIf("DAHDI/7-1", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:17] ExecIf("DAHDI/7-1", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:18] Set("DAHDI/7-1", "CDR(outbound_cnum)=MYCUSTOMCID") in new stack -- Executing [s@macro-outbound-callerid:19] Set("DAHDI/7-1", "CDR(outbound_cnam)=") in new stack -- Executing [s@macro-dialout-trunk:12] GosubIf("DAHDI/7-1", "0?sub-flp-2,s,1()") in new stack -- Executing [s@macro-dialout-trunk:13] Set("DAHDI/7-1", "OUTNUM=MYCUSTOMCID") in new stack -- Executing [s@macro-dialout-trunk:14] Set("DAHDI/7-1", "custom=SIP/sipkor") in new stack -- Executing [s@macro-dialout-trunk:15] ExecIf("DAHDI/7-1", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack -- Executing [s@macro-dialout-trunk:16] ExecIf("DAHDI/7-1", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack -- Executing [s@macro-dialout-trunk:17] Macro("DAHDI/7-1", "dialout-trunk-predial-hook,") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("DAHDI/7-1", "") in new stack -- Executing [s@macro-dialout-trunk:18] GotoIf("DAHDI/7-1", "0?bypass,1") in new stack -- Executing [s@macro-dialout-trunk:19] ExecIf("DAHDI/7-1", "0?Set(CONNECTEDLINE(num,i)=MYCUSTOMCID)") in new stack -- Executing [s@macro-dialout-trunk:20] ExecIf("DAHDI/7-1", "0?Set(CONNECTEDLINE(name,i)=CID:MYCUSTOMCID)") in new stack -- Executing [s@macro-dialout-trunk:21] GotoIf("DAHDI/7-1", "0?customtrunk") in new stack -- Executing [s@macro-dialout-trunk:22] Dial("DAHDI/7-1", "SIP/sipkor/MYCUSTOMCID,300,Tt") in new stack == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Called SIP/sipkor/MYCUSTOMCID -- SIP/sipkor-00000000 is making progress passing it to DAHDI/7-1 -- SIP/sipkor-00000000 answered DAHDI/7-1 -- Executing [h@macro-dialout-trunk:1] Macro("DAHDI/7-1", "hangupcall,") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/7-1", "1?theend") in new stack -- Goto (macro-hangupcall,s,3) -- Executing [s@macro-hangupcall:3] ExecIf("DAHDI/7-1", "0?Set(CDR(recordingfile)=)") in new stack -- Executing [s@macro-hangupcall:4] Hangup("DAHDI/7-1", "") in new stack == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'DAHDI/7-1' in macro 'hangupcall' == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'DAHDI/7-1' == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'DAHDI/7-1' in macro 'dialout-trunk' == Spawn extension (from-internal, MYCUSTOMCID, 5) exited non-zero on 'DAHDI/7-1' -- Hanging up on 'DAHDI/7-1' -- Hungup 'DAHDI/7-1'
It's not really working. Every call is going to be matched as extension 7. So there is no differentiation between users.
Blake Robertson Callinize [email protected]
On May 16, 2014, at 2:57 PM, jose33444 [email protected] wrote:
Inbound calls works fine, but my outbound calls go trough SIP trunk and they are labeled as inbound.
I make calls with my analog phone connected trough card.
Using PBX in flash (Asterisk 1.8)
To make calls I had to put my channel number instead of extension in user options:
Here are configure options
Here are logs from AsteriskLogger.php and later from CLI
DIALEDNUMBER --> number which I called MYCUSTOMCID --> CID which I put in opitons
[2014-05-16 18:44:58] Patiently Waiting...! (mem_used: 4199864) [2014-05-16 18:45:02] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel
! Privilege --> call,all
! Channel --> DAHDI/7-1
! ChannelState --> 1
! ChannelStateDesc --> Rsrvd
! CallerIDNum --> 112
! CallerIDName --> 112
! AccountCode -->
! Exten -->
! Context --> from-internal
! Uniqueid --> 1400265900.0
! --------------------------------------------------------------------- [2014-05-16 18:45:02] ! --- Event ----------------------------------------------------------- ! Event --> DAHDIChannel
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1400265900.0
! DAHDISpan --> 1
! DAHDIChannel --> 7
! --------------------------------------------------------------------- [2014-05-16 18:45:02] ! --- Event ----------------------------------------------------------- ! Event --> NewAccountCode
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1400265900.0
! AccountCode -->
! OldAccountCode -->
! --------------------------------------------------------------------- [2014-05-16 18:45:02] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> DIALEDNUMBER
! CallerIDName --> 112
! Uniqueid --> 1400265900.0
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: DIALEDNUMBER ! AMI Event 'Newstate suppressed. ! AMI Event 'ExtensionStatus suppressed. ! AMI Event 'Newstate suppressed. ! AMI Event 'ExtensionStatus suppressed. [2014-05-16 18:45:05] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> DIALEDNUMBER
! CallerIDName --> 112
! Uniqueid --> 1400265900.0
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: DIALEDNUMBER [2014-05-16 18:45:05] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> DIALEDNUMBER
! CallerIDName --> 112
! Uniqueid --> 1400265900.0
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: DIALEDNUMBER [2014-05-16 18:45:05] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> DAHDI/7-1
! CallerIDNum --> MYCUSTOMCID
! CallerIDName -->
! Uniqueid --> 1400265900.0
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: MYCUSTOMCID [2014-05-16 18:45:05] ! --- Event ----------------------------------------------------------- ! Event --> Newchannel
! Privilege --> call,all
! Channel --> SIP/sipkor-00000000
! ChannelState --> 0
! ChannelStateDesc --> Down
! CallerIDNum -->
! CallerIDName -->
! AccountCode -->
! Exten -->
! Context --> from-trunk-sip-sipkor
! Uniqueid --> 1400265903.1
! --------------------------------------------------------------------- [2014-05-16 18:45:05] ! --- Event ----------------------------------------------------------- ! Event --> NewCallerid
! Privilege --> call,all
! Channel --> SIP/sipkor-00000000
! CallerIDNum --> DIALEDNUMBER
! CallerIDName -->
! Uniqueid --> 1400265903.1
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! --------------------------------------------------------------------- CallerID Changed to: DIALEDNUMBER PHP Notice: Undefined index: DialString in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 1348 [2014-05-16 18:45:05] ! --- Event ----------------------------------------------------------- ! Event --> Dial
! Privilege --> call,all
! SubEvent --> Begin
! Channel --> DAHDI/7-1
! Destination --> SIP/sipkor-00000000
! CallerIDNum --> MYCUSTOMCID
! CallerIDName -->
! ConnectedLineNum --> DIALEDNUMBER
! ConnectedLineName -->
! UniqueID --> 1400265900.0
! DestUniqueID --> 1400265903.1
! Dialstring --> sipkor/DIALEDNUMBER
! --------------------------------------------------------------------- ! Dial Event src=DAHDI/7-1 dest=SIP/sipkor-00000000 ! Successfully created CALL record with id=ca4fe5d6-bb97-73a8-b08b-53765cef570d CallerID set from Dialstring to: DIALEDNUMBER Stripping callout prefix: Stripping callin prefix: CallerID is: DIALEDNUMBER Looking for user extension number in: SIP/sipkor-00000000 Channel Matched SIP/### style regex. Ext is:sipkor Looking for user extension number in: SIP/sipkor-00000000 Channel Matched SIP/### style regex. Ext is:sipkor inbound_extension = sipkor Inbound state detected... /^(sip/[1-9][0-9][0-9]?[0-9]?-|Local)/i is astMatchInternal eChannel= DAHDI/7-1 eDestination=SIP/sipkor-00000000 ! AMI Event 'Newstate suppressed. [2014-05-16 18:45:15] ! --- Event ----------------------------------------------------------- ! Event --> NewAccountCode
! Privilege --> call,all
! Channel --> SIP/sipkor-00000000
! Uniqueid --> 1400265903.1
! AccountCode -->
! OldAccountCode -->
! --------------------------------------------------------------------- [2014-05-16 18:45:15] ! --- Event ----------------------------------------------------------- ! Event --> Bridge
! Privilege --> call,all
! Bridgestate --> Link
! Bridgetype --> core
! Channel1 --> DAHDI/7-1
! Channel2 --> SIP/sipkor-00000000
! Uniqueid1 --> 1400265900.0
! Uniqueid2 --> 1400265903.1
! CallerID1 --> MYCUSTOMCID
! CallerID2 --> DIALEDNUMBER
! --------------------------------------------------------------------- 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-16 18:45:17] ! --- Event ----------------------------------------------------------- ! Event --> Unlink
! Privilege --> call,all
! Channel1 --> DAHDI/7-1
! Channel2 --> SIP/sipkor-00000000
! Uniqueid1 --> 1400265900.0
! Uniqueid2 --> 1400265903.1
! CallerID1 --> MYCUSTOMCID
! CallerID2 --> DIALEDNUMBER
! --------------------------------------------------------------------- [2014-05-16 18:45:17] ! --- Event ----------------------------------------------------------- ! Event --> Hangup
! Privilege --> call,all
! Channel --> SIP/sipkor-00000000
! Uniqueid --> 1400265903.1
! CallerIDNum --> DIALEDNUMBER
! CallerIDName -->
! ConnectedLineNum --> MYCUSTOMCID
! ConnectedLineName -->
! Cause --> 16
! Cause-txt --> Normal Clearing
! --------------------------------------------------------------------- In DialEnd... 1400265903.1 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1400265903.1)
! Warning, results set was empty! PHP Notice: Undefined index: DestUniqueID in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: Destination in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: CallerIDNum in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 1348 PHP Notice: Undefined index: DialString in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 1348 [2014-05-16 18:45:17] ! --- Event ----------------------------------------------------------- ! Event --> Dial
! Privilege --> call,all
! SubEvent --> End
! Channel --> DAHDI/7-1
! UniqueID --> 1400265900.0
! DialStatus --> ANSWER
! --------------------------------------------------------------------- In DialEnd... 1400265900.0 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1400265900.0)
! Found entry in asterisk_log recordId=ca4fe5d6-bb97-73a8-b08b-53765cef570d Looking for user extension number in: SIP/sipkor-00000000 Channel Matched SIP/### style regex. Ext is:sipkor
+++ findUserByAsteriskExtension(sipkor)
! Assigned user will be set to Administrator. Measured call duration is 2 seconds
+++ find AccountByPhoneNumber(DIALEDNUMBER)
! No results returned
+++ find ContactByPhoneNumber(DIALEDNUMBER)
findSugarObjectByPhoneNumber: Contact query components- Phone: 98298476 RegEx: (9[^\d]8[^\d]_2[^\d]_9[^\d]_8[^\d]_4[^\d]_7[^\d]_6[^\d])$ ! No results returned ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=ca4fe5d6-bb97-73a8-b08b-53765cef570d, beanId=, beanType= ! Call start was 2014-05-16 18:45:06 Updating record in /Calls/ id=ca4fe5d6-bb97-73a8-b08b-53765cef570d... NAME: ** Automatic record ** DESCRIPTION: Cleaning up Failed Calls part1, asterisk_id = 1400265900.0 [2014-05-16 18:45:23] ! --- Event ----------------------------------------------------------- ! Event --> Hangup
! Privilege --> call,all
! Channel --> DAHDI/7-1
! Uniqueid --> 1400265900.0
! CallerIDNum --> MYCUSTOMCID
! CallerIDName -->
! ConnectedLineNum --> DIALEDNUMBER
! ConnectedLineName -->
! Cause --> 16
! Cause-txt --> Normal Clearing
! --------------------------------------------------------------------- In DialEnd... 1400265900.0 PHP Notice: Undefined index: asterisk_only_log_calls_matching_user_extension in /var/www/suitecrm7.1.1/custom/modules/Asterisk/asteriskLogger.php on line 683
+++ findCallByAsteriskId(1400265900.0)
! Found entry in asterisk_log recordId=ca4fe5d6-bb97-73a8-b08b-53765cef570d Looking for user extension number in: SIP/sipkor-00000000 Channel Matched SIP/### style regex. Ext is:sipkor
+++ findUserByAsteriskExtension(sipkor)
! Assigned user will be set to Administrator. Measured call duration is 9 seconds
+++ find AccountByPhoneNumber(DIALEDNUMBER)
! No results returned
+++ find ContactByPhoneNumber(DIALEDNUMBER)
findSugarObjectByPhoneNumber: Contact query components- Phone: 98298476 RegEx: (9[^\d]8[^\d]_2[^\d]_9[^\d]_8[^\d]_4[^\d]_7[^\d]_6[^\d])$ ! No results returned ! Invalid Arguments passed to setRelationshipBetweenCallAndBean callRecordId=ca4fe5d6-bb97-73a8-b08b-53765cef570d, beanId=, beanType= ! Call start was 2014-05-16 18:45:06 Updating record in /Calls/ id=ca4fe5d6-bb97-73a8-b08b-53765cef570d... NAME: Incoming call DESCRIPTION: Cleaning up Failed Calls
Asterisk CLI
[2014-05-16 20:45:03] WARNING[5802]: chan_dahdi.c:4954 dahdi_train_ec: Unable to request echo training on channel 7: Invalid argument -- Executing [MYCUSTOMCID@from-internal:1] Macro("DAHDI/7-1", "user-callerid,LIMIT,EXTERNAL,") in new stack -- Executing [s@macro-user-callerid:1] Set("DAHDI/7-1", "TOUCH_MONITOR=1400265900.0") in new stack -- Executing [s@macro-user-callerid:2] Set("DAHDI/7-1", "AMPUSER=MYCUSTOMCID") in new stack -- Executing [s@macro-user-callerid:3] GotoIf("DAHDI/7-1", "0?report") in new stack -- Executing [s@macro-user-callerid:4] ExecIf("DAHDI/7-1", "1?Set(REALCALLERIDNUM=MYCUSTOMCID)") in new stack -- Executing [s@macro-user-callerid:5] Set("DAHDI/7-1", "AMPUSER=") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/7-1", "0?limit") in new stack -- Executing [s@macro-user-callerid:7] Set("DAHDI/7-1", "AMPUSERCIDNAME=") in new stack -- Executing [s@macro-user-callerid:8] GotoIf("DAHDI/7-1", "1?report") in new stack -- Goto (macro-user-callerid,s,15) -- Executing [s@macro-user-callerid:15] GotoIf("DAHDI/7-1", "1?continue") in new stack -- Goto (macro-user-callerid,s,28) -- Executing [s@macro-user-callerid:28] Set("DAHDI/7-1", "CALLERID(number)=MYCUSTOMCID") in new stack -- Executing [s@macro-user-callerid:29] Set("DAHDI/7-1", "CALLERID(name)=112") in new stack -- Executing [s@macro-user-callerid:30] Set("DAHDI/7-1", "CDR(cnum)=MYCUSTOMCID") in new stack -- Executing [s@macro-user-callerid:31] Set("DAHDI/7-1", "CDR(cnam)=112") in new stack -- Executing [s@macro-user-callerid:32] Set("DAHDI/7-1", "CHANNEL(language)=en") in new stack -- Executing [MYCUSTOMCID@from-internal:2] Set("DAHDI/7-1", "MOHCLASS=default") in new stack -- Executing [MYCUSTOMCID@from-internal:3] Set("DAHDI/7-1", "_NODEST=") in new stack -- Executing [MYCUSTOMCID@from-internal:4] Gosub("DAHDI/7-1", "sub-record-check,s,1(out,MYCUSTOMCID,)") in new stack -- Executing [s@sub-record-check:1] Set("DAHDI/7-1", "REC_POLICY_MODE_SAVE=") in new stack -- Executing [s@sub-record-check:2] GotoIf("DAHDI/7-1", "1?check") in new stack -- Goto (sub-record-check,s,7) -- Executing [s@sub-record-check:7] Set("DAHDI/7-1", "__MON_FMT=wav") in new stack -- Executing [s@sub-record-check:8] GotoIf("DAHDI/7-1", "1?next") in new stack -- Goto (sub-record-check,s,11) -- Executing [s@sub-record-check:11] ExecIf("DAHDI/7-1", "0?Return()") in new stack -- Executing [s@sub-record-check:12] ExecIf("DAHDI/7-1", "0?Set(__REC_POLICY_MODE=)") in new stack -- Executing [s@sub-record-check:13] GotoIf("DAHDI/7-1", "0?out,1") in new stack -- Executing [s@sub-record-check:14] Set("DAHDI/7-1", "__REC_STATUS=INITIALIZED") in new stack -- Executing [s@sub-record-check:15] Set("DAHDI/7-1", "NOW=1400265903") in new stack -- Executing [s@sub-record-check:16] Set("DAHDI/7-1", "__DAY=16") in new stack -- Executing [s@sub-record-check:17] Set("DAHDI/7-1", "__MONTH=05") in new stack -- Executing [s@sub-record-check:18] Set("DAHDI/7-1", "__YEAR=2014") in new stack -- Executing [s@sub-record-check:19] Set("DAHDI/7-1", "__TIMESTR=20140516-204503") in new stack -- Executing [s@sub-record-check:21] Set("DAHDI/7-1", "__CALLFILENAME=out-MYCUSTOMCID-MYCUSTOMCID-20140516-204503-1400265900.0") in new stack -- Executing [s@sub-record-check:22] Goto("DAHDI/7-1", "out,1") in new stack -- Goto (sub-record-check,out,1) -- Executing [out@sub-record-check:1] ExecIf("DAHDI/7-1", "1?Set(__REC_POLICY_MODE=)") in new stack -- Executing [out@sub-record-check:2] GosubIf("DAHDI/7-1", "0?record,1(exten,MYCUSTOMCID,MYCUSTOMCID)") in new stack -- Executing [out@sub-record-check:3] Return("DAHDI/7-1", "") in new stack -- Executing [MYCUSTOMCID@from-internal:5] Macro("DAHDI/7-1", "dialout-trunk,2,MYCUSTOMCID,,off") in new stack -- Executing [s@macro-dialout-trunk:1] Set("DAHDI/7-1", "DIAL_TRUNK=2") in new stack -- Executing [s@macro-dialout-trunk:2] GosubIf("DAHDI/7-1", "0?sub-pincheck,s,1()") in new stack -- Executing [s@macro-dialout-trunk:3] GotoIf("DAHDI/7-1", "0?disabletrunk,1") in new stack -- Executing [s@macro-dialout-trunk:4] Set("DAHDI/7-1", "DIAL_NUMBER=MYCUSTOMCID") in new stack -- Executing [s@macro-dialout-trunk:5] Set("DAHDI/7-1", "DIAL_TRUNK_OPTIONS=Ttr") in new stack -- Executing [s@macro-dialout-trunk:6] Set("DAHDI/7-1", "OUTBOUND_GROUP=OUT_2") in new stack -- Executing [s@macro-dialout-trunk:7] GotoIf("DAHDI/7-1", "1?nomax") in new stack -- Goto (macro-dialout-trunk,s,9) -- Executing [s@macro-dialout-trunk:9] GotoIf("DAHDI/7-1", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:10] Set("DAHDI/7-1", "DIAL_TRUNK_OPTIONS=Tt") in new stack -- Executing [s@macro-dialout-trunk:11] Macro("DAHDI/7-1", "outbound-callerid,2") in new stack -- Executing [s@macro-outbound-callerid:1] ExecIf("DAHDI/7-1", "0?Set(CALLERPRES()=)") in new stack -- Executing [s@macro-outbound-callerid:2] ExecIf("DAHDI/7-1", "0?Set(REALCALLERIDNUM=MYCUSTOMCID)") in new stack -- Executing [s@macro-outbound-callerid:3] GotoIf("DAHDI/7-1", "1?normcid") in new stack -- Goto (macro-outbound-callerid,s,6) -- Executing [s@macro-outbound-callerid:6] Set("DAHDI/7-1", "USEROUTCID=") in new stack -- Executing [s@macro-outbound-callerid:7] Set("DAHDI/7-1", "EMERGENCYCID=") in new stack -- Executing [s@macro-outbound-callerid:8] Set("DAHDI/7-1", "TRUNKOUTCID=MYCUSTOMCID") in new stack -- Executing [s@macro-outbound-callerid:9] GotoIf("DAHDI/7-1", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,14) -- Executing [s@macro-outbound-callerid:14] ExecIf("DAHDI/7-1", "1?Set(CALLERID(all)=MYCUSTOMCID)") in new stack -- Executing [s@macro-outbound-callerid:15] ExecIf("DAHDI/7-1", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:16] ExecIf("DAHDI/7-1", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:17] ExecIf("DAHDI/7-1", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:18] Set("DAHDI/7-1", "CDR(outbound_cnum)=MYCUSTOMCID") in new stack -- Executing [s@macro-outbound-callerid:19] Set("DAHDI/7-1", "CDR(outbound_cnam)=") in new stack -- Executing [s@macro-dialout-trunk:12] GosubIf("DAHDI/7-1", "0?sub-flp-2,s,1()") in new stack -- Executing [s@macro-dialout-trunk:13] Set("DAHDI/7-1", "OUTNUM=MYCUSTOMCID") in new stack -- Executing [s@macro-dialout-trunk:14] Set("DAHDI/7-1", "custom=SIP/sipkor") in new stack -- Executing [s@macro-dialout-trunk:15] ExecIf("DAHDI/7-1", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack -- Executing [s@macro-dialout-trunk:16] ExecIf("DAHDI/7-1", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack -- Executing [s@macro-dialout-trunk:17] Macro("DAHDI/7-1", "dialout-trunk-predial-hook,") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("DAHDI/7-1", "") in new stack -- Executing [s@macro-dialout-trunk:18] GotoIf("DAHDI/7-1", "0?bypass,1") in new stack -- Executing [s@macro-dialout-trunk:19] ExecIf("DAHDI/7-1", "0?Set(CONNECTEDLINE(num,i)=MYCUSTOMCID)") in new stack -- Executing [s@macro-dialout-trunk:20] ExecIf("DAHDI/7-1", "0?Set(CONNECTEDLINE(name,i)=CID:MYCUSTOMCID)") in new stack -- Executing [s@macro-dialout-trunk:21] GotoIf("DAHDI/7-1", "0?customtrunk") in new stack -- Executing [s@macro-dialout-trunk:22] Dial("DAHDI/7-1", "SIP/sipkor/MYCUSTOMCID,300,Tt") in new stack == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Called SIP/sipkor/MYCUSTOMCID -- SIP/sipkor-00000000 is making progress passing it to DAHDI/7-1 -- SIP/sipkor-00000000 answered DAHDI/7-1 -- Executing [h@macro-dialout-trunk:1] Macro("DAHDI/7-1", "hangupcall,") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/7-1", "1?theend") in new stack -- Goto (macro-hangupcall,s,3) -- Executing [s@macro-hangupcall:3] ExecIf("DAHDI/7-1", "0?Set(CDR(recordingfile)=)") in new stack -- Executing [s@macro-hangupcall:4] Hangup("DAHDI/7-1", "") in new stack == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'DAHDI/7-1' in macro 'hangupcall' == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'DAHDI/7-1' == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'DAHDI/7-1' in macro 'dialout-trunk' == Spawn extension (from-internal, MYCUSTOMCID, 5) exited non-zero on 'DAHDI/7-1' -- Hanging up on 'DAHDI/7-1' -- Hungup 'DAHDI/7-1'
— Reply to this email directly or view it on GitHub.
To be sure that I understand everything:
I can make calls from SugarCRM and it works but in SugarCRM section activities -> calls are labeled as inbound and no popup.
As I understand this is software problem and my settings are fine?