Outbound recordings not happening

I’ve set an extension for ‘force’ for all fields for recording (was set to ‘yes’ for the first test) and calls are not being recorded.

Here’s a section of the log for the relevant part, a few things stand out for me here, mainly that there is no mention of a ‘start recording’ type command, and the other is the line:
Outbound Recording Check from unknown to ***") in new stack
Now, the *** is my mobile number, but ‘check from unknown’? Well it’s from a sip extension, that shouldn’t really be ‘unknown’

-- Executing [s@sub-record-check:1] GotoIf("SIP/205-000004d9", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("SIP/205-000004d9", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("SIP/205-000004d9", "NOW=1457987713") in new stack
-- Executing [s@sub-record-check:4] Set("SIP/205-000004d9", "__DAY=14") in new stack
-- Executing [s@sub-record-check:5] Set("SIP/205-000004d9", "__MONTH=03") in new stack
-- Executing [s@sub-record-check:6] Set("SIP/205-000004d9", "__YEAR=2016") in new stack
-- Executing [s@sub-record-check:7] Set("SIP/205-000004d9", "__TIMESTR=20160314-203513") in new stack
-- Executing [s@sub-record-check:8] Set("SIP/205-000004d9", "__FROMEXTEN=unknown") in new stack
-- Executing [s@sub-record-check:9] Set("SIP/205-000004d9", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("SIP/205-000004d9", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/205-000004d9", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/205-000004d9", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/205-000004d9", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/205-000004d9", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/205-000004d9", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] NoOp("SIP/205-000004d9", "Outbound Recording Check from unknown to ***") in new stack
-- Executing [out@sub-record-check:2] Set("SIP/205-000004d9", "RECMODE=") in new stack
-- Executing [out@sub-record-check:3] ExecIf("SIP/205-000004d9", "1?Goto(routewins)") in new stack
-- Goto (sub-record-check,out,7)
-- Executing [out@sub-record-check:7] Gosub("SIP/205-000004d9", "recordcheck,1(dontcare,out,***)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/205-000004d9", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/205-000004d9", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/205-000004d9", "") in new stack
-- Executing [out@sub-record-check:8] Return("SIP/205-000004d9", "") in new stack

During that test, I had a small part of custom dialplan commented out:

;exten => _0.,1,Set(__SIP_CODEC=alaw)
;same => next,Goto(outbound-allroutes,${EXTEN},1)

Which is there to lock the codec for outbound calls. Those lines are in extensions_custom.conf, and not in any context (should they be?)

With them commented out, the log is as shown above. On a whim, I put them back into play, and the call recording takes place, including fixing the ‘unknown’ entry. So I removed them again, and tested, no recording. Put them back, recordings again.

This is crazy. How is a line of code in an optional file making it work correctly?

an error further in the custom dialplan was causing this, once the offending lines were removed, the expected behaviour returns.
oops :wink:

1 Like