Re: [Asterisk-Users] Dynamic Zap/{channel} allocation for out going possible?
Never Mind. oops. I just needed to play around with some syntax. Zap/1,2,3,4/$EXTEN Ps: Is there a better santax because 1-4 doesn't work. Kind Regards Etienne Etienne Pretorius wrote: Hi All * users... Question: In extensions.conf - I am awaire that you can use macro's but what I am wondering about.. is that can you create a macro to do dynamic Zap channel allocation for a out going call? I don't want to reserve a channel/port in the TDM400P card for Out break calls, so i was just wandering if some1 could help me a bit over here. [outgoing] ;Dial 0 on the phone for external line exten = _0,1,Dial(Zap/4/$EXTEN) ;=== statically allocated to Zap/4 needs to be dynamic exten = _0,2,Goto(102) exten = _0,102,Congestion exten = _0,103,Hangup I'll apreciate any help in this regard. ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Dynamic Zap/{channel} allocation for out going possible?
Nope - I jumped to conclusions. It just tries channel 1 the whole time. Any ideas any1 Kind Regards Etienne Etienne Pretorius wrote: Never Mind. oops. I just needed to play around with some syntax. Zap/1,2,3,4/$EXTEN Ps: Is there a better santax because 1-4 doesn't work. Kind Regards Etienne Etienne Pretorius wrote: Hi All * users... Question: In extensions.conf - I am awaire that you can use macro's but what I am wondering about.. is that can you create a macro to do dynamic Zap channel allocation for a out going call? I don't want to reserve a channel/port in the TDM400P card for Out break calls, so i was just wandering if some1 could help me a bit over here. [outgoing] ;Dial 0 on the phone for external line exten = _0,1,Dial(Zap/4/$EXTEN) ;=== statically allocated to Zap/4 needs to be dynamic exten = _0,2,Goto(102) exten = _0,102,Congestion exten = _0,103,Hangup I'll apreciate any help in this regard. ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Dynamic Zap/{channel} allocation for out going possible?
On Sat, 2005-04-02 at 18:39 +0200, Etienne Pretorius wrote: Never Mind. oops. I just needed to play around with some syntax. Zap/1,2,3,4/$EXTEN Ps: Is there a better santax because 1-4 doesn't work. Look at groups in the /etc/asterisk/zaptel.conf Once you define your groups, you can just exten = _0,1,Dial(Zap/g1/$EXTEN) And asterisk will pick some available channel out of the channels defined in group 1 to use for dialing out. Hi All * users... Question: In extensions.conf - I am awaire that you can use macro's but what I am wondering about.. is that can you create a macro to do dynamic Zap channel allocation for a out going call? I don't want to reserve a channel/port in the TDM400P card for Out break calls, so i was just wandering if some1 could help me a bit over here. [outgoing] ;Dial 0 on the phone for external line exten = _0,1,Dial(Zap/4/$EXTEN) ;=== statically allocated to Zap/4 needs to be dynamic exten = _0,2,Goto(102) exten = _0,102,Congestion exten = _0,103,Hangup I'll apreciate any help in this regard. -- Steven Critchfield [EMAIL PROTECTED] ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Dynamic Zap/{channel} allocation for out going possible?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Etienne Pretorius wrote: Nope - I jumped to conclusions. It just tries channel 1 the whole time. Any ideas any1 Kind Regards Etienne Etienne Pretorius wrote: Never Mind. oops. I just needed to play around with some syntax. Zap/1,2,3,4/$EXTEN Ps: Is there a better santax because 1-4 doesn't work. Kind Regards Etienne Etienne Pretorius wrote: Hi All * users... Question: In extensions.conf - I am awaire that you can use macro's but what I am wondering about.. is that can you create a macro to do dynamic Zap channel allocation for a out going call? I don't want to reserve a channel/port in the TDM400P card for Out break calls, so i was just wandering if some1 could help me a bit over here. [outgoing] ;Dial 0 on the phone for external line exten = _0,1,Dial(Zap/4/$EXTEN) ;=== statically allocated to Zap/4 needs to be dynamic exten = _0,2,Goto(102) exten = _0,102,Congestion exten = _0,103,Hangup I'll apreciate any help in this regard. Allocate the channels to a group in zaptel.conf (group=1) then dial with Zap/g1 which will take the lowets available channel. - -- Ron Wellsted http://www.wellsted.org.uk [EMAIL PROTECTED] FWD:519961 Gossiptel:9309811 N 52.567623, W 2.137621 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iQEVAwUBQk7PoUtP/KMNOfRbAQKizQf/W17AS+4Z8EADCkJONbrw0goTELOeMWi7 h5jPndsFk303Rll8HXxyLWs1NzKCLinxGwmbCZ7jgKqc0GaFA84MI0KnUIUZjUNE cS26kk6s/kU/WvX81Aghzj3EYARHJNvUldsqHo+fd/SprLhpeB/tp6zq54trQ0yB cPqUbw256qub2L6l/rtrlDl2mqs/yVDfdmWvQSoSqzQLO6rnUZovYrGugmPhPWbB 6QEl/mxHgMisfPsyMtsudzajrm+ud+HLQ8Zgb8dmJAWrs8UpM4bxuqAPdtZM1dPQ DjTk45XYG3xK3fLyrRNzJtGvMKHWRcWcFi8DajPFEeUlYKGITH7jcg== =hgKU -END PGP SIGNATURE- ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Dynamic Zap/{channel} allocation for out going possible?
Thank you very much, that sorted out the problem. Kind Regards Etienne Steven Critchfield wrote: On Sat, 2005-04-02 at 18:39 +0200, Etienne Pretorius wrote: Never Mind. oops. I just needed to play around with some syntax. Zap/1,2,3,4/$EXTEN Ps: Is there a better santax because 1-4 doesn't work. Look at groups in the /etc/asterisk/zaptel.conf Once you define your groups, you can just exten = _0,1,Dial(Zap/g1/$EXTEN) And asterisk will pick some available channel out of the channels defined in group 1 to use for dialing out. Hi All * users... Question: In extensions.conf - I am awaire that you can use macro's but what I am wondering about.. is that can you create a macro to do dynamic Zap channel allocation for a out going call? I don't want to reserve a channel/port in the TDM400P card for "Out break" calls, so i was just wandering if some1 could help me a bit over here. [outgoing] ;Dial "0" on the phone for external line exten = _0,1,Dial(Zap/4/$EXTEN) ;=== statically allocated to Zap/4 needs to be dynamic exten = _0,2,Goto(102) exten = _0,102,Congestion exten = _0,103,Hangup I'll apreciate any help in this regard. ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Dynamic Zap/{channel} allocation for out going possible?
But what happens when the channel is busy etc? It does not seem to drop the "Attempt a naitive bridge". I saw this in the commented out section and thought that it'll work but well it still hangs at "Attempting a naitive bridge". [outgoing] ;Dial "0" on the phone for external line exten = _0,1,Dial(Zap/g2/$EXTEN) exten = _0,2,Goto(_0-${DIALSTATUS},1) ;Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER) exten = _0-ANSWER,1,Goto(_0,102) exten = _0-.,1,Goto(_0,1) ;Try another line exten = _0,102,Congestion exten = _0,103,Hangup Hints? Kind Regards Etienne Technical Support Kingsley Technologies Etienne Pretorius wrote: Thank you very much, that sorted out the problem. Kind Regards Etienne Steven Critchfield wrote: On Sat, 2005-04-02 at 18:39 +0200, Etienne Pretorius wrote: Never Mind. oops. I just needed to play around with some syntax. Zap/1,2,3,4/$EXTEN Ps: Is there a better santax because 1-4 doesn't work. Look at groups in the /etc/asterisk/zaptel.conf Once you define your groups, you can just exten = _0,1,Dial(Zap/g1/$EXTEN) And asterisk will pick some available channel out of the channels defined in group 1 to use for dialing out. Hi All * users... Question: In extensions.conf - I am awaire that you can use macro's but what I am wondering about.. is that can you create a macro to do dynamic Zap channel allocation for a out going call? I don't want to reserve a channel/port in the TDM400P card for "Out break" calls, so i was just wandering if some1 could help me a bit over here. [outgoing] ;Dial "0" on the phone for external line exten = _0,1,Dial(Zap/4/$EXTEN) ;=== statically allocated to Zap/4 needs to be dynamic exten = _0,2,Goto(102) exten = _0,102,Congestion exten = _0,103,Hangup I'll apreciate any help in this regard. ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users