Problem with Wait(n) application


#1

I am running Asterisk 1.0.7-BRIstuffed-0.2.0-RC7k on Debian Sarge using the CAPI and have a strange problem with the Wait(n) application.

It seems that Wait(n) somehow doesn’t return if n >= 10.

The following snippet is from my extensions.conf:

[code][4929xxx]
exten => s,1,SetLanguage(de)
exten => s,2,Wait(9)
exten => s,3,Wait(9)
exten => s,4,Wait(9)
exten => s,5,Answer
exten => s,6,VoiceMail(u1)
exten => s,7,Goto(boksa,#,1)

[2790xxx]
exten => s,1,SetLanguage(de)
exten => s,2,Wait(27)
exten => s,3,Answer
exten => s,4,VoiceMail(u1)
exten => s,5,Goto(boksa,#,1)[/code]

While three times Wait(9) works Wait(27) doesn’t.

A call on 4929xxx:

-- Executing Goto("CAPI[contr1/30]/0", "4929xxx|s|1") in new stack -- Goto (4929xxx,s,1) -- started pbx on channel (callgroup=0)! -- Executing SetLanguage("CAPI[contr1/30]/0", "de") in new stack -- Executing Wait("CAPI[contr1/30]/0", "9") in new stack -- Executing Wait("CAPI[contr1/30]/0", "9") in new stack -- Executing Wait("CAPI[contr1/30]/0", "9") in new stack -- Executing Answer("CAPI[contr1/30]/0", "") in new stack

Everything works find. Answer() is called.

A call on 2790xxx:

-- Executing Goto("CAPI[contr1/31]/1", "2790xxx|s|1") in new stack -- Goto (2790xxx,s,1) -- Executing SetLanguage("CAPI[contr1/31]/1", "de") in new stack -- Executing Wait("CAPI[contr1/31]/1", "27") in new stack -- started pbx on channel (callgroup=0)! == Spawn extension (2790xxx, s, 2) exited non-zero on 'CAPI[contr1/31]/1'

Answer() is not called, the last line appears when I hangup after nothing happens.

Thanks a lot in advance.