[Asterisk-Users] RE: Monitor with Asterisk@Home

mr. barker cabalitomb at shaw.ca
Tue Apr 12 05:19:48 MST 2005


Thank you for the reply.

exten => 1,1,SetVar(CALLFILENAME=${CALLERIDNUM})
exten => 1,2,SetVar(CALLTIME=${DATETIME})
exten => 1,3,SetVar(CALLPATH=/var/calls)
exten => 1,4,Monitor(wav,${CALLPATH}/${CALLTIME}-${CALLFILENAME},m)

? exten => 1,5,DIAL(SIP/something,15,t) - do I need to change SIP/something

exten => 1,6,StopMonitor

? exten => 1,7,Voicemail(u804) - what does u804 stand for or do

exten => 1,8,Hangup
exten => 1,102,StopMonitor

? exten => 1,103,VoiceMail(b804) -

exten => 1,104,Hangup

Would I also change 
exten => 1,... to reflect the extention # if I am not using 1 as an
extension ie. Exten=> 7726259 or 

Do I put the above in the [ext-local] after each exten or does it get placed
in the 

[ext-local]
include => ext-local-custom
exten => 7726257,1,Macro(exten-vm,7726257 at default,7726257)
exten => 7726258,1,Macro(exten-vm,7726258 at default,7726258)
exten => 7726259,1,Macro(exten-vm,7726259 at default,7726259)
exten => 9873022,1,Macro(exten-vm,9873022 at default,9873022)
exten => 9873023,1,Macro(exten-vm,novm,9873023)

or in the 

[aa_1]
include => aa_1-custom
exten => 1,1,Goto(ext-local,7726258,1)	; 
exten => 2,1,Goto(ext-local,7726259,1)	; 
exten => 3,1,Goto(ext-local,7726257,1)	; 
exten => fax,1,Goto(ext-fax,in_fax,1)	;
- snip - 

Thankyou in return.




-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Kyle Hagan
Sent: Monday, April 11, 2005 8:36 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Monitor with Asterisk at Home

You have to put the monitor after the person presses their selection.

This is how ours is:
exten => s,1,answer
exten => s,2,SetCIDName('PMG')
exten => s,3,SetVar(company=PMG)
exten => s,4,Wait(1)
exten => s,5,DigitTimeout,5
exten => s,6,ResponseTimeout,40
exten => s,7,Background(/var/lib/asterisk/sounds/greetings/pmg)
exten => s,8,Background(greetings/dial)


exten => 1,1,SetVar(CALLFILENAME=${CALLERIDNUM})
exten => 1,2,SetVar(CALLTIME=${DATETIME})
exten => 1,3,SetVar(CALLPATH=/var/calls)
exten => 1,4,Monitor(wav,${CALLPATH}/${CALLTIME}-${CALLFILENAME},m)
exten => 1,5,DIAL(SIP/something,15,t)
exten => 1,6,StopMonitor
exten => 1,7,Voicemail(u804)
exten => 1,8,Hangup
exten => 1,102,StopMonitor
exten => 1,103,VoiceMail(b804)
exten => 1,104,Hangup

Kyle

mr. barker wrote:

> I am sure that this was answered somewhere but my lack of being able 
> to find an answer using google I turn to the pros.
>
>  
>
> What would be the easist way to record all conversations using Monitor 
> command with the latest Asterisk at Home ?
>
> Using a FXO card with SIP extensions
>
>  
>
> I have tried adding the following in the extensions_additional.conf 
> but I am not getting a file generated in the 
> /var/spool/asterisk/monitor directory or anywhere else.
>
> Help would be muchly appreciated.
>
>  
>
> Thanks for helping the newbiein return.
>
>  
>
> exten => s,7,Monitor(wav,${TIMESTAMP}-${CALLERIDNUM}-${MACRO_EXTEN})
>
>  
>
>  
>
> [aa_1]
>
> include => aa_1-custom
>
> exten => 1,1,Goto(ext-local,7726258,1)   ;
>
> exten => 2,1,Goto(ext-local,7726259,1)   ;
>
> exten => 3,1,Goto(ext-local,7726257,1)   ;
>
> exten => fax,1,Goto(ext-fax,in_fax,1)       ;
>
> exten => h,1,Hangup()    ;
>
> exten => i,1,Playback(invalid)     ;
>
> exten => i,2,Goto(s,7)    ;
>
> include => ext-local
>
> include => app-messagecenter
>
> include => app-directory
>
> exten => s,1,GotoIf($[${DIALSTATUS} = ANSWER]?4)     ;
>
> exten => s,2,Answer()    ;
>
> exten => s,3,Wait(1)      ;
>
> exten => s,4,SetVar(DIR-CONTEXT=default)        ;
>
> exten => s,5,DigitTimeout(3)       ; Select
>
> exten => s,6,ResponseTimeout(7)           ;
>
> exten => s,7,Monitor(wav,${TIMESTAMP}-${CALLERIDNUM}-${MACRO_EXTEN})
>
> exten => s,8,Background(custom/aa_1)   ; Press 1 for Peter Press 2 for 
> Paula Press 3 for the Kids
>
>  
>
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list