how to record outgocall from dedicated extensions

Status
Not open for further replies.

witekprytek

Joined
Dec 19, 2007
Messages
145
Reaction score
0
Hi;
I need to record outgoing calls provided from dedicated extension via trunks (only)
I dont want record all outgoing calls -internal and external, but only calls which are passed through trunk (or trunks)

Could somebody give me some advice or suggestion how to do this?
I hear taht it is possible using outgoing queue but i do not know how build or configure it.
 
Hello, What you do is:
Your trnk is the ability to configure a customization.
On extension_custom.conf create a section:
[your_trunk_custom]
exten => _X.,1,Monitor(wav|/var/www/html/monitor/outbound/${CALLERIDNAME}/${UNIQUEID}|m)
exten => _X.,2,hangup

Regards,


Benjamín Garzón
 
benjange said:
Hello, What you do is:
Your trnk is the ability to configure a customization.
On extension_custom.conf create a section:
[your_trunk_custom]
exten => _X.,1,Monitor(wav|/var/www/html/monitor/outbound/${CALLERIDNAME}/${UNIQUEID}|m)
exten => _X.,2,hangup

Regards,


Benjamín Garzón

Hi Benjamim;
I have tried to implement your solution, but this does not work at all for me.
I have configured trunk using elastix GUI -it works ok.
In extension_additional.conf I have:
Code:
[from-trunk-sip-ev-monitor]
include => from-trunk-sip-ev-monitor-custom
exten => _.,1,Set(GROUP()=OUT_1)
exten => _.,n,Goto(from-trunk,${EXTEN},1)

; end of [from-trunk-sip-ev-monitor]

In extensions_custom.conf I have added code as you have suggested in your post:
Code:
[from-trunk-sip-ev-monitor-custom]
exten => _X.,1,Monitor(wav|/var/spool/asterisk/monitor/out-ev/${CALLERIDNAME}/${UNIQUEID}|m)

exten => _X.,2,hangup

When I make the call using trunk sip-ev-monitor system does not use the above code at all and does not enable Monitor for call recording.
Any suggestion?
Regards
WP

Code:
 -- Executing [98655898001@from-internal:1] Macro("SIP/898-00014563", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/898-00014563", "AMPUSER=898") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/898-00014563", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/898-00014563", "1|Set|REALCALLERIDNUM=898") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/898-00014563", "AMPUSER=898") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/898-00014563", "AMPUSERCIDNAME=KS") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/898-00014563", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/898-00014563", "AMPUSERCID=898") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/898-00014563", "CALLERID(all)="KS" <898>") in new stack
    -- Executing [s@macro-user-callerid:9] ExecIf("SIP/898-00014563", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/898-00014563", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/898-00014563", "Using CallerID "KS" <898>") in new stack
    -- Executing [98655898001@from-internal:2] Set("SIP/898-00014563", "_NODEST=") in new stack
    -- Executing [98655898001@from-internal:3] Macro("SIP/898-00014563", "record-enable|898|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/898-00014563", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/898-00014563", "recordingcheck|20121024-225409|1351112049.377935") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20121024-225409|1351112049.377935: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("SIP/898-00014563", "") in new stack
    -- Executing [98655898001@from-internal:4] Macro("SIP/898-00014563", "dialout-trunk|1|98655898001||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/898-00014563", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/898-00014563", "0?sub-pincheck|s|1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/898-00014563", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/898-00014563", "DIAL_NUMBER=98655898001") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/898-00014563", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/898-00014563", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/898-00014563", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/898-00014563", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/898-00014563", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/898-00014563", "outbound-callerid|1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/898-00014563", "0|SetCallerPres|") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/898-00014563", "0|Set|REALCALLERIDNUM=898") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/898-00014563", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/898-00014563", "USEROUTCID=<7171717171>") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/898-00014563", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/898-00014563", "TRUNKOUTCID=717160177") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/898-00014563", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/898-00014563", "1|Set|CALLERID(all)=77171717171") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/898-00014563", "1|Set|CALLERID(all)=<7171717171>") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/898-00014563", "0|SetCallerPres|prohib_passed_screen") in new stack
    -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/898-00014563", "1|AGI|fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
  ==  fixlocalprefix: Dialpattern 98|. matched. 98655898001 -> 655898001
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/898-00014563", "OUTNUM=655898001") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/898-00014563", "custom=SIP/ev-monitor") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/898-00014563", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/898-00014563", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/898-00014563", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/898-00014563", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/898-00014563", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/898-00014563", "SIP/ev-monitor/655898001|300|") in new stack
    -- Called ev-monitor/655898001
    -- SIP/ev-monitor-00014564 is making progress passing it to SIP/898-00014563
    -- SIP/ev-monitor-00014564 is ringing
    -- SIP/ev-monitor-00014564 answered SIP/898-00014563
    -- Executing [h@macro-dialout-trunk:1] Macro("SIP/898-00014563", "hangupcall|") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/898-00014563", "1?noautomon") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Executing [s@macro-hangupcall:3] NoOp("SIP/898-00014563", "TOUCH_MONITOR_OUTPUT=") in new stack
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/898-00014563", "1?noautomon2") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] NoOp("SIP/898-00014563", "MONITOR_FILENAME=") in new stack
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/898-00014563", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] Hangup("SIP/898-00014563", "") in new stack
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/898-00014563' in macro 'hangupcall'
  == Spawn h extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/898-00014563'
  == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/898-00014563' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 98655898001, 4) exited non-zero on 'SIP/898-00014563'
    -- Remote UNIX connection
    -- Remote UNIX connection disconnected
 
Status
Not open for further replies.

Members Online Now

Forum statistics

Threads
111,860
Messages
589,437
Members
164,700
Latest member
Apollo Cloud