[Asterisk-Users] Problem with Wait() and chan_capi-cm?

Armin Schindler armin at melware.de
Sun Feb 12 10:05:25 MST 2006


On Sun, 12 Feb 2006, Florian Heer wrote:
> Armin Schindler wrote:
> > But: if there is a call signaled, the switch has a timeout (about 4 or 5
> > seconds), this timeout can be extended by sending ALERT (Ringing).
> > 
> > 
> Okay, is the timeout necessary? Or: is this short timeout necessary? It
> appears in the sip-context the timeouts are much longer.

Maybe, but that timeout is given by your ISDN provider.
 
> > So you should do
> > exten => 12345,1,Ringing()
> > (or after the unsuccessful Dial())
> > to make sure the ISDN call gets ALERT in that case.
> > 
> > 
> 
> Yes, that does what I expect. My extensions now are:
> exten => 12345,1,Dial(SIP/me,30)
> exten => 12345,2,VoiceMail(su12345)
> exten => 12345,3,Hangup()
> exten => 12345,102,Set(COUNT=10)
> exten => 12345,103,While($[ ${COUNT} > 0 ])
> exten => 12345,104,Set(COUNT=${COUNT}-1)
> exten => 12345,105,Ringing()
> exten => 12345,106,Wait(3)
> exten => 12345,107,EndWhile()
> exten => 12345,108,VoiceMail(su12345)
> 
> Could probably be a bit tiedier, but at least it works.

There is no need to create a loop. Just one Ringing() is enough.
The first ALERT (Ringing) signales the switch to incease the timeout
from 4-5 seconds to 2 minutes or so.

Armin




More information about the asterisk-users mailing list