[asterisk-users] playback() breaks audio in zap->iax->iax->zap
channel
jeff oconnell
jeff.oconnell at gmail.com
Tue Aug 29 06:17:49 MST 2006
all,
i'm having a problem where a callee is unable to hear the caller,
but the caller can hear the callee perfectly well.
the call is processed as follows:
1. caller dials into zap-1 via a pri line ( using chan_zap )
2. zap-1 connects to iax-1 over an iax channel
> Dial(IAX2/guest at iax-1)
3. iax-1 plays the user a prompt using Playback()
> Playback(beep)
4. iax-1 dials zap-2 over an iax channel
> Dial(IAX2/outgoing-caller at zap-2/home)
5. zap-2 dials an outside number using chan_zap
> Dial(ZAP/g1/2125551212)
here's the wierd part: if i remove the Playback() from the iax-1 dialplan,
both the caller and the callee can hear one another fine.
but for some reason, though, after Playback() is called in the dialplan,
the connection breaks down.
i've run ethereal on all the servers and packets _are_ going
back and forth as expected.
( i should mention it's not just Playback(), i replaced Playback()
with Wait() and had the same problem. )
i also changed the diaplan on zap-2 to record the call instead dialing out.
> Record(/tmp/incoming_call.wav)
the behavior with Record() was consistent with the Dial() problem:
when Playback() was called on iax-1, the recorded file was empty
( except for the RIFF header ), and when i removed Playback(),
the file recorded properly.
i'm guessing the problem is somewhere in chan_iax2.
maybe a state flag? or something? i'm kinda lost now...
any tips or pointers would be greatly appreciated!
jeff oconnell
jeff.oconnell at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060829/28a7b650/attachment.htm
More information about the asterisk-users
mailing list