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

Armin Schindler armin at melware.de
Wed Jun 24 17:24:44 CEST 2009


On Wed, 24 Jun 2009, Wolfgang Jankowski wrote:
> 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?

On ISDN there is a timeout if no device is repsonding. You need to tell the
ISDN switch to extend this timeout by sending an ALERT message with
  exten => 43,n,Ringing

Armin



More information about the Chan-capi-users mailing list