[asterisk-users] Wise selecting of outgoing channel

Sherwood McGowan sherwood.mcgowan at gmail.com
Thu Dec 23 19:03:44 UTC 2010


2010/12/23 Сикорский Сергей <s.sikorsky at lanet.ua>:
>> -----Original Message-----
>>>
>>> From: asterisk-users-bounces at lists.digium.com
>>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of ?????????
>>> ??????
>>> Sent: Wednesday, December 22, 2010 4:22 AM
>>> To: asterisk-users at lists.digium.com
>>> Subject: [asterisk-users] Wise selecting of outgoing channel
>>>
>>> Hi.
>>>
>>> We have 3 channel for _outgoing_ calls and would like to use them equally
>>> (by turn).
>>>
>>> Is there any 'queue' for outgoing calls? Now I have to select the second
>>> channel manually when the first is busy and so on.
>>>
>>> Does Asterisk have any functionality to do it automatically?
>>
>> That's what the G and R functions of dial are for.  Dial(DAHDI/G1) selects
>> the 3 lines in reverse order (3,2,1).  Dial(DAHDI/g1) selects them in
>> ascending order (123).  Dial(DAHDI/r1) is "round-robin" and Dial(DAHDI/R1)
>> is "round-robin-reverse".  This is defined in the Asterisk Guide.
>
> Yes, that's how it works for PRI. But what about three _different_
> independent SIP channels to GSM-gateways?
>
>
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>                http://www.asterisk.org/hello
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> --
> Sergej Sikorsky, Head of IT Department of Lanet Network LTD
> Tel.: +38 096 29-79-299
> www.lanet.ua
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>              http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>  http://lists.digium.com/mailman/listinfo/asterisk-users
>

In order to "wisely" select which channel to use in your case, you'll
want to basically store in a global variable which channel was the
last used and then based on that choose which the next one to be used
is (and update the global variable before dialing).

This has been covered before in the mailing list



More information about the asterisk-users mailing list