Pls help me on dial plan

Can any one please let me know whether dialplan of zap channel is correct or not.

Do i need to create each individual extension for each destination country and should i dedicate one channel, i wanted this dial plan with enabling roundrobin so that call could go from any of the 24 channels available for out going.

Im strucked becoz of this issue to move further.

Hi,

Not sure if this is what you want? But I think this will give you a clue.

;extensions.conf
[general]
static=yes
writeprotect=yes

[globals]
PSTN-TRUNK=Zap/G1
; g: select the lowest-numbered non-busy Zap channel
; (aka. ascending sequential hunt group).
; G: select the highest-numbered non-busy Zap channel
; (aka. descending sequential hunt group).
; r: use a round-robin search, starting at the next highest channel than last
; time (aka. ascending rotary hunt group).
; R: use a round-robin search, starting at the next lowest channel than last
; time (aka. descending rotary hunt group).

[outgoing]
exten => _X.,1,Dial(${PSTN-TRUNK}/${EXTEN})
exten => _X.,2,Hangup()

;zapata.conf
[trunkgroups]

[channels]
language=au
context=incoming
group=1
signalling=fxs_ks
channel=>1-24

;zaptel.conf
loadzone=au
defaultzone=au
fxsks=1-24