[ previous ] [ next ] [ threads ]
 To :  Monica Tepelus <monica@v...>
 From :  aucyxob <aucyxob@y...>
 Subject :  Re: Re: [yate] fork for earlymedia
 Date :  Wed, 23 Jun 2010 17:03:13 +0400
Sorry

Task is bit changed
If target is not answer or fails due to any reason I should play a message via earlymedia without answer.
Does it possible to change erarly media source with targets in callfork?

P.S.
the example of callfork from Yates site does not work:
^1$=fork sip/sip:1@host1;fork.fake=tone/ring

Help me please find the solution.

Regards Anthony

23.06.10, 13:48, "Monica Tepelus" :

> 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
>  >   
>  
>