Hello, Hacker I install VoiceTronix OpenSwitch 12 port PCI Telephone Card, and setting vpb.conf, extensions.conf following My problem is: When i dial to fxo(channel 9-12), it is ok, but when i continue press exten 102, the channel crach with error messages following exception caught: VPBAPI_DIAL_INVALID_LEVEL, file: vpbdial.cpp line:872 Do i ignore some setting for VoiceTronix OpenSwitch12 Card, Or other issues? ****** Call status ---------------------------------------------------------------------------- ---------------------- -- Event [0=>[08] Ring ] on vpb/1-9 -- Executing Wait("vpb/1-9", "1") in new stack Read_channel ## vpb/1-9: Setting record mode, bridge = 0 -- Event [0=>[08] Ring ] on vpb/1-9 -- Executing Answer("vpb/1-9", "") in new stack -- Executing DigitTimeout("vpb/1-9", "5") in new stack -- Set Digit Timeout to 5 -- Executing ResponseTimeout("vpb/1-9", "10") in new stack -- Set Response Timeout to 10 -- Executing BackGround("vpb/1-9", "demo-congrats") in new stack -- Playing 'demo-congrats' (language 'en') -- Event [8=>[08] DTMF digit: 1 ] on vpb/1-9 -- Event [2=>[08] Tone Detect: Grunt ] on vpb/1-9 -- Event [8=>[08] DTMF digit: 0 ] on vpb/1-9 -- Event [8=>[08] DTMF digit: 2 ] on vpb/1-9 -- Event [2=>[08] Tone Detect: Grunt ] on vpb/1-9 == CDR updated on vpb/1-9 -- Executing Dial("vpb/1-9", "vpb/1-2|20|tT") in new stack Read_channel ## vpb/1-2: Setting record mode, bridge = 0 -- 1-2 requested, got: [vpb/1-2] -- VPB Calling 1-2 [t=0] on vpb/1-2 returned 0 -- Called 1-2 -- vpb/1-2 is ringing exception caught: VPBAPI_DIAL_INVALID_LEVEL, file: vpbdial.cpp line:872 (1) vpb.conf ---------------------------------------------------------------------------- --------------------------- [interfaces] echocancel = on board = 1 context = vpbtest ; Note that V6PCI channel numbers start at 7! mode = fxo channel = 9 mode = dialtone channel = 1 channel = 2 channel = 3 channel = 4 channel = 5 channel = 6 channel = 7 channel = 8 (2) extensions.conf ---------------------------------------------------------------------------- ----------------------------------------- ......original exten so ignore... [vpbtest] include => default exten => 102,1,Dial(vpb/1-2,20,tT) exten => 102,2,Hangup
Ahmad Faiz
2003-Dec-17 00:04 UTC
[Asterisk-Users] RE: Help! VoiceTronix Multi FXO/FXS Problem
Jacky, The problem is caused by the definition for the different tones in chan_vpb.c , which is specifying an invalid first/second/third tone level.
Ahmad Faiz
2003-Dec-17 08:41 UTC
[Asterisk-Users] RE: Help! VoiceTronix Multi FXO/FXS Problem
Can anyone else with a VoiceTronix OpenSwitch 6/12 card try this out and see if this fixes the problem originally mentioned? Here's what I came across: 1) When using the default chan_vpb.c file, i get a "exception caught: VPBAPI_DIAL_INVALID_LEVEL, file: vpbdial.cpp line:872" error when executing the * Ringing application 2) Modifying the chan_vpb.c file as mentioned in the original message below, and then recompiling *, the error goes away. If someone with an OpenSwitch card can verify the same problem and solution perhaps we should submit a bug report. Faiz> -----Original Message----- > > in chan_vpb.c: > static VPB_TONE Dialtone = {440, 440, 440, 0, 0, 0, 5000, 0 }; > static VPB_TONE Busytone = {440, 0, 0, 0, -100, -100, 500,500};> static VPB_TONE Ringbacktone = {440, 0, 0, 0, -100, -100, 100, 100}; > > try changing the -100 values to -5 in chan_vpb.c, then recompile asterisk > and see if it works. it did for me, but i'm using the OpenLine4 card. Hope > this helps! > > Faiz >