Monica Tepelus | 4 Jan 2010 09:31
Picon
Favicon

Re: Wave/play starts before ANSWER

Hi,

When a call is answered the message "call.answered" is emitted.
Try doing a php script that uses libyate.php.

Look at dialout-dialer.php from share/scripts directory for an example.

http://yate.null.ro/websvn/filedetails.php?repname=yate&path=%2Ftrunk%2Fshare%2Fscripts%2Fdialout-dialer.php

Regards,
Monica Tepelus

Isamar Maia wrote:
> I am using yate version "Yate 2.1.0 1" with an outbound IVR thru Rmanager.
>
> The call is done very simply from a PHP script:
>
> $e164dst1="557191468575";
> $timeout=1000;
> $socket = fsockopen("<ip address>","5038", $errno, $errstr, $timeout);
> fputs($socket, "<PASS>\r\n");
> fputs($socket, "call
> wave/play//usr/local/share/yate/sounds/soundfile.gsm $e164dst1\r\n");
>
> The problem is that the sound file starts playing before the call is
> answered, in the destination side,
> and the customer listen the message already in the middle.
>
> I thought the "autoprogress" parameter in the regexroute.conf could
> have anything related to that,
> but changing it, I couldn't see any change.
>
> ^557.*$=sip/sip:\0;line=iplines;autoprogress=no
>
> How to make the "wave/play" starts  up only when the call is answered ?
>
>
>
>   


Gmane