[asterisk-users] php agi - first phrase truncated, all others fine

blackwater dev blackwaterdev at gmail.com
Mon Jan 15 19:16:13 MST 2007


Thanks all, I'll give this a shot.

On 1/15/07, Yuan LIU <yliu11 at hotmail.com> wrote:
>
> From:  *"blackwater dev" blackwaterdev at gmail.com*
>
>  Yes, the wav file is fine.  For some reason it's just getting cut off.
> Whatever I type there seems to get cut off, strange.
>
> With plain dialplan (no AGI), I notice that the first few syllables from
> Playback() or Background() could be eaten up, sometimes more, sometimes
> less.  A little Wait() after Answer() may help "stablize" the voice channel.
>
> Yuan Liu
>
> On 1/15/07, Paul < <ast2005 at 9ux.com>
> ast2005 at 9ux.com> wrote:
> >
> > Are you creating a temporary wav file? If so, look at that first. If the
> >
> >
> > wav file is truncated at least you know the problem is related to the
> > way swift gets invoked and passed the text argument. If the file is okay
> > you need to look at the way it gets handled afterwards.
> >
> > blackwater dev wrote:
> >
> >
> > > I have the following code.  When I call the extension, it either
> > > ignores the first "Hello there everyone", or says "hello" and moves on
> > > sometime stoping before it finishes hello.  The rest of the text reads
> >
> >
> > > fine.  Anyone else have this issue??
> > >
> > > Thanks!
> > >
> > >  require('/var/lib/asterisk/agi-bin/phpagi.php');
> > >
> > >   $agi = new AGI();
> > >   $agi->answer();
> > >   $agi->swift("Hello there everyone ");
> >
> > >
> > >
> > >         $agi->swift("Please press 1 for a  search  .");
> > >         $result= $agi->get_data('beep',300000000, 1);
> > >         $zip= $result['result'];
> > >
> >
> > >   $agi->swift("That concludes your call.  Thank you, Good bye .");
> > >   $agi->hangup();
> > >
> >
> > >------------------------------------------------------------------------
> > >
> > >_______________________________________________
> >
> > >--Bandwidth and Colocation provided by Easynews.com<http://easynews.com/>--
> > >
> > >asterisk-users mailing list
> > >To UNSUBSCRIBE or update options visit:
> > >    <http://lists.digium.com/mailman/listinfo/asterisk-users>
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > >
> > >
> >
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com<http://easynews.com/>--
> >
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
>
> >_______________________________________________
> >--Bandwidth and Colocation provided by Easynews.com --
> >
> >asterisk-users mailing list
> >To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070115/6b385063/attachment.htm


More information about the asterisk-users mailing list