[chan-capi-users] Wait-Function doesnt wait with capi

Wolfgang Jankowski Wolfgang.Jankowski at gmx.de
Wed Jun 24 16:08:09 CEST 2009


Hi,
my problem is to check wether a user is registered or not. While checking 
this, other phones at the pbx are ringing (asterisk doesnt know of them).
If I'm connected via IAX, I want to get the call too. But if I'm not 
connected, I want to open the voicemail, iff no one uses a phone at the pbx 
to answer the call.

The Dialplan:

[sip-in]
exten => 43,1,ChanIsAvail(IAX2/7000)
exten => 43,n,Dial(IAX2/7000)
exten => 43,n,Hangup()

exten => 43,102,Wait(30)
exten => 43,103,VoiceMail(7000)
exten => 43,104,Hangup()

[isdn-in]

exten => 43,1,ChanIsAvail(IAX2/7000)
exten => 43,n,Dial(IAX2/7000)
exten => 43,n,hangup()

exten => 43,102,wait(30)
exten => 43,103,VoiceMail(7000)
exten => 43,104,Hangup()

When calling via sip, all is fine. When calling via isdn I get two ringtones 
and a hangup. Is this a problem in capi or in my pbx?

Bye
Wolfgang


More information about the Chan-capi-users mailing list