citro
[2021-03-18 22:45:51] WARNING[4160][C-00000001]: chan_sip.c:11118 process_sdp_a_audio: Got Opus sprop-maxcapturerate=16000
-- Executing [573505445665@from-internal:1] Macro("SIP/200-00000002", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/200-00000002", "TOUCH_MONITOR=1616107551.2") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/200-00000002", "AMPUSER=200") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/200-00000002", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/200-00000002", "1?Set(REALCALLERIDNUM=200)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/200-00000002", "AMPUSER=200") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/200-00000002", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/200-00000002", "AMPUSERCIDNAME=Camilo") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/200-00000002", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/200-00000002", "AMPUSERCID=200") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/200-00000002", "DIAL_OPTIONS=tr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/200-00000002", "CALLERID(all)="Camilo" <200>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/200-00000002", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/200-00000002", "1?Set(GROUP(concurrency_limit)=200)") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("SIP/200-00000002", "1?Set(CHANNEL(language)=es)") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/200-00000002", "1?continue") in new stack
-- Goto (macro-user-callerid,s,28)
-- Executing [s@macro-user-callerid:28] Set("SIP/200-00000002", "CALLERID(number)=200") in new stack
-- Executing [s@macro-user-callerid:29] Set("SIP/200-00000002", "CALLERID(name)=Camilo") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/200-00000002", "CDR(cnum)=200") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/200-00000002", "CDR(cnam)=Camilo") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/200-00000002", "CHANNEL(language)=es") in new stack
-- Executing [573505445665@from-internal:2] Set("SIP/200-00000002", "MOHCLASS=none") in new stack
-- Executing [573505445665@from-internal:3] ExecIf("SIP/200-00000002", "1?Set(TRUNKCIDOVERRIDE=3505445665)") in new stack
-- Executing [573505445665@from-internal:4] Set("SIP/200-00000002", "_NODEST=") in new stack
-- Executing [573505445665@from-internal:5] Gosub("SIP/200-00000002", "sub-record-check,s,1(out,573505445665,)") in new stack
-- Executing [s@sub-record-check:1] Set("SIP/200-00000002", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("SIP/200-00000002", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("SIP/200-00000002", "MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/200-00000002", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/200-00000002", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/200-00000002", "0?Set(REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/200-00000002", "0?out,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/200-00000002", "REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/200-00000002", "NOW=1616107551") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/200-00000002", "DAY=18") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/200-00000002", "MONTH=03") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/200-00000002", "YEAR=2021") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/200-00000002", "TIMESTR=20210318-224551") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/200-00000002", "FROMEXTEN=200") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/200-00000002", "CALLFILENAME=out-573505445665-200-20210318-224551-1616107551.2") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/200-00000002", "out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] ExecIf("SIP/200-00000002", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
-- Executing [out@sub-record-check:2] GosubIf("SIP/200-00000002", "0?record,1(exten,573505445665,200)") in new stack -- Executing [out@sub-record-check:3] Return("SIP/200-00000002", "") in new stack
-- Executing [573505445665@from-internal:6] Macro("SIP/200-00000002", "dialout-trunk,4,573505445665,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/200-00000002", "DIAL_TRUNK=4") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/200-00000002", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/200-00000002", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/200-00000002", "DIAL_NUMBER=573505445665") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/200-00000002", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/200-00000002", "OUTBOUND_GROUP=OUT_4") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/200-00000002", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/200-00000002", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/200-00000002", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/200-00000002", "DIAL_TRUNK_OPTIONS=T") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/200-00000002", "outbound-callerid,4") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/200-00000002", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/200-00000002", "0?Set(REALCALLERIDNUM=200)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/200-00000002", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/200-00000002", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/200-00000002", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/200-00000002", "TRUNKOUTCID=3505445665") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/200-00000002", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,14)
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/200-00000002", "1?Set(CALLERID(all)=3505445665)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/200-00000002", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/200-00000002", "1?Set(CALLERID(all)=3505445665)") in new stack
-- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/200-00000002", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:18] Set("SIP/200-00000002", "CDR(outbound_cnum)=3505445665") in new stack
-- Executing [s@macro-outbound-callerid:19] Set("SIP/200-00000002", "CDR(outbound_cnam)=") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/200-00000002", "0?sub-flp-4,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/200-00000002", "OUTNUM=573505445665") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/200-00000002", "custom=SIP/telnyx out") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/200-00000002", "1?Set(DIAL_TRUNK_OPTIONS=M(setmusicnone)T)") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/200-00000002", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusicnone)TM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/200-00000002", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/200-00000002", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/200-00000002", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/200-00000002", "1?Set(CONNECTEDLINE(num,i)=573505445665)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/200-00000002", "1?Set(CONNECTEDLINE(name,i)=CID:3505445665)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/200-00000002", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Set("SIP/200-00000002", "DIALSTR=SIP/telnyx out/573505445665}") in new stack -- Executing [s@macro-dialout-trunk:23] GosubIf("SIP/200-00000002", "0?pjsipdial,1()") in new stack
-- Executing [s@macro-dialout-trunk:24] Dial("SIP/200-00000002", "SIP/telnyx out/573505445665},300,M(setmusicnone)T") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/telnyx out/573505445665}
[2021-03-18 22:45:51] WARNING[4160][C-00000001]: chan_sip.c:23345 handle_response_invite: Received response: "Forbidden" from '<sip:3505445665@sip.telnyx.com>;tag=as396c06ac'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:25] NoOp("SIP/200-00000002", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack
-- Executing [s@macro-dialout-trunk:26] GotoIf("SIP/200-00000002", "0?continue,1:s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/200-00000002", "RC=21") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/200-00000002", "21,1") in new stack
-- Goto (macro-dialout-trunk,21,1)
-- Executing [21@macro-dialout-trunk:1] Goto("SIP/200-00000002", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] NoOp("SIP/200-00000002", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:2] Set("SIP/200-00000002", "CALLERID(number)=200") in new stack
-- Executing [573505445665@from-internal:7] Macro("SIP/200-00000002", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("SIP/200-00000002", "") in new stack
-- Executing [s@macro-outisbusy:2] GotoIf("SIP/200-00000002", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("SIP/200-00000002", "0?intracompany,1") in new stack
-- Executing [s@macro-outisbusy:4] GotoIf("SIP/200-00000002", "0?unallocated,1") in new stack
-- Executing [s@macro-outisbusy:5] GotoIf("SIP/200-00000002", "1?unallocated,1") in new stack
-- Goto (macro-outisbusy,unallocated,1)
-- Executing [unallocated@macro-outisbusy:1] Playback("SIP/200-00000002", "you-dialed-wrong-number") in new stack
[2021-03-18 22:45:51] NOTICE[4677][C-00000001]: res_rtp_asterisk.c:4890 ast_rtp_read: Unknown RTP codec 95 received from '186.119.22.212:8000'
-- <SIP/200-00000002> Playing 'you-dialed-wrong-number.gsm' (language 'es')
-- Executing [unallocated@macro-outisbusy:2] Congestion("SIP/200-00000002", "20") in new stack
== Spawn extension (macro-outisbusy, unallocated, 2) exited non-zero on 'SIP/200-00000002' in macro 'outisbusy'
== Spawn extension (from-internal, 573505445665, 7) exited non-zero on 'SIP/200-00000002'
-- Executing [h@from-internal:1] Hangup("SIP/200-00000002", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-00000002'
[2021-03-18 22:45:55] ERROR[4677][C-00000001]: cdr_sqlite3_custom.c:267 write_cdr: attempt to write a readonly database. SQL: INSERT INTO cdr (calldate,clid,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield,test,src,dst) VALUES ('2021-03-18 22:45:51','200','from-internal','SIP/200-00000002','SIP/telnyx out-00000003','Congestion','20','4','4','ANSWERED','DOCUMENTATION','','1616107551.2','','','200','573505445665').
[2021-03-18 22:45:55] ERROR[4677][C-00000001]: cdr_csv.c:314 csv_log: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv : Permission denied
[2021-03-18 22:45:55] ERROR[4677][C-00000001]: res_config_sqlite.c:849 cdr_handler: attempt to write a readonly database[2021-03-18 22:46:44] WARNING[4160]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database[2021-03-18 22:47:13] WARNING[4160]: db.c:332 ast_db_put: Couldn't execute statment: SQL logic error or missing database