my zapata.conf:
[channels]
echocancel=no
echocancelwhenbridged=no
echotraining=400
usecallerid=yes
;callprogress=yes
busydetect=yes
context=MainMenu
signalling=fxs_ks
group = 1
channel => 1
my tonezone i created for costa rica:
{ 34, "cr", "Costa Rica", { 1200, 4900 },
{
{ ZT_TONE_DIALTONE, "450" },
{ ZT_TONE_BUSY, "450/330,0/330,0" },
{ ZT_TONE_RINGTONE, "450/1200,0/4900,0" },
{ ZT_TONE_CONGESTION, "450/330,0/330,0" },
},
},
Based on data taken from itu.int seen here:
Costa Rica
Busy tone - 450 0.33 on 0.33 off
Congestion tone - 450 0.33 on 0.33 off
Dial tone - 450 continuous
Ringing tone - 450 1.2 on 4.9 off
Warning tone - operator intervening 425 0.17 on 0.17 off 0.5 on 0.17 off
Call waiting tone - 450 0.15 on 0.15 off 0.15 on 8.0 off
mainMenu context that the call ends up in:
exten => s,1,Answer
exten => s,2,SetVar(LANG=es)
exten => s,3,SetVar(COUNTER=0)
exten => s,4,Wait(2)
exten => s,5,NoOp
exten => s,6,Playtones(!950/330,!1400/330,!1800/330,0)
exten => s,7,Dial(SIP/103,30,tr)