Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-8885

Adding very simple script into [from-pstn-custom] causes the call recording function stop working.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Rejected
    • Affects Version/s: 2.11, 12
    • Fix Version/s: None
    • Component/s: Call Recording
    • Labels:
    • ToDo:
    • Distro Version:
      V2 & V12
    • Distro:
      FreePBX Distro

      Description

      Adding very simple script into [from-pstn-custom] causes the call recording function stop working.
      Here is what I did
      Opening file extensions_custom.conf then add very simple script
      [from-pstn-custom]
      exten => _X.,1,NoOp(My Script Beginning)
      same => n,Set(MAXDEFAULT=10)

      ;End my script

      From freepbx guid go to >Applications>Extensions-> picked my ext#508
      Then turn “Inbound External Calls” to Always
      Then test to call my extension. The DID number: 12892018692 number come from anonymous will ring my ext#508 directly
      All External Incoming calls will not be recorded until I remove the 2 line script from [from-pstn-custom]

      Look at the call log I attached below. I found my script is included into the call process. I also found the problem, the Recording option switched to dontcare.

      I tested on FreePBX 12.0.9 and FreePBX 2.11 they both have the same problem.

      – Executing [12892018692@from-sip-external:1] NoOp("SIP/209.48.10.129-00000065", "Received incoming SIP connection from unknown peer to 12892018692") in new stack
      – Executing [12892018692@from-sip-external:2] Set("SIP/209.48.10.129-00000065", "DID=12892018692") in new stack
      – Executing [12892018692@from-sip-external:3] Goto("SIP/209.48.10.129-00000065", "s,1") in new stack
      – Goto (from-sip-external,s,1)
      – Executing [s@from-sip-external:1] GotoIf("SIP/209.48.10.129-00000065", "1?checklang:noanonymous") in new stack
      – Goto (from-sip-external,s,2)
      – Executing [s@from-sip-external:2] GotoIf("SIP/209.48.10.129-00000065", "0?setlanguage:from-trunk,12892018692,1") in new stack
      – Goto (from-trunk,12892018692,1)
      – Executing [12892018692@from-trunk:1] NoOp("SIP/209.48.10.129-00000065", "My Script Bigins") in new stack
      – Executing [12892018692@from-trunk:2] Set("SIP/209.48.10.129-00000065", "MAXDEFAULT=10") in new stack
      – Executing [12892018692@from-trunk:3] Set("SIP/209.48.10.129-00000065", "CIDSFSCHEME=YmFzZV9EZWZhdWx0") in new stack
      – Executing [12892018692@from-trunk:4] AGI("SIP/209.48.10.129-00000065", "/var/www/html/admin/modules/superfecta/agi/superfecta.agi") in new stack
      – Launched AGI Script /var/www/html/admin/modules/superfecta/agi/superfecta.agi
      /var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta is Answering the Channel
      /var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: Scheme is Default
      /var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: The DID passed from Asterisk is: 12892018692
      /var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: The number passed from Asterisk is: 16474772510
      /var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: The CID name passed from Asterisk is: unknown
      /var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: Executing Scheme..
      /var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: CID Determined to be: 'GRS Research Ltd.'
      /var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: Attempting to set lookupcid
      /var/www/html/admin/modules/superfecta/agi/superfecta.agi: CID Superfecta: Success!
      – <SIP/209.48.10.129-00000065>AGI Script /var/www/html/admin/modules/superfecta/agi/superfecta.agi completed, returning 0
      – Executing [12892018692@from-trunk:5] Set("SIP/209.48.10.129-00000065", "CALLERID(name)=GRS Research Ltd.") in new stack
      – Executing [12892018692@from-trunk:6] Set("SIP/209.48.10.129-00000065", "CDR(did)=") in new stack
      – Executing [12892018692@from-trunk:7] ExecIf("SIP/209.48.10.129-00000065", "0 ?Set(CALLERID(name)=16474772510)") in new stack
      – Executing [12892018692@from-trunk:8] Set("SIP/209.48.10.129-00000065", "CHANNEL(musicclass)=default") in new stack
      – Executing [12892018692@from-trunk:9] Set("SIP/209.48.10.129-00000065", "__MOHCLASS=default") in new stack
      – Executing [12892018692@from-trunk:10] Set("SIP/209.48.10.129-00000065", "__CALLINGPRES_SV=allowed_not_screened") in new stack
      – Executing [12892018692@from-trunk:11] Set("SIP/209.48.10.129-00000065", "CALLERPRES()=allowed_not_screened") in new stack
      – Executing [12892018692@from-trunk:12] Goto("SIP/209.48.10.129-00000065", "from-did-direct,508,1") in new stack
      – Goto (from-did-direct,508,1)
      – Executing [508@from-did-direct:1] GotoIf("SIP/209.48.10.129-00000065", "1?ext-local,508,1") in new stack
      – Goto (ext-local,508,1)
      – Executing [508@ext-local:1] Set("SIP/209.48.10.129-00000065", "__RINGTIMER=14") in new stack
      – Executing [508@ext-local:2] Macro("SIP/209.48.10.129-00000065", "exten-vm,508,508,0,0,0") in new stack
      – Executing [s@macro-exten-vm:1] Macro("SIP/209.48.10.129-00000065", "user-callerid,") in new stack
      – Executing [s@macro-user-callerid:1] Set("SIP/209.48.10.129-00000065", "TOUCH_MONITOR=1425935283.172") in new stack
      – Executing [s@macro-user-callerid:2] Set("SIP/209.48.10.129-00000065", "AMPUSER=16474772510") in new stack
      – Executing [s@macro-user-callerid:3] GotoIf("SIP/209.48.10.129-00000065", "0?report") in new stack
      – Executing [s@macro-user-callerid:4] ExecIf("SIP/209.48.10.129-00000065", "1?Set(REALCALLERIDNUM=16474772510)") in new stack
      – Executing [s@macro-user-callerid:5] Set("SIP/209.48.10.129-00000065", "AMPUSER=") in new stack
      – Executing [s@macro-user-callerid:6] GotoIf("SIP/209.48.10.129-00000065", "0?limit") in new stack
      – Executing [s@macro-user-callerid:7] Set("SIP/209.48.10.129-00000065", "AMPUSERCIDNAME=") in new stack
      – Executing [s@macro-user-callerid:8] GotoIf("SIP/209.48.10.129-00000065", "1?report") in new stack
      – Goto (macro-user-callerid,s,16)
      – Executing [s@macro-user-callerid:16] GotoIf("SIP/209.48.10.129-00000065", "0?continue") in new stack
      – Executing [s@macro-user-callerid:17] Set("SIP/209.48.10.129-00000065", "__TTL=64") in new stack
      – Executing [s@macro-user-callerid:18] GotoIf("SIP/209.48.10.129-00000065", "1?continue") in new stack
      – Goto (macro-user-callerid,s,29)
      – Executing [s@macro-user-callerid:29] Set("SIP/209.48.10.129-00000065", "CALLERID(number)=16474772510") in new stack
      – Executing [s@macro-user-callerid:30] Set("SIP/209.48.10.129-00000065", "CALLERID(name)=GRS Research Ltd.") in new stack
      – Executing [s@macro-user-callerid:31] Set("SIP/209.48.10.129-00000065", "CDR(cnum)=16474772510") in new stack
      – Executing [s@macro-user-callerid:32] Set("SIP/209.48.10.129-00000065", "CDR(cnam)=GRS Research Ltd.") in new stack
      – Executing [s@macro-user-callerid:33] Set("SIP/209.48.10.129-00000065", "CHANNEL(language)=en") in new stack
      – Executing [s@macro-exten-vm:2] Set("SIP/209.48.10.129-00000065", "RingGroupMethod=none") in new stack
      – Executing [s@macro-exten-vm:3] Set("SIP/209.48.10.129-00000065", "__EXTTOCALL=508") in new stack
      – Executing [s@macro-exten-vm:4] Set("SIP/209.48.10.129-00000065", "__PICKUPMARK=508") in new stack
      – Executing [s@macro-exten-vm:5] Set("SIP/209.48.10.129-00000065", "RT=14") in new stack
      – Executing [s@macro-exten-vm:6] ExecIf("SIP/209.48.10.129-00000065", "0?Macro(vm,508,DIRECTDIAL,)") in new stack
      – Executing [s@macro-exten-vm:7] ExecIf("SIP/209.48.10.129-00000065", "0?MacroExit()") in new stack
      – Executing [s@macro-exten-vm:8] Gosub("SIP/209.48.10.129-00000065", "sub-record-check,s,1(exten,508,)") in new stack
      – Executing [s@sub-record-check:1] Set("SIP/209.48.10.129-00000065", "REC_POLICY_MODE_SAVE=") in new stack
      – Executing [s@sub-record-check:2] GotoIf("SIP/209.48.10.129-00000065", "1?check") in new stack
      – Goto (sub-record-check,s,7)
      – Executing [s@sub-record-check:7] Set("SIP/209.48.10.129-00000065", "__MON_FMT=wav") in new stack
      – Executing [s@sub-record-check:8] GotoIf("SIP/209.48.10.129-00000065", "1?next") in new stack
      – Goto (sub-record-check,s,11)
      – Executing [s@sub-record-check:11] ExecIf("SIP/209.48.10.129-00000065", "0?Return()") in new stack
      – Executing [s@sub-record-check:12] ExecIf("SIP/209.48.10.129-00000065", "0?Set(__REC_POLICY_MODE=)") in new stack
      – Executing [s@sub-record-check:13] GotoIf("SIP/209.48.10.129-00000065", "0?exten,1") in new stack
      – Executing [s@sub-record-check:14] Set("SIP/209.48.10.129-00000065", "__REC_STATUS=INITIALIZED") in new stack
      – Executing [s@sub-record-check:15] Set("SIP/209.48.10.129-00000065", "NOW=1425935283") in new stack
      – Executing [s@sub-record-check:16] Set("SIP/209.48.10.129-00000065", "__DAY=09") in new stack
      – Executing [s@sub-record-check:17] Set("SIP/209.48.10.129-00000065", "__MONTH=03") in new stack
      – Executing [s@sub-record-check:18] Set("SIP/209.48.10.129-00000065", "__YEAR=2015") in new stack
      – Executing [s@sub-record-check:19] Set("SIP/209.48.10.129-00000065", "__TIMESTR=20150309-170803") in new stack
      – Executing [s@sub-record-check:20] Set("SIP/209.48.10.129-00000065", "__FROMEXTEN=16474772510") in new stack
      – Executing [s@sub-record-check:21] Set("SIP/209.48.10.129-00000065", "__CALLFILENAME=exten-508-16474772510-20150309-170803-1425935283.172") in new stack
      – Executing [s@sub-record-check:22] Goto("SIP/209.48.10.129-00000065", "exten,1") in new stack
      – Goto (sub-record-check,exten,1)
      – Executing [exten@sub-record-check:1] GotoIf("SIP/209.48.10.129-00000065", "0?callee") in new stack
      – Executing [exten@sub-record-check:2] Set("SIP/209.48.10.129-00000065", "__REC_POLICY_MODE=dontcare") in new stack
      – Executing [exten@sub-record-check:3] GotoIf("SIP/209.48.10.129-00000065", "1?caller") in new stack
      – Goto (sub-record-check,exten,10)
      – Executing [exten@sub-record-check:10] Set("SIP/209.48.10.129-00000065", "__REC_POLICY_MODE=") in new stack
      – Executing [exten@sub-record-check:11] GosubIf("SIP/209.48.10.129-00000065", "0?record,1(exten,508,16474772510)") in new stack
      – Executing [exten@sub-record-check:12] Return("SIP/209.48.10.129-00000065", "") in new stack
      – Executing [s@macro-exten-vm:9] GotoIf("SIP/209.48.10.129-00000065", "1?macrodial") in new stack
      – Goto (macro-exten-vm,s,15)
      – Executing [s@macro-exten-vm:15] GosubIf("SIP/209.48.10.129-00000065", "0?clrheader,1()") in new stack
      – Executing [s@macro-exten-vm:16] Macro("SIP/209.48.10.129-00000065", "dial-one,14,Ttr,508") in new stack
      – Executing [s@macro-dial-one:1] Set("SIP/209.48.10.129-00000065", "DEXTEN=508") in new stack
      – Executing [s@macro-dial-one:2] Set("SIP/209.48.10.129-00000065", "DIALSTATUS_CW=") in new stack
      – Executing [s@macro-dial-one:3] GosubIf("SIP/209.48.10.129-00000065", "0?screen,1()") in new stack
      – Executing [s@macro-dial-one:4] GosubIf("SIP/209.48.10.129-00000065", "0?cf,1()") in new stack
      – Executing [s@macro-dial-one:5] GotoIf("SIP/209.48.10.129-00000065", "1?skip1") in new stack
      – Goto (macro-dial-one,s,8)
      – Executing [s@macro-dial-one:8] GotoIf("SIP/209.48.10.129-00000065", "0?nodial") in new stack
      – Executing [s@macro-dial-one:9] GotoIf("SIP/209.48.10.129-00000065", "0?continue") in new stack
      – Executing [s@macro-dial-one:10] Set("SIP/209.48.10.129-00000065", "EXTHASCW=ENABLED") in new stack
      – Executing [s@macro-dial-one:11] GotoIf("SIP/209.48.10.129-00000065", "0?next1:cwinusebusy") in new stack
      – Goto (macro-dial-one,s,23)
      – Executing [s@macro-dial-one:23] GotoIf("SIP/209.48.10.129-00000065", "1?next3:continue") in new stack
      – Goto (macro-dial-one,s,24)
      – Executing [s@macro-dial-one:24] ExecIf("SIP/209.48.10.129-00000065", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
      – Executing [s@macro-dial-one:25] GotoIf("SIP/209.48.10.129-00000065", "0?nodial") in new stack
      – Executing [s@macro-dial-one:26] GosubIf("SIP/209.48.10.129-00000065", "1?dstring,1():dlocal,1()") in new stack
      – Executing [dstring@macro-dial-one:1] Set("SIP/209.48.10.129-00000065", "DSTRING=") in new stack
      – Executing [dstring@macro-dial-one:2] Set("SIP/209.48.10.129-00000065", "DEVICES=508") in new stack
      – Executing [dstring@macro-dial-one:3] ExecIf("SIP/209.48.10.129-00000065", "0?Return()") in new stack
      – Executing [dstring@macro-dial-one:4] ExecIf("SIP/209.48.10.129-00000065", "0?Set(DEVICES=6474771960508)") in new stack
      – Executing [dstring@macro-dial-one:5] Set("SIP/209.48.10.129-00000065", "LOOPCNT=1") in new stack
      – Executing [dstring@macro-dial-one:6] Set("SIP/209.48.10.129-00000065", "ITER=1") in new stack
      – Executing [dstring@macro-dial-one:7] Set("SIP/209.48.10.129-00000065", "THISDIAL=SIP/508") in new stack
      – Executing [dstring@macro-dial-one:8] GosubIf("SIP/209.48.10.129-00000065", "1?zap2dahdi,1()") in new stack
      – Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/209.48.10.129-00000065", "0?Return()") in new stack
      – Executing [zap2dahdi@macro-dial-one:2] Set("SIP/209.48.10.129-00000065", "NEWDIAL=") in new stack
      – Executing [zap2dahdi@macro-dial-one:3] Set("SIP/209.48.10.129-00000065", "LOOPCNT2=1") in new stack
      – Executing [zap2dahdi@macro-dial-one:4] Set("SIP/209.48.10.129-00000065", "ITER2=1") in new stack
      – Executing [zap2dahdi@macro-dial-one:5] Set("SIP/209.48.10.129-00000065", "THISPART2=SIP/508") in new stack
      – Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/209.48.10.129-00000065", "0?Set(THISPART2=DAHDIP/508)") in new stack
      – Executing [zap2dahdi@macro-dial-one:7] Set("SIP/209.48.10.129-00000065", "NEWDIAL=SIP/508&") in new stack
      – Executing [zap2dahdi@macro-dial-one:8] Set("SIP/209.48.10.129-00000065", "ITER2=2") in new stack
      – Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/209.48.10.129-00000065", "0?begin2") in new stack
      – Executing [zap2dahdi@macro-dial-one:10] Set("SIP/209.48.10.129-00000065", "THISDIAL=SIP/508") in new stack
      – Executing [zap2dahdi@macro-dial-one:11] Return("SIP/209.48.10.129-00000065", "") in new stack
      – Executing [dstring@macro-dial-one:9] Set("SIP/209.48.10.129-00000065", "DSTRING=SIP/508&") in new stack
      – Executing [dstring@macro-dial-one:10] Set("SIP/209.48.10.129-00000065", "ITER=2") in new stack
      – Executing [dstring@macro-dial-one:11] GotoIf("SIP/209.48.10.129-00000065", "0?begin") in new stack
      – Executing [dstring@macro-dial-one:12] Set("SIP/209.48.10.129-00000065", "DSTRING=SIP/508") in new stack
      – Executing [dstring@macro-dial-one:13] Return("SIP/209.48.10.129-00000065", "") in new stack
      – Executing [s@macro-dial-one:27] GotoIf("SIP/209.48.10.129-00000065", "0?nodial") in new stack
      – Executing [s@macro-dial-one:28] GotoIf("SIP/209.48.10.129-00000065", "0?skiptrace") in new stack
      – Executing [s@macro-dial-one:29] GosubIf("SIP/209.48.10.129-00000065", "1?ctset,1():ctclear,1()") in new stack
      – Executing [ctset@macro-dial-one:1] Set("SIP/209.48.10.129-00000065", "DB(CALLTRACE/508)=16474772510") in new stack
      – Executing [ctset@macro-dial-one:2] Return("SIP/209.48.10.129-00000065", "") in new stack
      – Executing [s@macro-dial-one:30] Set("SIP/209.48.10.129-00000065", "D_OPTIONS=Ttr") in new stack
      – Executing [s@macro-dial-one:31] ExecIf("SIP/209.48.10.129-00000065", "0?SIPAddHeader(Alert-Info: )") in new stack
      – Executing [s@macro-dial-one:32] ExecIf("SIP/209.48.10.129-00000065", "0?SIPAddHeader()") in new stack
      – Executing [s@macro-dial-one:33] ExecIf("SIP/209.48.10.129-00000065", "1?Set(CHANNEL(musicclass)=default)") in new stack
      – Executing [s@macro-dial-one:34] GosubIf("SIP/209.48.10.129-00000065", "0?qwait,1()") in new stack
      – Executing [s@macro-dial-one:35] Set("SIP/209.48.10.129-00000065", "__CWIGNORE=") in new stack
      – Executing [s@macro-dial-one:36] Set("SIP/209.48.10.129-00000065", "__KEEPCID=TRUE") in new stack
      – Executing [s@macro-dial-one:37] GotoIf("SIP/209.48.10.129-00000065", "0?usegoto,1") in new stack
      – Executing [s@macro-dial-one:38] GotoIf("SIP/209.48.10.129-00000065", "1?godial") in new stack
      – Goto (macro-dial-one,s,43)
      – Executing [s@macro-dial-one:43] Dial("SIP/209.48.10.129-00000065", "SIP/508,14,Ttr") in new stack
      – SIP: Asterisk request to call SIP/508-00000044 (dest:508, timeout: 0)
      – 508: Asterisk request to call SIP/508-00000044
      – SIP: SIP/508-00000044 callInfo:
      – - calledParty: Dan H <508>, valid: TRUE
      – - callingParty: GRS Research Ltd. <16474772510>, valid: TRUE
      – - originalCalledParty: <>, valid: FALSE
      – - originalCallingParty: <>, valid: FALSE
      – - lastRedirectingParty: <>, valid: FALSE
      – - originalCalledPartyRedirectReason: 0, lastRedirectingReason: 0, CallInfo Presentation: ALLOWED

      – Called SIP/508
      – SIP/508-00000044 is ringing

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                xrobau Rob Thomas
                Reporter:
                davidpar david par
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.