[Asterisk-Users] Dynamic Zap/{channel} allocation for out going possible?

Etienne Pretorius etiennep at kingsley.co.za
Sat Apr 2 09:49:00 MST 2005


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 at 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





More information about the asterisk-users mailing list