Hi Amit OK, the majority of our calls go out via zaptel fxo and pstn lines. When these are all busy, calls are routed via a VOIP provider here in the UK. All activity is recorded in our logs, and I can find no trace of either 999 or 112 (if since been reminded that in the UK, you can now also use 112 which is consistent with continental Europe). I can't find a call placed at the relevant time that had these numbers, even as mid-part of a string. Below is the part which deals with our external calls. As you can see, calls are routed out via zap, or VOIP (that's the gradwell bit). If someone prefixes a call with "9" it forces it our via VOIP and if someone dials "999" it is intercepted and sent via the zap channels. If no zap channel is free, a call on channel 1 is ended and the number re-dialled. This makes sure that emergency calls can always be placed on a landline. Any ideas would be appreciated! Phil [softoption-zap] exten => _0[123456789].,1,NoOp(${EXTEN}) exten => _0[123456789].,2,Dial(Zap/g0/${EXTEN},,j) exten => _0[123456789].,103,Dial(IAX2/Gradwell/44${EXTEN:1},,) exten => _00[1-9].,1,Dial(IAX2/Gradwell/${EXTEN:2},,) exten => _90[123456789].,1,Dial(IAX2/Gradwell/44${EXTEN:2},,) ; The below section will allow for 3 digit BT numbers to be called, by prefixing them with 9 ; For example: 154 is BT Business Faults - dial 9154 exten => _9[123456789]XX,1,NoOp(${EXTEN}) exten => _9[123456789]XX,2,Dial(Zap/g0/${EXTEN:1},,j) ; The below section will allow for 999 Emergency calls to be made. This will FORCE these calls ; over our BT lines, which will provide CallerID and location information to the Emergency Operator ; If there are no BT lines free, it will force a call to end and then dial exten => 999,1,NoOp(999) exten => 999,2,Dial(Zap/g0/999,,j) exten => 999,3,Hangup() exten => 999,102,SoftHangup(Zap/1-1) exten => 999,103,Wait(1) exten => 999,104,Goto(1) [softoption-gradwell] exten => _00[1-9].,1,Dial(IAX2/Gradwell/${EXTEN:2},,) exten => _0[123456789].,1,Dial(IAX2/Gradwell/44${EXTEN:1},,) exten => _[1-9]XXXXX,1,Dial(IAX2/Gradwell/441353${EXTEN},,) ________________________________ From: amit salunkhe [mailto:amitsalunkhe21 at gmail.com] Sent: 14 February 2008 07:44 To: Phil Knighton Subject: UK -999 dialing issue HI Phil Can u send me ur out call context config. Also tell me what ur using with Asterisk to make out call SIp-Voip or Pstn line with Fxo card? also check with this command in ur Asterisk console. sip show peers so u can get anybody from out side place such call inbehalf of u. check who & how many user regsiter with ur Asterisk. if ur using FXO card then also there is chance to check this. also use Mysql for CDR table tocheck who try to call at time. so u got any hint for this Regards Amit
On Thu, 14 Feb 2008, Phil Knighton wrote:> [softoption-zap] > > exten => _0[123456789].,1,NoOp(${EXTEN}) > exten => _0[123456789].,2,Dial(Zap/g0/${EXTEN},,j) > exten => _0[123456789].,103,Dial(IAX2/Gradwell/44${EXTEN:1},,) > exten => _00[1-9].,1,Dial(IAX2/Gradwell/${EXTEN:2},,) > exten => _90[123456789].,1,Dial(IAX2/Gradwell/44${EXTEN:2},,)OMG!!! You're selecting 2 different output channels depending on the number dialled!!! (UK or international)... That's ... LCR!!! In ... Dialplan!!! And according to a recent thread, that's like ... impossible, not recommended, really really hard, with databases and external hardware required, etc. (!!!) (sorry) Gordon (dialplan junkie)
> [softoption-zap] > > exten => _0[123456789].,1,NoOp(${EXTEN}) > exten => _0[123456789].,2,Dial(Zap/g0/${EXTEN},,j) > exten => _0[123456789].,103,Dial(IAX2/Gradwell/44${EXTEN:1},,) > exten => _00[1-9].,1,Dial(IAX2/Gradwell/${EXTEN:2},,) > exten => _90[123456789].,1,Dial(IAX2/Gradwell/44${EXTEN:2},,)Just an aside - 1) For clarity, could you use 'Z' here instead of '[123456789]'? 2) It does not look like you would be able to dial numbers that start with 0[123456789] and then have subsequent zeros (e.g. 01xx xxx 0000) - is that your intent?
"Steve Langstaff" <steve.langstaff at citel.com> writes:>> [softoption-zap] >> >> exten => _0[123456789].,1,NoOp(${EXTEN}) >> exten => _0[123456789].,2,Dial(Zap/g0/${EXTEN},,j) >> exten => _0[123456789].,103,Dial(IAX2/Gradwell/44${EXTEN:1},,) >> exten => _00[1-9].,1,Dial(IAX2/Gradwell/${EXTEN:2},,) >> exten => _90[123456789].,1,Dial(IAX2/Gradwell/44${EXTEN:2},,)[..]> 2) It does not look like you would be able to dial numbers that > start with 0[123456789] and then have subsequent zeros > (e.g. 01xx xxx 0000) - is that your intent?. does not repeat the previous pattern, it simply matches one or more of anything. _0Z. will happily match 0100000. /Benny
On Thursday 14 February 2008 03:39:33 Phil Knighton wrote:> OK, the majority of our calls go out via zaptel fxo and pstn lines. > When these are all busy, calls are routed via a VOIP provider here in > the UK. All activity is recorded in our logs, and I can find no trace > of either 999 or 112 (if since been reminded that in the UK, you can now > also use 112 which is consistent with continental Europe). > > I can't find a call placed at the relevant time that had these numbers, > even as mid-part of a string.I had a recent run-in with the provider who provides my toll-free numbers, as they had gotten a subpoena for the identity of the customer who ran some toll-frees that were being used for fraudulent purposes. It turns out that they had two number transposed prior to getting the subpoena, so not only did they have the wrong customer, they subpoenaed the wrong provider. Consider that if the police will not provide you records of the call, they may have already discovered that they queried the wrong provider. -- Tilghman
> From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > Benny Amorsen > Sent: 14 February 2008 13:57> "Steve Langstaff" <steve.langstaff at citel.com> writes: > > >> [softoption-zap] > >> > >> exten => _0[123456789].,1,NoOp(${EXTEN}) exten => > >> _0[123456789].,2,Dial(Zap/g0/${EXTEN},,j) > >> exten => _0[123456789].,103,Dial(IAX2/Gradwell/44${EXTEN:1},,) > >> exten => _00[1-9].,1,Dial(IAX2/Gradwell/${EXTEN:2},,) > >> exten => _90[123456789].,1,Dial(IAX2/Gradwell/44${EXTEN:2},,) > > [..] > > 2) It does not look like you would be able to dial numbers that > > start with 0[123456789] and then have subsequent zeros > > (e.g. 01xx xxx 0000) - is that your intent? > > . does not repeat the previous pattern, it simply matches one > or more of anything. _0Z. will happily match 0100000.Oops! Yes, I see that now - my fault for confusing Asterisk pattern matching with RFC3435 pattern matching. Sorry.
"Steve Langstaff" <steve.langstaff at citel.com> writes:> Oops! Yes, I see that now - my fault for confusing Asterisk pattern > matching with RFC3435 pattern matching. Sorry.Unfortunately inventing a new regex syntax seems to be a favourite pastime. Perhaps it would be possible to allow exten => /00.*/,Dial... It might cause problems with the ex-GF syntax. Another starting character could mean RFC3435 pattern matching. /Benny