On 2/7/08, Olivier <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is it possible and safe to split or balance outgoing calls to 2 different
> sip-to-tdm voice gateways ?
>
> I need 5 E1 ports and the boxes have 4 ports each.
> Setup would be :
>
> PSTN --<1xE1>-- Gateway1 ---<2xE1>---- PBX ---- TDM phones
>                                 |
>                              LAN ------------------ Asterisk ----- SIP
> Phones
>                                |
> PSTN --<1xE1>-- Gateway2 ---<1xE1>---- PBX ---- TDM Phones
>
> Regards
>

Sure:

context dial-out {
  _X. => {
    if ("${GROUP_COUNT(gw2)}">"${GROUP_COUNT(gw1)}") {
      Set(OUTBOUND_GROUP=gw1)
      Dial(SIP/[EMAIL PROTECTED])
    } else {
      Set(OUTBOUND_GROUP=gw2)
      Dial(SIP/[EMAIL PROTECTED])
    }
  }
}

Regards,
Atis

-- 
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
[EMAIL PROTECTED]
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to