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
On 12/15/05, hgaillac-sip@yahoo.fr <hgaillac-sip@yahoo.fr> wrote:> > 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}) >It's very important to know what version of asterisk you are using, since as of 1.2 it doesnt do priority jumping. You'd have to use ChanIsAvail( Zap/g1, j ) if you're using 1.2+ also keep in mind that ${AVAILCHAN} will return something like Zap/2-1 indicating that Zap/2-1 is available in Zap/g1 Another thing is that you're making your incoming calls go to another context with no idea of what to do there, you should use something like background to let the users punch in the number they wish to call. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051215/696f770d/attachment.htm
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@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > hgaillac-sip@yahoo.fr > Sent: Thursday, December 15, 2005 9:14 AM > To: asterisk-users@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 >