[Asterisk-Users] ChanIsAvail()

Alexander Lopez alex.lopez at opsys.com
Thu Dec 15 07:48:34 MST 2005


I do not think that Chanisavail will work with a group...
If is does you still need to add the j option to it so that it will Jump


> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> hgaillac-sip at yahoo.fr
> Sent: Thursday, December 15, 2005 9:14 AM
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] ChanIsAvail()
> 
> Hello,
> 
> I configure a asterisk server with tdm400p .  I wish to set 
> chanisavail() in order to allow users or the hylafax server 
> to dial numbers to pstn .  however I can't write the rules  
> to forward requests to the dial pattern when channel is available.
> 
> I try this however priority 2 fail.
> how can i forward requests to outgoing-pstn  context ?
> 
> exten => s,1,ChanIsAvail(Zap/g1)
> exten => s,2,Goto(outgoing-pstn) ;n+1 Zap/g1 available exten 
> => s,102,Playback(all-circuits-busy-now) n+1 unavailable 
> exten => s,103,Hangup
> 
> Regards
> H.G
> 
> extension.conf
> 
> [sip]
> 
> exten => 84,1,Answer
> exten => 84,2,Dial(Sip/84,10,t)
> exten => 84,3,VoiceMail(u84)
> exten => 84,103,VoiceMail(b84)
> 
> [fax]
> exten => 80,1,Dial(Zap/2,40)
> exten => 80,2,Congestion
> exten => 80,102,Congestion
> 
> 
> [outgoing-pstn]
> ingnorepat => 0
> exten => _0XXXX,1,Dial(Zap/g1/${EXTEN:1}) exten => 
> _0XXXX.,1,Dial(Zap/g1/${EXTEN:1})
> 
> 
> 
> 	
> 
> 	
> 		
> ______________________________________________________________
> _____________
> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! 
> Découvez les tarifs exceptionnels pour appeler la France et 
> l'international.
> Téléchargez sur http://fr.messenger.yahoo.com 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 



More information about the asterisk-users mailing list