Hola Bayardo,
You could use something like this as your 'incoming-calls' calls
context:
[incoming-calls]
exten =>
s,1,Set(FILE_NAME=incoming-${CALLERID(num)}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => s,n,Monitor(wav,${FILE_NAME},m)
exten => s,n,Dial(SIP/121,30)
exten => s,n,Hangup
All you have to do is set your sip.conf and/or zapata.conf to have this
context as the incoming context.
NOTE: I am assuming here that you have a sip account configured as '121'
(which is NOT mandatory and you can modify it according to your needs)
Regards,
--
Jose P. Espinal
http://blog.slackware-es.com
Bayardo Sanchez wrote:> I need help need recording all call for my pbx but i am a novato in
> asterisk my confi for record is:
>
>
exten=>_NXXXXXXXXX,n,Set(CALLFILENAME=CLIENTE-${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID})
> exten => _NXXXXXXXXX,n,MixMonitor(${CALLFILENAME}.gsm,m)
> exten => _NXXXXXXXXX,n,Dial(${TRUNK_CLIENTE}/${EXTEN})
>
>
>
>
> --
> Bayardo S?nchez Garc?a
> Web Developer - Internet Portals
> Linux User: #418392
> Ubuntu User #14171
> America Central - Managua, NI (505) 249-2853 - 4886876
> IM msn messenger: bjsanchezg at hotmail.com <mailto:bjsanchezg at
hotmail.com>
> Skype: bayardo.sanchez
> This email is intended solely for the person or organization to which
> it is addressed. It may contain privileged and confidential
> information. If you are not the intended recipient, you are prohibited
> from copying, disclosing or distributing this email or its contents
> (as it may be unlawful for you to do so) or taking any action in
> reliance on it. If you have received this email by mistake, please
> delete it. All e-mail sent to this address will be received by B.S.
> Solution e-mail system and is subject to archiving and review by
> someone other than the recipient.
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users