Hiya,
here is a patch to fix that:
[root@mailmx2 channels]# cvs diff chan_vpb.c
Index: chan_vpb.c
==================================================================RCS file:
/usr/cvsroot/asterisk/channels/chan_vpb.c,v
retrieving revision 1.9
diff -r1.9 chan_vpb.c
100,102c100,102
< 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};
---> static VPB_TONE Dialtone = {440, 440, 440, -1, -1, -1, 5000, 0
};> static VPB_TONE Busytone = {440, 0, 0, -1, -100, -100,
500, 500};> static VPB_TONE Ringbacktone = {440, 0, 0, -1, -100, -100, 100,
100};
611a612,615> while (vpb_playtone_state(p->handle) != 0){
> res = vpb_tone_terminate(p->handle);
> vpb_sleep(10);
> }
614a619,622> while (vpb_playtone_state(p->handle) != 0){
> res = vpb_tone_terminate(p->handle);
> vpb_sleep(10);
> }
621a630,633> while (vpb_playtone_state(p->handle) != 0){
> res = vpb_tone_terminate(p->handle);
> vpb_sleep(10);
> }
cheers,
ben.
On Mon, 2003-10-13 at 13:12, mick@netexpress.com.au
wrote:> When I ring in and dial the extension to my Cisco 7940
>
> * dies and I get this message
>
> asterisk: vpbdial.cpp:895: void vpbdial_playtone (int, VPB_TONE *):
> Assertion `t onestate[chdev] == 0' failed.
> Aborted
>
>
> This only happens if in
>
> Extensions.conf I place a r in the extion line eg.
>
> exten => 1004,2,Dial(sip/mick@192.168.0.216,20,r)
>
> If I leave the " r " out the phone rings once and then hangs up.
>
>
>
> Regards Mick
--
Ben Kramer <ben@voicetronix.com.au>