Summary:ASTERISK-00512: invalid/incorrect tone definitions in chan_vpb.c
Reporter:VoiceTronix (benkramer)Labels:
Date Opened:2003-11-10 22:48:26.000-0600Date Closed:2004-09-25 02:49:15
Versions:Frequency of
Environment:Attachments:( 0) chan_vpb.c.patch.gz
( 1) chan_vpb.c.patch.gz
( 2) patchfile
Description:invalid/incorrect tone definitions causes crash/failure, as per users email:
 If I redirect it to VoiceMail or even Meetme it works but I get the following whan I try to call a registered SIP user:
AGI Script Executing Application: (DIAL) Options:(SIP/marek)
     -- Called marek
     --  vpb indicate on vpb/1-1 with -1
  Read_channel  vpb/1-1 (state=6), res=0, bridge=1
Read_channel ##  vpb/1-1: Setting record mode, bridge = 0
     -- SIP/marek-42b1 is ringing
     --  vpb indicate on vpb/1-1 with 3
exception caught: VPBAPI_DIAL_INVALID_LEVEL, file: vpbdial.cpp
line:873  ...
Ouch ... error while writing audio data: : Broken pipe
Ouch ... error while writing audio data: : Broken pipe
Ouch ... error while writing audio data: : Broken pipe
Found new ID3 Header
Warning, flexible rate not heavily tested!


the file attached is a "cvs diff -u chan_vpb.c"
Comments:By: Mark Spencer (markster) 2003-11-11 20:35:22.000-0600

This patch will not apply.  I think you may have converted tabs to spaces or something.  can you please attach a version that will apply?

By: VoiceTronix (benkramer) 2003-11-11 20:49:28.000-0600

I used this to create:
diff -u chan_vpb.c chan_vpb.c.ben | gzip > chan_vpb.c.patch.gz
then this to patch:
[root@thumper channels]# gunzip chan_vpb.c.patch.gz
[root@thumper channels]# patch < chan_vpb.c.patch
patching file chan_vpb.c
[root@thumper channels]# diff -u chan_vpb.c chan_vpb.c.ben
[root@thumper channels]#

By: Mark Spencer (markster) 2003-11-11 20:59:10.000-0600

Can you try doing "cvs diff -u" > patchfile and then adding it as an attachment?

By: VoiceTronix (benkramer) 2003-11-11 21:03:13.000-0600

thats what I did on the first one, here it is again.

By: Mark Spencer (markster) 2003-11-12 19:00:04.000-0600

Add new tone patch