[Asterisk-Users] troubles working with Voicetronix Openswitch12

Augustine Olaifa austino at skannet.com
Tue Apr 27 03:24:16 MST 2004



Dear Users,

i have a voicetronix Openswitch card, and i have been finding it very
dificult to get it to work with asterisk.

i intend to connect 8 ports to the PSTN and 4 as station ports.

problem 1:
On running asterisk all i get at first i get :
	event[9=>[11] station OFF hook] on vpb/1-12
	even [12=>[11] loop drop on vpb/1-12
	event [12=>[11] Tone detect:GRUNT
	event [2=>[11] Dial end] on vpb/1-12
	event [2=>[11] Tone detect:GRUNT
	event
  --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [102=>[11] Dial End
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12

problem 2:
 when i dial a station port for example say port 12 from port 11, the
phone rings only once, and whe the called port is lifted , on asterisk it
shows that the call has been answered but nothing is heard.all i can hear
is is constant noise which i suspect to be the grunt tone. this is what i
get below

Connected to Asterisk CVS-03/20/04-17:45:21 currently running on test (pid
= 1909)
    --  Event [12=>[11] Loop Drop
] on vpb/1-12
    --  Event [13=>[11] Station hook FLASH
] on vpb/1-12
    --  Event [12=>[11] Loop Drop
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [8=>[11] DTMF digit: 9
] on vpb/1-12
    --  Event [8=>[11] DTMF digit: 1
] on vpb/1-12
    --  Event [8=>[11] DTMF digit: 2
] on vpb/1-12
    --  Event [8=>[11] DTMF digit: 3
] on vpb/1-12
    -- Executing Dial("vpb/1-12", "vpb/1-11/{VPB}") in new stack
 Read_channel ##  vpb/1-12: Setting record mode, bridge = 0
    --  1-11 requested, got: [vpb/1-11]
 Read_channel ##  vpb/1-11: Setting record mode, bridge = 0
    --  VPB Calling 1-11/{VPB} [t=0] on vpb/1-11 returned 0
    -- Called 1-11/{VPB}
    -- vpb/1-11 is ringing
 Read_channel ##  vpb/1-12: Setting record mode, bridge = 0
 Read_channel ##  vpb/1-11: Setting record mode, bridge = 0
    --  Event [102=>[11] Dial End
] on vpb/1-12
    --  Event [0=>[10] Ring
] on vpb/1-11
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [9=>[10] Station OFF Hook
] on vpb/1-11
    -- vpb/1-11 answered vpb/1-12
    -- Attempting native bridge of vpb/1-12 and vpb/1-11
    --  Event [2=>[10] Tone Detect: Grunt
] on vpb/1-11
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [12=>[10] Loop Drop
] on vpb/1-11
    --  Event [10=>[10] Station ON Hook
] on vpb/1-11
    --  hangup on vpb (vpb/1-11)
    --  Hungup on vpb/1-11 complete
  == Spawn extension (internal, 9123, 1) exited non-zero on 'vpb/1-12'
    --  hangup on vpb (vpb/1-12)
    --  Hungup on vpb/1-12 complete
    --  Event [102=>[10] Dial End
] on vpb/1-11
    --  Event [102=>[11] Dial End
] on vpb/1-12
test*CLI>


problem 3: when a try to make a call to another PSTN line on our telephone
network i get :

*CLI>     --  Event [9=>[11] Station OFF Hook
] on vpb/1-12
    --  Event [12=>[11] Loop Drop
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Dial
] on vpb/1-12
    --  Event [102=>[11] Dial End
] on vpb/1-12
    --  Event [8=>[11] DTMF digit: 8
] on vpb/1-12
    --  Event [2=>[11] Tone Detect: Grunt
] on vpb/1-12
    --  Event [8=>[11] DTMF digit: 1
] on vpb/1-12
    --  Event [8=>[11] DTMF digit: 1
] on vpb/1-12
    --  Event [8=>[11] DTMF digit: 6
] on vpb/1-12
 Read_channel ##  vpb/1-12: Setting record mode, bridge = 0
Apr 26 14:06:33 WARNING[196633]: pbx.c:1179 pbx_extension_helper: No
application 'Dial,' for extension (internal, 8116, 1)
  == Spawn extension (internal, 8116, 1) exited non-zero on 'vpb/1-12'
    --  hangup on vpb (vpb/1-12)
    --  Hungup on vpb/1-12 complete
    --  Event [102=>[11] Dial End
] on vpb/1-12



this are my configs:

vpb.conf
[interfaces]
echocancel=on
board=1
context=internal
mode=fxo
channel=1
channel=2
channel=3
channel=4
channel=5
channel=6
channel=7
channel=8
mode=dialtone
channel=9
channel=10
channel=11
channel=12

extensions.conf
[default]
include =>internal
include=>incoming

[internal]
exten =>_8XXX,1,Dial,(vpb/1-4/{EXTEN}/BYEXTENSION,20); the fxo port
exten => 9120,1,Dial(vpb/1-9/{EXTEN:1}/BYEXTENSION,20);the dialtone port
exten => 9121,1,Dial(vpb/1-10/{EXTEN:1}/BYEXTENSION,20)
exten => 9119,1,Dial,vpb/1-12/{EXTEN:1}/BYEXTENSION,20
exten => 9123,1,Dial,vpb/1-11/{VPB},20

[incoming]
exten =>s,1,Wait
exten =>s,2,Answer
exten =>s,3,Background(demo-congrats)
exten =>s,4,Background(vm-repeat)
exten =>s,4,Hangup

i have also change the DBlevels to -5 and -12 repectively in the
/channels/chan_vpb.c i have
static VPB_TONE Dialtone = 440,440,440,-12,-12,12,5000,0
static VPB_TONE Busytone=  440,0,0,-12,-12,-12,500,500
static VPB_TONE Ringback=  440,0,0,-12,-12,-12,100,100

with no change.

i have also tried to use the tonetrain program  in the VPB doc, running
this tests on the ports  i get
export VPB_TONE=5,P6,312,100,2000,578,100,10,10 ; for the busytone
export VPB_TONE=5,C,437,100,2000		;for the dialtone

i get this on the fxo port:
export VPB_TONE=5,P6,2656,100,2000,2968,100,10,10 ; to detect the dial and
							ringback

i have set tried to export the parameters i got here most especially the
dialtone parameters using
export VPB_TONE= DIAL,C,437,100,2000
but there was no change.

Is there anyone out there that has got the voicetronix Openswitch working?

i would like to share the working configs, and learn how to get rid of the
Tone Detect : Grunt





regards

-- 
Olaifa Augustine
General Data Engineering Services Ltd
18b oshin road,kongi bodija
p.o.box 29460, secretariate,
ibadan.
tel:- 234-2-8105156





More information about the asterisk-users mailing list