<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am trying to record calls on demand both inbound and outbound calls. I can record outbound calls just fine but not inbound calls or calls from an internally between extensions. I am using the latest asterisk 1.8.x certified version.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>On an outbound call I see:<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>== Using SIP RTP CoS mark 5<o:p></o:p></p><p class=MsoNormal> -- Called SIP/ BVTrunk /7190000000<o:p></o:p></p><p class=MsoNormal> -- SIP/BVTrunk-00000163 is making progress passing it to SIP/1010-00000162<o:p></o:p></p><p class=MsoNormal> -- SIP/BVTrunk-00000163 answered SIP/1010-00000162<o:p></o:p></p><p class=MsoNormal> -- Feature Found: apprecord exten: apprecord<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:1] ExecIf("SIP/1010-00000162", "0?Set(THISEXTEN=71900000000)") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:2] ExecIf("SIP/1010-00000162", "1?Set(THISEXTEN=1010)") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:3] ExecIf("SIP/1010-00000162", "0?MacroExit()") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:4] GotoIf("SIP/1010-00000162", "0?stoprec") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:5] GotoIf("SIP/1010-00000162", "0?stopped") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:6] GotoIf("SIP/1010-00000162", "0?recording") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:7] Set("SIP/1010-00000162", "MASTER_CHANNEL(ONETOUCH_REC)=RECORDING") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:8] Set("SIP/1010-00000162", "MASTER_CHANNEL(REC_STATUS)=RECORDING") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:9] Set("SIP/1010-00000162", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:10] MixMonitor("SIP/1010-00000162", "2012/08/21/out-7190000000-1010-20120821-183119-1345595479.530.wav,a,") in new stack<o:p></o:p></p><p class=MsoNormal> == Begin MixMonitor Recording SIP/1010-00000162<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:11] Set("SIP/1010-00000162", "MON_FMT=wav") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:12] Set("SIP/1010-00000162", "MASTER_CHANNEL(CDR(recordingfile))=out-7190000000-1010-20120821-183119-1345595479.530.wav") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:13] Set("SIP/1010-00000162", "MASTER_CHANNEL(ONETOUCH_RECFILE)=out-7190000000-1010-20120821-183119-1345595479.530.wav") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:14] Playback("SIP/1010-00000162", "beep") in new stack<o:p></o:p></p><p class=MsoNormal> -- <SIP/1010-00000162> Playing 'beep.ulaw' (language 'en')<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:15] MacroExit("SIP/1010-00000162", "") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [h@macro-dialout-trunk:1] Macro("SIP/1010-00000162", "hangupcall,") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-hangupcall:1] GotoIf("SIP/1010-00000162", "1?theend") in new stack<o:p></o:p></p><p class=MsoNormal> -- Goto (macro-hangupcall,s,3)<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-hangupcall:3] ExecIf("SIP/1010-00000162", "1?Set(CDR(recordingfile)=out-7190000000-1010-20120821-183119-1345595479.530.wav)") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-hangupcall:4] Hangup("SIP/1010-00000162", "") in new stack<o:p></o:p></p><p class=MsoNormal> == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/1010-00000162' in macro 'hangupcall'<o:p></o:p></p><p class=MsoNormal> == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/1010-00000162'<o:p></o:p></p><p class=MsoNormal> == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on 'SIP/1010-00000162' in macro 'dialout-trunk'<o:p></o:p></p><p class=MsoNormal> == Spawn extension (from-internal, 7190000000, 6) exited non-zero on 'SIP/1010-00000162'<o:p></o:p></p><p class=MsoNormal> == MixMonitor close filestream<o:p></o:p></p><p class=MsoNormal> == End MixMonitor Recording SIP/1010-00000162<o:p></o:p></p><p class=MsoNormal> == Extension Changed 1010[ext-local] new state Idle for Notify User 1004<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>On inbound calls I see:<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>== Using SIP RTP CoS mark 5<o:p></o:p></p><p class=MsoNormal> -- Called SIP/1010<o:p></o:p></p><p class=MsoNormal> -- Connected line update to SIP/ BVTrunk -00000160 prevented.<o:p></o:p></p><p class=MsoNormal> == Extension Changed 1010[ext-local] new state Ringing for Notify User 1004<o:p></o:p></p><p class=MsoNormal> -- SIP/1010-00000161 is ringing<o:p></o:p></p><p class=MsoNormal> -- Connected line update to SIP/ BVTrunk -00000160 prevented.<o:p></o:p></p><p class=MsoNormal> -- SIP/1010-00000161 answered SIP/ BVTrunk -00000160<o:p></o:p></p><p class=MsoNormal> == Extension Changed 1010[ext-local] new state InUse for Notify User 1004<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-auto-blkvm:1] Set("SIP/1010-00000161", "__MACRO_RESULT=") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-auto-blkvm:2] Macro("SIP/1010-00000161", "blkvm-clr,") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-blkvm-clr:1] Set("SIP/1010-00000161", "SHARED(BLKVM,SIP/BVTrunk-00000160)=") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-blkvm-clr:2] Set("SIP/1010-00000161", "GOSUB_RETVAL=") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-blkvm-clr:3] MacroExit("SIP/1010-00000161", "") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-auto-blkvm:3] ExecIf("SIP/1010-00000161", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=1010)") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-auto-blkvm:4] ExecIf("SIP/1010-00000161", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=Josh Hopkins)") in new stack<o:p></o:p></p><p class=MsoNormal> -- Feature Found: apprecord exten: apprecord<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:1] ExecIf("SIP/1010-00000161", "0?Set(THISEXTEN=1010)") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:2] ExecIf("SIP/1010-00000161", "1?Set(THISEXTEN=1010)") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-one-touch-record:3] ExecIf("SIP/1010-00000161", "1?MacroExit()") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [h@macro-dial:1] Macro("SIP/ BVTrunk -00000160", "hangupcall") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-hangupcall:1] GotoIf("SIP/ BVTrunk -00000160", "1?theend") in new stack<o:p></o:p></p><p class=MsoNormal> -- Goto (macro-hangupcall,s,3)<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-hangupcall:3] ExecIf("SIP/ BVTrunk -00000160", "0?Set(CDR(recordingfile)=)") in new stack<o:p></o:p></p><p class=MsoNormal> -- Executing [s@macro-hangupcall:4] Hangup("SIP/ BVTrunk -00000160", "") in new stack<o:p></o:p></p><p class=MsoNormal> == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/ BVTrunk -00000160' in macro 'hangupcall'<o:p></o:p></p><p class=MsoNormal> == Spawn extension (macro-dial, h, 1) exited non-zero on 'SIP/ BVTrunk -00000160'<o:p></o:p></p><p class=MsoNormal> == Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/BVTrunk-00000160' in macro 'dial'<o:p></o:p></p><p class=MsoNormal> == Spawn extension (from-did-direct, 1010, 21) exited non-zero on 'SIP/BVTrunk-00000160'<o:p></o:p></p><p class=MsoNormal> == Extension Changed 1010[ext-local] new state Idle for Notify User 1004<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[macro-one-touch-record]<o:p></o:p></p><p class=MsoNormal>include => macro-one-touch-record-custom<o:p></o:p></p><p class=MsoNormal>exten => s,1,ExecIf($["${PICKUP_EXTEN}"!=""]?Set(THISEXTEN=${CUT(CALLFILENAME,-,2)}))<o:p></o:p></p><p class=MsoNormal>exten => s,n,ExecIf($["${THISEXTEN}"=""]?Set(THISEXTEN=${IF($["${REALCALLERIDNUM}"=""]?${CUT(CALLFILENAME,-,2)}:${FROMEXTEN})}))<o:p></o:p></p><p class=MsoNormal>exten => s,n,ExecIf($["${CUT(CALLFILENAME,-,1)}"="exten" & "${DB(AMPUSER/${THISEXTEN}/recording/ondemand)}"!="enabled"]?MacroExit())<o:p></o:p></p><p class=MsoNormal>exten => s,n,GotoIf($["${MASTER_CHANNEL(ONETOUCH_REC)}"="RECORDING"]?stoprec)<o:p></o:p></p><p class=MsoNormal>exten => s,n,GotoIf($["${MASTER_CHANNEL(REC_POLICY_MODE)}"="never"]?stopped)<o:p></o:p></p><p class=MsoNormal>exten => s,n,GotoIf($["${MASTER_CHANNEL(ONETOUCH_REC)}"="" & "${MASTER_CHANNEL(REC_STATUS)}"="RECORDING"]?recording)<o:p></o:p></p><p class=MsoNormal>exten => s,n,Set(MASTER_CHANNEL(ONETOUCH_REC)=RECORDING)<o:p></o:p></p><p class=MsoNormal>exten => s,n,Set(MASTER_CHANNEL(REC_STATUS)=RECORDING)<o:p></o:p></p><p class=MsoNormal>exten => s,n(mixmon),Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)<o:p></o:p></p><p class=MsoNormal>exten => s,n,MixMonitor(${MIXMON_DIR}${YEAR}/${MONTH}/${DAY}/${CALLFILENAME}.${MIXMON_FORMAT},a,${MIXMON_POST})<o:p></o:p></p><p class=MsoNormal>exten => s,n,Set(MON_FMT=${IF($[${LEN(${MIXMON_FORMAT})}]?${MIXMON_FORMAT}:wav)})<o:p></o:p></p><p class=MsoNormal>exten => s,n,Set(MASTER_CHANNEL(CDR(recordingfile))=${CALLFILENAME}.${MON_FMT})<o:p></o:p></p><p class=MsoNormal>exten => s,n,Set(MASTER_CHANNEL(ONETOUCH_RECFILE)=${CALLFILENAME}.${MON_FMT})<o:p></o:p></p><p class=MsoNormal>exten => s,n(recording),Playback(beep)<o:p></o:p></p><p class=MsoNormal>exten => s,n,MacroExit()<o:p></o:p></p><p class=MsoNormal>exten => s,n(stoprec),StopMixMonitor()<o:p></o:p></p><p class=MsoNormal>exten => s,n,Set(MASTER_CHANNEL(ONETOUCH_REC)=PAUSED)<o:p></o:p></p><p class=MsoNormal>exten => s,n,Set(MASTER_CHANNEL(REC_STATUS)=PAUSED)<o:p></o:p></p><p class=MsoNormal>exten => s,n,ExecIf($["${THISEXTEN}"=""]?Set(THISEXTEN=${IF($["${REALCALLERIDNUM}"=""]?${DIALEDPEERNUMBER}:${FROMEXTEN})}))<o:p></o:p></p><p class=MsoNormal>exten => s,n(stopped),Playback(beep&beep)<o:p></o:p></p><p class=MsoNormal>exten => s,n,MacroExit()<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>