[ previous ] [ next ] [ threads ]
 To :  yate@v...
 From :  aucyxob <aucyxob@y...>
 Subject :  Re: [yate] fork for earlymedia
 Date :  Thu, 24 Jun 2010 10:10:36 +0400
Problem is not yet fixed.

I have not any success with earlymedia changing.
How can I change earlymedia in allready forked call?
Give me work example please if possible.

incoming call should be processed with follow algorithm:
1. have incoming call to desired number 
2. found appropriate target and trying connect
3. while all of these occurs we should hear real ring tones in the line
4. if the connection is unsuccessfull we should hear something like "number in not available ..." in the line as earlymedia without answer.


23.06.10, 17:36, "Monica Tepelus" :

> I saw that you asked on the yate channel.
>  Did you fix your problem?
>  
>  Monica
>  
>  aucyxob wrote:
>  > 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
>  >>  >   
>  >>  
>  >>  
>  >>     
>  
>  
>