RE: [Asterisk-Users] Dial Plan Format Strings

2004-04-13 Thread Matt Bridges
I had exactly the same question.  There is some really useful documentation
on voip-info.org regarding the extensions.conf syntax.

 

-Original Message-
From: Brian Cuthie [mailto:[EMAIL PROTECTED] 
Sent: 13 April 2004 15:19
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Dial Plan Format Strings


Try something like this:

 exten => _9NXX,1,Dial,IAX2/[EMAIL PROTECTED]/1${NPA}${EXTEN:1}
 ...

-brian

Nik Martin wrote:

>In the absence of "The Definitive Guide to Asterisk Dial Plans" book, 
>I'd like to do something possibly unique with the formatting of 
>extensions in my dial plan, and am having trouble.  We use VoicePulse 
>connect, which gives us local DID for inbound and outbound calls (even 
>though DTMF tones are not working in Voice Pulse Connect at the 
>moment).  To dial local numbers, you have to dial the entire number, 
>like 1 + area code + number. I'd like to eliminate this by having the 
>user just dial 9 + 7 digit number, and have asterisk put the 1 + area 
>code (which is in a variable in extensions.conf) in front of it prior 
>to sending the request to Voice Pulse.  Is this possible?
>
>
>Thanks,
>
>Nik Martin
>
>
>___
>Asterisk-Users mailing list
>[EMAIL PROTECTED]
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>  
>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Dial Plan Format Strings

2004-04-13 Thread Benjamin Wakefield



have to dial the entire number, like 1 + area code + number. I'd like to
eliminate this by having the user just dial 9 + 7 digit number, and have
asterisk put the 1 + area code (which is in a variable in
extensions.conf)
in front of it prior to sending the request to Voice Pulse.  Is this
possible? 



Sure it's possible! Asterisk can do anything!

exten => _9XXX,1,Dial(Technology/123/1212${EXTEN:1})

See after the: "Technology/123/" there is a "1212" you can make that
your "1 + area code"

Then the: "${EXTEN:1}" dumps in the number that was dialled and chops
off the first (1) digit, which is the 9.

:)
Ben

Benjamin Wakefield
[EMAIL PROTECTED]
http://www.dcsi.net.au/
DCSI - We do Internet.
64 Queen Street
Warragul, VIC 3820 AU
Ph: (+61) 1300 665 575
Fx: (+61) 1300 556 595

-BEGIN GEEK CODE BLOCK-
Version: 3.12
G! d- s: a-- C+ UL++ P+ L++ E W+ N+ o- K- w+$ O--- M-- V? PS !PE Y--
PGP- t 5 X+ R- tv b- DI-- D--- G-- e* h* r- z++
--END GEEK CODE BLOCK--




___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Dial Plan Format Strings

2004-04-13 Thread Brian Cuthie
Try something like this:

exten => _9NXX,1,Dial,IAX2/[EMAIL PROTECTED]/1${NPA}${EXTEN:1}
...
-brian

Nik Martin wrote:

In the absence of "The Definitive Guide to Asterisk Dial Plans" book, I'd
like to do something possibly unique with the formatting of extensions in my
dial plan, and am having trouble.  We use VoicePulse connect, which gives us
local DID for inbound and outbound calls (even though DTMF tones are not
working in Voice Pulse Connect at the moment).  To dial local numbers, you
have to dial the entire number, like 1 + area code + number. I'd like to
eliminate this by having the user just dial 9 + 7 digit number, and have
asterisk put the 1 + area code (which is in a variable in extensions.conf)
in front of it prior to sending the request to Voice Pulse.  Is this
possible? 

Thanks,

Nik Martin

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
 

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Dial Plan Format Strings

2004-04-13 Thread Nik Martin
Ahh, the {EXTEN:1} must serve to skip the 1st character of the extension,
stripping the 9 off
That's what I needed, thanks!

-Original Message-
From: Austin M. Brower [mailto:[EMAIL PROTECTED] On Behalf Of
Austin M. Brower
Sent: Tuesday, April 13, 2004 9:11 AM
To: Nik Martin
Subject: Re: [Asterisk-Users] Dial Plan Format Strings


Nik,
I use NuFone, but here's how I do it (my area code is 207):

exten => _9NXX,7,Dial(IAX2/[EMAIL PROTECTED]/1207${EXTEN:1})

Good luck,
Austin

On Tue, Apr 13, 2004 at 08:13:19AM -0500, Nik Martin wrote:
> In the absence of "The Definitive Guide to Asterisk Dial Plans" book, 
> I'd like to do something possibly unique with the formatting of 
> extensions in my dial plan, and am having trouble.  We use VoicePulse 
> connect, which gives us local DID for inbound and outbound calls (even 
> though DTMF tones are not working in Voice Pulse Connect at the 
> moment).  To dial local numbers, you have to dial the entire number, 
> like 1 + area code + number. I'd like to eliminate this by having the 
> user just dial 9 + 7 digit number, and have asterisk put the 1 + area 
> code (which is in a variable in extensions.conf) in front of it prior 
> to sending the request to Voice Pulse.  Is this possible?
> 
> 
> Thanks,
> 
> Nik Martin
> 
> 
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED] 
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users