[ previous ] [ next ] [ threads ]
 To :  aucyxob <aucyxob@y...>
 From :  Monica Tepelus <monica@v...>
 Subject :  Re: [yate] fork for earlymedia
 Date :  Wed, 23 Jun 2010 12:48:36 +0300
Hi,

It might be that the wave module doesn't answer the call before playing .

Try using |exec instead of | in the route. I did this (with early media) 
and routed to a normal phone and it was ok.

${module}^h323$=fork earlymedia sip/sip:${called}@1... |exec wave/play//usr/local/share/yate/sounds/unavail.alaw;stoperror=busy;maxcall=20000

If it still doesn't work make a small script that answers the call and 
then plays the file and route to it: external/nodata/script.php instead 
of wave/play....

Monica Tepelus

aucyxob wrote:
> need help!
>
> Please, explain to me how to make follow things:
>
> On incoming call i want add own early media (tone/ring)
> if desired target should not answer or failed I need to play a message.
>
>
> here is peice of my regexroute.conf:
> ${module}^h323$=fork earlymedia sip/sip:${called}@1... | wave/play//usr/local/share/yate/sounds/unavail.alaw;stoperror=busy;maxcall=20000
> [call.execute]
> ${callto}^earlymedia$=return;callto=tone/ring;fork.calltype=persistent;fork.autoring=true;fork.automessage=call.progress
>
> When I call in it, I hear earlymedia (tone/ring) and if it is fail I see that target is changed to wave/play but I hear tone/ring yet.
> ----------
> Anthony
>