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

Record not working on followme

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: None
    • Component/s: Follow Me
    • Labels:
    • Asterisk Version:
      1.4.21.2

      Description

      Call recording does not work on a follow-me number. Mixmonitor does not start. Here is a trace from extension 503 calling extension 500, which is set to call 7195676742 (ring time and strategy don't make a difference). The problem seems to be in [ext-findmefollow]:

      [ext-findmefollow]:
      exten => 500,n,Macro(record-enable,${DB(AMPUSER/500/followme/grplist)},${RecordMethod})

      which, at runtime, becomes:
      -- Executing [500@from-internal:13] Macro("SIP/503-0910da00", "record-enable|7195676742#|Group") in new stack

      yielding the error:
      func_db.c: DB: AMPUSER/7195676742#/recording not found in database.

      And so recording is not performed, even though it is enabled on the extension.

      I don't see any way to override this behavior. The only workaround is to add the follow-me numbers to the database:
      database put AMPUSER 7195676742#/recording out=Always

      {noformat}
      – Executing [500@from-internal:1] GotoIf("SIP/503-0910da00", "0?ext-local|500|1") in new stack
      – Executing [500@from-internal:2] Macro("SIP/503-0910da00", "user-callerid|") in new stack
      – Executing [s@macro-user-callerid:1] Set("SIP/503-0910da00", "AMPUSER=503") in new stack
      – Executing [s@macro-user-callerid:2] GotoIf("SIP/503-0910da00", "0?report") in new stack
      – Executing [s@macro-user-callerid:3] ExecIf("SIP/503-0910da00", "1|Set|REALCALLERIDNUM=503") in new stack
      – Executing [s@macro-user-callerid:4] Set("SIP/503-0910da00", "AMPUSER=503") in new stack
      – Executing [s@macro-user-callerid:5] Set("SIP/503-0910da00", "AMPUSERCIDNAME=KimPSTN-in") in new stack
      – Executing [s@macro-user-callerid:6] GotoIf("SIP/503-0910da00", "0?report") in new stack
      – Executing [s@macro-user-callerid:7] Set("SIP/503-0910da00", "AMPUSERCID=503") in new stack
      – Executing [s@macro-user-callerid:8] Set("SIP/503-0910da00", "CALLERID(all)="KimPSTN-in" <503>") in new stack
      – Executing [s@macro-user-callerid:9] ExecIf("SIP/503-0910da00", "0|Set|CHANNEL(language)=") in new stack
      – Executing [s@macro-user-callerid:10] GotoIf("SIP/503-0910da00", "0?continue") in new stack
      – Executing [s@macro-user-callerid:11] Set("SIP/503-0910da00", "__TTL=64") in new stack
      – Executing [s@macro-user-callerid:12] GotoIf("SIP/503-0910da00", "1?continue") in new stack
      – Goto (macro-user-callerid,s,19)
      – Executing [s@macro-user-callerid:19] NoOp("SIP/503-0910da00", "Using CallerID "KimPSTN-in" <503>") in new stack
      – Executing [500@from-internal:3] GotoIf("SIP/503-0910da00", "1?skipdb") in new stack
      – Goto (from-internal,500,5)
      – Executing [500@from-internal:5] Set("SIP/503-0910da00", "__NODEST=") in new stack
      – Executing [500@from-internal:6] Set("SIP/503-0910da00", "__BLKVM_OVERRIDE=BLKVM/500/SIP/503-0910da00") in new stack
      – Executing [500@from-internal:7] Set("SIP/503-0910da00", "__BLKVM_BASE=500") in new stack
      – Executing [500@from-internal:8] Set("SIP/503-0910da00", "DB(BLKVM/500/SIP/503-0910da00)=TRUE") in new stack
      – Executing [500@from-internal:9] Set("SIP/503-0910da00", "RRNODEST=") in new stack
      – Executing [500@from-internal:10] Set("SIP/503-0910da00", "__NODEST=500") in new stack
      – Executing [500@from-internal:11] GosubIf("SIP/503-0910da00", "0?sub-fmsetcid|s|1") in new stack
      – Executing [500@from-internal:12] Set("SIP/503-0910da00", "RecordMethod=Group") in new stack
      – Executing [500@from-internal:13] Macro("SIP/503-0910da00", "record-enable|7195676742#|Group") in new stack
      – Executing [s@macro-record-enable:1] GotoIf("SIP/503-0910da00", "1?check") in new stack
      – Goto (macro-record-enable,s,4)
      – Executing [s@macro-record-enable:4] ExecIf("SIP/503-0910da00", "0|MacroExit|") in new stack
      – Executing [s@macro-record-enable:5] GotoIf("SIP/503-0910da00", "1?Group:OUT") in new stack
      – Goto (macro-record-enable,s,6)
      – Executing [s@macro-record-enable:6] Set("SIP/503-0910da00", "LOOPCNT=1") in new stack
      – Executing [s@macro-record-enable:7] Set("SIP/503-0910da00", "ITER=1") in new stack
      – Executing [s@macro-record-enable:8] GotoIf("SIP/503-0910da00", "1?continue") in new stack
      – Goto (macro-record-enable,s,13)
      – Executing [s@macro-record-enable:13] Set("SIP/503-0910da00", "ITER=2") in new stack
      – Executing [s@macro-record-enable:14] GotoIf("SIP/503-0910da00", "0?begin") in new stack
      – Executing [s@macro-record-enable:15] GotoIf("SIP/503-0910da00", "0?IN") in new stack
      – Executing [s@macro-record-enable:16] ExecIf("SIP/503-0910da00", "1|MacroExit|") in new stack
      – Executing [500@from-internal:14] GotoIf("SIP/503-0910da00", "1 ?skipsimple") in new stack
      – Goto (from-internal,500,16)
      – Executing [500@from-internal:16] Set("SIP/503-0910da00", "RingGroupMethod=firstnotonphone") in new stack
      – Executing [500@from-internal:17] Set("SIP/503-0910da00", "_FMGRP=500") in new stack
      – Executing [500@from-internal:18] GotoIf("SIP/503-0910da00", "0?doconfirm") in new stack
      – Executing [500@from-internal:19] Macro("SIP/503-0910da00", "dial|20|tr|7195676742#") in new stack
      – Executing [s@macro-dial:1] GotoIf("SIP/503-0910da00", "1?dial") in new stack
      – Goto (macro-dial,s,3)
      – Executing [s@macro-dial:3] AGI("SIP/503-0910da00", "dialparties.agi") in new stack
      – Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
      dialparties.agi: Starting New Dialparties.agi
      == Parsing '/etc/asterisk/manager.conf': Found
      == Parsing '/etc/asterisk/manager_additional.conf': Found
      == Parsing '/etc/asterisk/manager_custom.conf': Found
      == Manager 'admin' logged on from 127.0.0.1
      dialparties.agi: Caller ID name is 'KimPSTN-in' number is '503'
      dialparties.agi: Methodology of ring is 'firstnotonphone'
      – dialparties.agi: Added extension 7195676742# to extension map
      – dialparties.agi: Extension 7195676742# cf is disabled
      – dialparties.agi: Filtered ARG3: 7195676742
      == Manager 'admin' logged off from 127.0.0.1
      – AGI Script dialparties.agi completed, returning 0
      – Executing [s@macro-dial:20] NoOp("SIP/503-0910da00", "Returned from dialparties with hunt groups to dial ") in new stack
      – Executing [s@macro-dial:21] Set("SIP/503-0910da00", "HuntLoop=0") in new stack
      – Executing [s@macro-dial:22] GotoIf("SIP/503-0910da00", "1?a30") in new stack
      – Goto (macro-dial,s,26)
      – Executing [s@macro-dial:26] Set("SIP/503-0910da00", "HuntMember=HuntMember0") in new stack
      – Executing [s@macro-dial:27] GotoIf("SIP/503-0910da00", "1?a32:a35") in new stack
      – Goto (macro-dial,s,28)
      – Executing [s@macro-dial:28] Set("SIP/503-0910da00", "CT_EXTEN=7195676742") in new stack
      – Executing [s@macro-dial:29] Set("SIP/503-0910da00", "DB(CALLTRACE/7195676742)=503") in new stack
      – Executing [s@macro-dial:30] Goto("SIP/503-0910da00", "s|a42") in new stack
      – Goto (macro-dial,s,38)
      – Executing [s@macro-dial:38] Dial("SIP/503-0910da00", "Local/7195676742@from-internal/n|20|trM(auto-blkvm)") in new stack
      – Called 7195676742@from-internal/n
      – Executing [7195676742@from-internal:1] Macro("Local/7195676742@from-internal-f202,2", "user-callerid|SKIPTTL|") in new stack
      – Executing [s@macro-user-callerid:1] Set("Local/7195676742@from-internal-f202,2", "AMPUSER=503") in new stack
      – Executing [s@macro-user-callerid:2] GotoIf("Local/7195676742@from-internal-f202,2", "1?report") in new stack
      – Goto (macro-user-callerid,s,10)
      – Executing [s@macro-user-callerid:10] GotoIf("Local/7195676742@from-internal-f202,2", "1?continue") in new stack
      – Goto (macro-user-callerid,s,19)
      – Executing [s@macro-user-callerid:19] NoOp("Local/7195676742@from-internal-f202,2", "Using CallerID "KimPSTN-in" <503>") in new stack
      – Executing [7195676742@from-internal:2] ExecIf("Local/7195676742@from-internal-f202,2", "0|Set|TRUNKCIDOVERRIDE="FlintRiver.com" <2147750004>") in new stack
      – Executing [7195676742@from-internal:3] Set("Local/7195676742@from-internal-f202,2", "_NODEST=") in new stack
      – Executing [7195676742@from-internal:4] Macro("Local/7195676742@from-internal-f202,2", "record-enable|503|OUT|") in new stack
      – Executing [s@macro-record-enable:1] GotoIf("Local/7195676742@from-internal-f202,2", "1?check") in new stack
      – Goto (macro-record-enable,s,4)
      – Executing [s@macro-record-enable:4] ExecIf("Local/7195676742@from-internal-f202,2", "0|MacroExit|") in new stack
      – Executing [s@macro-record-enable:5] GotoIf("Local/7195676742@from-internal-f202,2", "0?Group:OUT") in new stack
      – Goto (macro-record-enable,s,15)
      – Executing [s@macro-record-enable:15] GotoIf("Local/7195676742@from-internal-f202,2", "0?IN") in new stack
      – Executing [s@macro-record-enable:16] ExecIf("Local/7195676742@from-internal-f202,2", "1|MacroExit|") in new stack
      – Executing [7195676742@from-internal:5] Macro("Local/7195676742@from-internal-f202,2", "dialout-trunk|6|7195676742||") in new stack
      – Executing [s@macro-dialout-trunk:1] Set("Local/7195676742@from-internal-f202,2", "DIAL_TRUNK=6") in new stack
      – Executing [s@macro-dialout-trunk:2] GosubIf("Local/7195676742@from-internal-f202,2", "0?sub-pincheck|s|1") in new stack
      – Executing [s@macro-dialout-trunk:3] GotoIf("Local/7195676742@from-internal-f202,2", "0?disabletrunk|1") in new stack
      – Executing [s@macro-dialout-trunk:4] Set("Local/7195676742@from-internal-f202,2", "DIAL_NUMBER=7195676742") in new stack
      – Executing [s@macro-dialout-trunk:5] Set("Local/7195676742@from-internal-f202,2", "DIAL_TRUNK_OPTIONS=tr") in new stack
      – Executing [s@macro-dialout-trunk:6] Set("Local/7195676742@from-internal-f202,2", "OUTBOUND_GROUP=OUT_6") in new stack
      – Executing [s@macro-dialout-trunk:7] GotoIf("Local/7195676742@from-internal-f202,2", "1?nomax") in new stack
      – Goto (macro-dialout-trunk,s,9)
      – Executing [s@macro-dialout-trunk:9] GotoIf("Local/7195676742@from-internal-f202,2", "0?skipoutcid") in new stack
      – Executing [s@macro-dialout-trunk:10] Set("Local/7195676742@from-internal-f202,2", "DIAL_TRUNK_OPTIONS=") in new stack
      – Executing [s@macro-dialout-trunk:11] Macro("Local/7195676742@from-internal-f202,2", "outbound-callerid|6") in new stack
      – Executing [s@macro-outbound-callerid:1] ExecIf("Local/7195676742@from-internal-f202,2", "0|SetCallerPres|") in new stack
      – Executing [s@macro-outbound-callerid:2] ExecIf("Local/7195676742@from-internal-f202,2", "1|Set|REALCALLERIDNUM=503") in new stack
      – Executing [s@macro-outbound-callerid:3] GotoIf("Local/7195676742@from-internal-f202,2", "0?normcid") in new stack
      – Executing [s@macro-outbound-callerid:4] Set("Local/7195676742@from-internal-f202,2", "USEROUTCID=503") in new stack
      – Executing [s@macro-outbound-callerid:5] GotoIf("Local/7195676742@from-internal-f202,2", "0?bypass") in new stack
      – Executing [s@macro-outbound-callerid:6] Set("Local/7195676742@from-internal-f202,2", "USEROUTCID=") in new stack
      – Executing [s@macro-outbound-callerid:7] Set("Local/7195676742@from-internal-f202,2", "EMERGENCYCID=") in new stack
      – Executing [s@macro-outbound-callerid:8] Set("Local/7195676742@from-internal-f202,2", "TRUNKOUTCID=") in new stack
      – Executing [s@macro-outbound-callerid:9] GotoIf("Local/7195676742@from-internal-f202,2", "1?trunkcid") in new stack
      – Goto (macro-outbound-callerid,s,12)
      – Executing [s@macro-outbound-callerid:12] ExecIf("Local/7195676742@from-internal-f202,2", "0|Set|CALLERID(all)=") in new stack
      – Executing [s@macro-outbound-callerid:13] ExecIf("Local/7195676742@from-internal-f202,2", "0|Set|CALLERID(all)=") in new stack
      – Executing [s@macro-outbound-callerid:14] ExecIf("Local/7195676742@from-internal-f202,2", "0|Set|CALLERID(all)=") in new stack
      – Executing [s@macro-outbound-callerid:15] ExecIf("Local/7195676742@from-internal-f202,2", "0|SetCallerPres|prohib_passed_screen") in new stack
      – Executing [s@macro-dialout-trunk:12] ExecIf("Local/7195676742@from-internal-f202,2", "1|AGI|fixlocalprefix") in new stack
      – Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
      == fixlocalprefix: Dialpattern 1+NXXNXXXXXX matched. 7195676742 -> 17195676742
      – AGI Script fixlocalprefix completed, returning 0
      – Executing [s@macro-dialout-trunk:13] Set("Local/7195676742@from-internal-f202,2", "OUTNUM=17195676742") in new stack
      – Executing [s@macro-dialout-trunk:14] Set("Local/7195676742@from-internal-f202,2", "custom=IAX2/teliax-out") in new stack
      – Executing [s@macro-dialout-trunk:15] ExecIf("Local/7195676742@from-internal-f202,2", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
      – Executing [s@macro-dialout-trunk:16] Macro("Local/7195676742@from-internal-f202,2", "dialout-trunk-predial-hook|") in new stack
      – Executing [s@macro-dialout-trunk-predial-hook:1] NoOp("Local/7195676742@from-internal-f202,2", "macro-dialout-trunk-predial-hook]") in new stack
      – Executing [s@macro-dialout-trunk-predial-hook:2] GotoIf("Local/7195676742@from-internal-f202,2", "1?setuf") in new stack
      – Goto (macro-dialout-trunk-predial-hook,s,4)
      – Executing [s@macro-dialout-trunk-predial-hook:4] Set("Local/7195676742@from-internal-f202,2", "CDR(userfield)=OUT503") in new stack
      – Executing [s@macro-dialout-trunk:17] GotoIf("Local/7195676742@from-internal-f202,2", "0?bypass|1") in new stack
      – Executing [s@macro-dialout-trunk:18] GotoIf("Local/7195676742@from-internal-f202,2", "0?customtrunk") in new stack
      – Executing [s@macro-dialout-trunk:19] Dial("Local/7195676742@from-internal-f202,2", "IAX2/teliax-out/17195676742|300|") in new stack
      – Called teliax-out/17195676742
      – Call accepted by 63.211.239.14 (format ulaw)
      – Format for call is ulaw
      – IAX2/teliax-out-12206 is ringing
      – Local/7195676742@from-internal-f202,1 is ringing
      – IAX2/teliax-out-12206 is making progress passing it to Local/7195676742@from-internal-f202,2
      – Local/7195676742@from-internal-f202,1 is making progress passing it to SIP/503-0910da00
      == Spawn extension (macro-dial, s, 38) exited non-zero on 'SIP/503-0910da00' in macro 'dial'
      == Spawn extension (macro-dial, s, 38) exited non-zero on 'SIP/503-0910da00'
      – Executing [h@macro-dial:1] Macro("SIP/503-0910da00", "hangupcall") in new stack
      – Executing [s@macro-hangupcall:1] GotoIf("SIP/503-0910da00", "1?skiprg") in new stack
      – Goto (macro-hangupcall,s,4)
      – Executing [s@macro-hangupcall:4] GotoIf("SIP/503-0910da00", "0?skipblkvm") in new stack
      – Executing [s@macro-hangupcall:5] NoOp("SIP/503-0910da00", "Cleaning Up Block VM Flag: BLKVM/500/SIP/503-0910da00") in new stack
      – Executing [s@macro-hangupcall:6] DBdel("SIP/503-0910da00", "BLKVM/500/SIP/503-0910da00") in new stack
      – DBdel: family=BLKVM, key=500/SIP/503-0910da00
      – Hungup 'IAX2/teliax-out-12206'
      == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'Local/7195676742@from-internal-f202,2' in macro 'dialout-trunk'
      == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'Local/7195676742@from-internal-f202,2'
      – Executing [h@macro-dialout-trunk:1] Macro("Local/7195676742@from-internal-f202,2", "hangupcall|") in new stack
      – Executing [s@macro-hangupcall:1] GotoIf("Local/7195676742@from-internal-f202,2", "1?skiprg") in new stack
      – Goto (macro-hangupcall,s,4)
      – Executing [s@macro-hangupcall:4] GotoIf("Local/7195676742@from-internal-f202,2", "1?skipblkvm") in new stack
      – Goto (macro-hangupcall,s,7)
      – Executing [s@macro-hangupcall:7] GotoIf("Local/7195676742@from-internal-f202,2", "1?theend") in new stack
      – Goto (macro-hangupcall,s,9)
      – Executing [s@macro-hangupcall:9] Hangup("Local/7195676742@from-internal-f202,2", "") in new stack
      == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'Local/7195676742@from-internal-f202,2' in macro 'hangupcall'
      == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'Local/7195676742@from-internal-f202,2'
      – Executing [s@macro-hangupcall:7] GotoIf("SIP/503-0910da00", "1?theend") in new stack
      – Goto (macro-hangupcall,s,9)
      – Executing [s@macro-hangupcall:9] Hangup("SIP/503-0910da00", "") in new stack
      == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/503-0910da00' in macro 'hangupcall'
      == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/503-0910da00'{noformat}

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                plindheimer PL
                Reporter:
                kim98074 kim98074
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

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