Christian Victor
2008-Sep-09 22:04 UTC
[asterisk-users] Pressing 0 to get an external line
Hi Asterisk users! I have a little problem with an Asterisk 1.4.22 installation for a customer. The PBX is connected to an E1 line and we have a few snom 300 attached to it. The goal is to emulate traditional german PBX behaviour wich is the play a stuttered "internal" dialtone after pickup and accept all internal extensions. If a specific "get office" digit - usually 0 - is pressed you get the normal dialtone. Now you can enter the external telephone number end get connected immediately without pressing "dial" on the snom phone. My problem here is first to implement this internal/external dialtone and second to make the phone dial without pressing "dial" on the phone. Because the length of telephone numbers in germany is not constant we will have to implement this with a timeout or by somehow overlap-dialing digit by tigit to the E1. I hope one of you already implemented this behaviour or can maybe push me in the right direction. Thanks a lot Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080910/8fc486f1/attachment.htm
Lee, John (Sydney)
2008-Sep-10 00:38 UTC
[asterisk-users] Pressing 0 to get an external line
> The goal is to emulate traditional german PBX behaviour wich is theplay> a stuttered "internal" dialtone after pickup and accept all internal > extensions. If a specific "get office" digit - usually 0 - is pressed > you get the normal dialtone. Now you can enter the external telephone > number end get connected immediately without pressing "dial" on thesnom> phone.My advice is to forget about "dial 0 to get to the outside line" mentality when using Asterisk. However, you can easily implement "dial 0 to get to the outside line" in Asterisk but the problem is once 0 is dialled, it is totally outside Asterisk's control. For example, you cannot use Asterisk to bar some numbers which you don't want users to call. Because of the varied nature of the telephone numbers that people may dial, I think it makes sense to get the users to press dial or send after they have enter their number.
Hello, please read bellow: On Tue, Sep 9, 2008 at 11:04 PM, Christian Victor <christian at victormedia.de> wrote:> Hi Asterisk users! > > I have a little problem with an Asterisk 1.4.22 installation for a > customer. The PBX is connected to an E1 line and we have a few snom 300 > attached to it. > > The goal is to emulate traditional german PBX behaviour wich is the play > a stuttered "internal" dialtone after pickup and accept all internal > extensions. If a specific "get office" digit - usually 0 - is pressed > you get the normal dialtone. Now you can enter the external telephone > number end get connected immediately without pressing "dial" on the snom > phone. > > My problem here is first to implement this internal/external dialtoneYou can use DISA application without authentication to fake the dialtone of traditional german PBX.> and second to make the phone dial without pressing "dial" on the phone.This might be a first scratch exten => _X.,1,Answer exten => _X.,2,DigitTimeout(5) exten => _X.,3,ResponseTimeout(10) exten => _X.,4,DISA(no-password|mycontext) And with this DigitTimeout and Response Timeout you may solve the need to press dial I guess... Looking forward to hearing from you. Kind regards, Mouta> Because the length of telephone numbers in germany is not constant we > will have to implement this with a timeout or by somehow overlap-dialing > digit by tigit to the E1. > > I hope one of you already implemented this behaviour or can maybe push > me in the right direction. > > Thanks a lot > Christian > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Esta mensagem (incluindo quaisquer anexos) pode conter informa??o confidencial para uso exclusivo do destinat?rio. Se n?o for o destinat?rio pretendido, n?o dever? usar, distribuir ou copiar este e-mail. Se recebeu esta mensagem por engano, por favor informe o emissor e elimine-a imediatamente. Obrigado. This e-mail message is intended only for individual(s) to whom it is addressed and may contain information that is privileged, confidential, proprietary, or otherwise exempt from disclosure under applicable law. If you believe you have received this message in error, please advise the sender by return e-mail and delete it from your mailbox. Thank you.
Grygoriy Dobrovolskyy
2008-Sep-11 13:55 UTC
[asterisk-users] Pressing 0 to get an external line
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