[asterisk-users] second trunk in extensions.conf

Godson Gera godson.g at gmail.com
Thu Dec 25 02:27:01 CST 2008


On Tue, Dec 23, 2008 at 7:32 PM, Nick Wolf <newx22 at gmail.com> wrote:

> I have a TE210P digium card that has 2 E1/T1 ports.
>
> the code in my extensions.conf file for span 1 is  :
>
> [globals]
> CONSOLE=Console/dsp                             ; Console interface for
> demo
> TRUNK=Zap/g1                                    ; Trunk interface
> TRUNKX=Zap/g2                                   ; 2nd trunk interface
> ...
> ...
> ; dial a long distance outbound number to SPAIN
> ; This 'o' Dial flag is VERY important for VICIDIAL on outbound calls,
> exten => _00034XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
> exten => _00034XXXXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},55,To)
> exten => _00034XXXXXXXXX,3,Hangup
> ...
> ...
> and it works fine, but I need to start working with my second span & I
> don't know how to add it in extensions.conf file.
>
>
you either bring both the trunks under one group in zapata.conf or replace
TRUNK with TRUNKX in your dial command, how ever that would leave first runk
idle, also you can add one more dial command as show below

exten => _00034XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _00034XXXXXXXXX,2,Dial(${TRUNK}/${EXTEN:1},55,To)
exten => _00034XXXXXXXXX,3,Dial(${TRUNKX}/${EXTEN:1},55,To)
exten => _00034XXXXXXXXX,4,Hangup
-- 
Thanks & Regards,
Godson Gera
<goog_1230183919974>Asterisk Consultant
Hyderabad<http://godson.in/voip-asterisk-consultant-hyderabad-india>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081225/108570c3/attachment.htm 


More information about the asterisk-users mailing list