[asterisk-users] Pressing 0 to get an external line

Grygoriy Dobrovolskyy megahohol at gmail.com
Thu Sep 11 08:55:05 CDT 2008


Yo can do it with Playtones(!440) !440 is for france seach yours in
indications.confhere is the example script from asterisk-france, the guy had
the exact same problem
[Appel_Sortant_Isdn]
exten => _0,1,Set(Flag_Playtone = 0)
exten => _0,n,Playtones(!440)
exten => _0,n(Continue),Read(Digits,,1,,,3)
exten => _0,n,GotoIf($["${LEN(${Digits})}" != "0"]?:Suite)
exten => _0,n,GotoIf($["${Flag_Playtone}" = "0" ]?Va_Indexer)
exten => _0,n,Set(Flag_Playtone = 1)
exten => _0,n,StopPlaytones
exten => _0,n(Va_Indexer),Set(Call_Number=$[${Call_Number}${Digits}])
exten => _0,n,Goto(Continue)
exten => _0,n(Suite),Answer
exten => _0,n,Set(CDR(userfield)=${Call_Number})
exten => _0,n,Dial(${Canal_Isdn}/${Call_Number},${dial_tout},T)
exten => _0,n,NoOp(Dial Status: ${DIALSTATUS})
exten => _0,n,Macro(Status_Dial|${DIALSTATUS})
exten => _0,n,hangup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080911/238398fe/attachment.htm 


More information about the asterisk-users mailing list