Hi, i want to use soxmix to record some calls in my PBX. If i use soxmix on my linux shell it works so i can mixed two calls into one consolidated call. I want to do the process automatically since extensions.conf but it doesnt work. My extensions.conf looks like this: exten => 407,1,SetVar(MONITORDIR=/var/spool/asterisk/monitor) exten => 407,2,Monitor(wav,${TIMESTAMP}.${CALLERIDNUM}.wav) exten => 407,3,Dial(SIP/407|20|t) exten => 407,4,System(soxmix ${MONITORDIR}/${TIMESTAMP}.${CALLERIDNUM}-in.wav ${MONITORDIR}/${TIMESTAMP}.${CALLERIDNUM}-out.wav ${MONITORDIR}/${CALLERIDNUM}.wav) exten => 407,5,Hangup It creates the 2 files but dont do the mix between them. I dont know what the problem is. Thanks for your help. Carlos Andres Medina __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040625/e6bbabc2/attachment.htm
On Fri, 2004-06-25 at 14:51, Carlos Medina wrote:> Hi, i want to use soxmix to record some calls in my PBX. If i use > soxmix on my linux shell it works so i can mixed two calls into one > consolidated call. I want to do the process automatically since > extensions.conf but it doesnt work. My extensions.conf looks like > this: > > exten => 407,1,SetVar(MONITORDIR=/var/spool/asterisk/monitor) > exten => 407,2,Monitor(wav,${TIMESTAMP}.${CALLERIDNUM}.wav) > exten => 407,3,Dial(SIP/407|20|t) > exten => 407,4,System(soxmix > ${MONITORDIR}/${TIMESTAMP}.${CALLERIDNUM}-in.wav > ${MONITORDIR}/${TIMESTAMP}.${CALLERIDNUM}-out.wav > ${MONITORDIR}/${CALLERIDNUM}.wav) > exten => 407,5,Hangup > > It creates the 2 files but dont do the mix between them. I dont know > what the problem is.Standard mistake of not realizing that you will not get to priority 4 unless you timeout and if you timeout the priority 4 is not useful. Maybe use it in the h extension, but I don't know if you will have all your call variables. Seems if you search the archives, you might find where someone has a program already written that does that for you. -- Steven Critchfield <critch@basesys.com>
Erm, wont the TIMESTAMP value have changed during the monitor ? Don't you need to set a CALLFILENAME var, just once and re-use it. T. Carlos Medina wrote:> Hi, i want to use soxmix to record some calls in my PBX. If i use soxmix > on my linux shell it works so i can mixed two calls into one > consolidated call. I want to do the process automatically since > extensions.conf but it doesnt work. My extensions.conf looks like this: > > exten => 407,1,SetVar(MONITORDIR=/var/spool/asterisk/monitor) > exten => 407,2,Monitor(wav,${TIMESTAMP}.${CALLERIDNUM}.wav) > exten => 407,3,Dial(SIP/407|20|t) > exten => 407,4,System(soxmix > ${MONITORDIR}/${TIMESTAMP}.${CALLERIDNUM}-in.wav > ${MONITORDIR}/${TIMESTAMP}.${CALLERIDNUM}-out.wav > ${MONITORDIR}/${CALLERIDNUM}.wav) > exten => 407,5,Hangup > It creates the 2 files but dont do the mix between them. I dont know > what the problem is. > > Thanks for your help. > > Carlos Andres Medina >
Check the WIKI under Monitor Sample Setup. I just updated it a couple of days ago. Carlos Medina wrote:> Hi, i want to use soxmix to record some calls in my PBX. If i use soxmix > on my linux shell it works so i can mixed two calls into one > consolidated call. I want to do the process automatically since > extensions.conf but it doesnt work. My extensions.conf looks like this: > > exten => 407,1,SetVar(MONITORDIR=/var/spool/asterisk/monitor) > exten => 407,2,Monitor(wav,${TIMESTAMP}.${CALLERIDNUM}.wav) > exten => 407,3,Dial(SIP/407|20|t) > exten => 407,4,System(soxmix > ${MONITORDIR}/${TIMESTAMP}.${CALLERIDNUM}-in.wav > ${MONITORDIR}/${TIMESTAMP}.${CALLERIDNUM}-out.wav > ${MONITORDIR}/${CALLERIDNUM}.wav) > exten => 407,5,Hangup > It creates the 2 files but dont do the mix between them. I dont know > what the problem is. > > Thanks for your help. > > Carlos Andres Medina > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com >-- Daniel Jimenez <djimenez[at]pobox[dot]com>