Re: [asterisk-users] How to handle + prefix

2007-09-03 Thread Adrian Marsh
The Goto solutions worked fine for me, substitute a 00 for the +, then pass
onto our carriers who take it from there.

Thanks for all the feedback though.  Most amusing.. :)


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brandon Kruse
Sent: 02 September 2007 17:45
To: [EMAIL PROTECTED]; Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to handle + prefix

I had to do some work on the GUI for bandwidth, which sends
and matches + on every number.

To combat this, I just added one that says
exten = +extensionhere,1,Goto(${EXTEN:1})
exten = extensionhere,1,Noop(sweet.)

-bk
- Original Message -
From: Steve Murphy [EMAIL PROTECTED]
To: Asterisk Users Mailing List - Non-Commercial Discussion
asterisk-users@lists.digium.com
Sent: Saturday, September 1, 2007 5:49:17 PM (GMT-0800) America/Los_Angeles
Subject: Re: [asterisk-users] How to handle + prefix

On Thu, 2007-08-30 at 10:17 -0500, Brian West wrote:
 On Aug 30, 2007, at 10:11 AM, Jared Smith wrote:
 
  On Thu, 2007-08-30 at 15:42 +0100, Adrian Marsh wrote:
  Is there a way of using variables within the dialplan, eg:
 
  [globals]
  SOMEVAR=0179344
 
  [local]
  exten = _${SOMEVAR}.,1,NoOp(Dialled own number)
 
  No, unfortunately you can't use variables as part of the extension  
  name
  or pattern match.
 
 
 
 Since when?  I knew you couldn't use them for pattern matches but in  
 1.2 you could at one point I tested this personally.

Brian's right. But, the variable has to be a global, and is evaluated at
the time the extensions.conf file is read in; so, really, it's a
constant, and isn't evaluated at all at dial time. So, if you do one of
those dialplan show things, you'll see that the variable has been
substituted. Just had to fix a bug where AEL didn't provide the same
service.

murf


-- 
Steve Murphy
Software Developer
Digium


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


smime.p7s
Description: S/MIME cryptographic signature
___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] How to handle + prefix

2007-09-02 Thread Anthony Francis
nope! ^^ I have never been to Europe.

Dovid B wrote:
 snip
   
 How then does a users phone dials this. I have never seen a phone with + 
 on the keypad, nor have I ever seen dail plan logic in a phone that 
 could correctly handle the variable length issue of international 
 numbers in order to do a rewrite and send the + in front. 
 
 /snip

 Then you must have never been to Ireland ;)


 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   

-- 
Thank you and have a wonderful day,

Anthony Francis
Rockynet VOIP
(303) 444-7052 opt 2
[EMAIL PROTECTED]


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-09-02 Thread Brandon Kruse
I had to do some work on the GUI for bandwidth, which sends
and matches + on every number.

To combat this, I just added one that says
exten = +extensionhere,1,Goto(${EXTEN:1})
exten = extensionhere,1,Noop(sweet.)

-bk
- Original Message -
From: Steve Murphy [EMAIL PROTECTED]
To: Asterisk Users Mailing List - Non-Commercial Discussion 
asterisk-users@lists.digium.com
Sent: Saturday, September 1, 2007 5:49:17 PM (GMT-0800) America/Los_Angeles
Subject: Re: [asterisk-users] How to handle + prefix

On Thu, 2007-08-30 at 10:17 -0500, Brian West wrote:
 On Aug 30, 2007, at 10:11 AM, Jared Smith wrote:
 
  On Thu, 2007-08-30 at 15:42 +0100, Adrian Marsh wrote:
  Is there a way of using variables within the dialplan, eg:
 
  [globals]
  SOMEVAR=0179344
 
  [local]
  exten = _${SOMEVAR}.,1,NoOp(Dialled own number)
 
  No, unfortunately you can't use variables as part of the extension  
  name
  or pattern match.
 
 
 
 Since when?  I knew you couldn't use them for pattern matches but in  
 1.2 you could at one point I tested this personally.

Brian's right. But, the variable has to be a global, and is evaluated at
the time the extensions.conf file is read in; so, really, it's a
constant, and isn't evaluated at all at dial time. So, if you do one of
those dialplan show things, you'll see that the variable has been
substituted. Just had to fix a bug where AEL didn't provide the same
service.

murf


-- 
Steve Murphy
Software Developer
Digium


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-09-01 Thread Benny Amorsen
 AF == Anthony Francis [EMAIL PROTECTED] writes:

AF I knew that was true about GSM networks outside of the US, but to
AF be honest, I am not concerned with those networks ^^.

 On 8/31/07, Anthony Francis [EMAIL PROTECTED] wrote:

 Mindfully wanting to use a + instead of knowing the international
 access code seems like willful ignorance to me.

Now who is being willfully ignorant?


/Benny



___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-09-01 Thread Anthony Francis
Not being concerned does not == ignorant.4

Benny Amorsen wrote:
 AF == Anthony Francis [EMAIL PROTECTED] writes:
 

 AF I knew that was true about GSM networks outside of the US, but to
 AF be honest, I am not concerned with those networks ^^.

   
 On 8/31/07, Anthony Francis [EMAIL PROTECTED] wrote:
   

   
 Mindfully wanting to use a + instead of knowing the international
 access code seems like willful ignorance to me.
 

 Now who is being willfully ignorant?


 /Benny



 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   

-- 
Thank you and have a wonderful day,

Anthony Francis
Rockynet VOIP
(303) 444-7052 opt 2
[EMAIL PROTECTED]


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-09-01 Thread SIP
Actually, when someone asked a legitimate question about how to account 
for a + sign, you jumped into the thread saying that such things were 
useless and that people should just learn how to dial 011 since that's 
all a plus sign means.  When it was pointed out that it IS, in fact, a 
legitimate concern, and that there are many situations in which 
accounting for a + being dialed are advantageous, you come back with a 
statement about how that's outside the US, so you're not concerned with 
that.

For someone who reads offense into pretty unoffensive posts, your 
attitude is pretty offensive. If you had nothing worthwhile to add to 
the thread other than statements about how people outside the US do 
things you don't understand and don't care about, then perhaps it would 
have been a good idea just to stay quiet.

N.


Anthony Francis wrote:
 Not being concerned does not == ignorant.4

 Benny Amorsen wrote:
   
 AF == Anthony Francis [EMAIL PROTECTED] writes:
 
   
 AF I knew that was true about GSM networks outside of the US, but to
 AF be honest, I am not concerned with those networks ^^.

   
 
 On 8/31/07, Anthony Francis [EMAIL PROTECTED] wrote:
   
 
   
 
 Mindfully wanting to use a + instead of knowing the international
 access code seems like willful ignorance to me.
 
   
 Now who is being willfully ignorant?


 /Benny



 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   
 

   


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-09-01 Thread Steve Murphy
On Thu, 2007-08-30 at 10:17 -0500, Brian West wrote:
 On Aug 30, 2007, at 10:11 AM, Jared Smith wrote:
 
  On Thu, 2007-08-30 at 15:42 +0100, Adrian Marsh wrote:
  Is there a way of using variables within the dialplan, eg:
 
  [globals]
  SOMEVAR=0179344
 
  [local]
  exten = _${SOMEVAR}.,1,NoOp(Dialled own number)
 
  No, unfortunately you can't use variables as part of the extension  
  name
  or pattern match.
 
 
 
 Since when?  I knew you couldn't use them for pattern matches but in  
 1.2 you could at one point I tested this personally.

Brian's right. But, the variable has to be a global, and is evaluated at
the time the extensions.conf file is read in; so, really, it's a
constant, and isn't evaluated at all at dial time. So, if you do one of
those dialplan show things, you'll see that the variable has been
substituted. Just had to fix a bug where AEL didn't provide the same
service.

murf


-- 
Steve Murphy
Software Developer
Digium


smime.p7s
Description: S/MIME cryptographic signature
___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] How to handle + prefix

2007-09-01 Thread Dovid B
snip
 How then does a users phone dials this. I have never seen a phone with + 
 on the keypad, nor have I ever seen dail plan logic in a phone that 
 could correctly handle the variable length issue of international 
 numbers in order to do a rewrite and send the + in front. 
/snip

Then you must have never been to Ireland ;)


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-31 Thread Adrian Marsh
Hi Dovid,

Because there may be complex logic in other parts of the context for
handling different countries in a different way, so I wouldn't want to
duplicate that Dial logic.  Easier to jump back to the beginning of the
context and have the digits replaced.

I original spoke to the nice folks at Zoiper about this, and they told
me that they intentionally do pass the +  Mostly I expect because the
client may not know the international prefix (011 inside the US, 00
inside the uk, etc).  +  is the international standard for exactly this
reason, and therefore as N. says the A*k server should deal with this.


Adrian Marsh

 
Why not just use Exten = _+.,1,Goto(011${EXTEN:1})
Exten = _011.,1,Dial(.. 


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-31 Thread Anthony Francis
Adrian Marsh wrote:
 Hi Dovid,

 Because there may be complex logic in other parts of the context for
 handling different countries in a different way, so I wouldn't want to
 duplicate that Dial logic.  Easier to jump back to the beginning of the
 context and have the digits replaced.

 I original spoke to the nice folks at Zoiper about this, and they told
 me that they intentionally do pass the +  Mostly I expect because the
 client may not know the international prefix (011 inside the US, 00
 inside the uk, etc).  +  is the international standard for exactly this
 reason, and therefore as N. says the A*k server should deal with this.


 Adrian Marsh

  
 Why not just use Exten = _+.,1,Goto(011${EXTEN:1})
 Exten = _011.,1,Dial(.. 


 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   
How then does a users phone dials this. I have never seen a phone with + 
on the keypad, nor have I ever seen dail plan logic in a phone that 
could correctly handle the variable length issue of international 
numbers in order to do a rewrite and send the + in front. I work mainly 
with Cisco and Aastra phones but I have never once seen a user dialed 
call ever have an actual + instead of the code that the meta  implies. 
In fact the only reference  I could find to + being an actual character 
is on GSM networks. Still the user would have to use a special input 
mode to dial this as it is not on their keypad.



___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-31 Thread SIP
Anthony Francis wrote:
 Adrian Marsh wrote:
   
 Hi Dovid,

 Because there may be complex logic in other parts of the context for
 handling different countries in a different way, so I wouldn't want to
 duplicate that Dial logic.  Easier to jump back to the beginning of the
 context and have the digits replaced.

 I original spoke to the nice folks at Zoiper about this, and they told
 me that they intentionally do pass the +  Mostly I expect because the
 client may not know the international prefix (011 inside the US, 00
 inside the uk, etc).  +  is the international standard for exactly this
 reason, and therefore as N. says the A*k server should deal with this.


 Adrian Marsh

  
 Why not just use Exten = _+.,1,Goto(011${EXTEN:1})
 Exten = _011.,1,Dial(.. 


 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   
 
 How then does a users phone dials this. I have never seen a phone with + 
 on the keypad, nor have I ever seen dail plan logic in a phone that 
 could correctly handle the variable length issue of international 
 numbers in order to do a rewrite and send the + in front. I work mainly 
 with Cisco and Aastra phones but I have never once seen a user dialed 
 call ever have an actual + instead of the code that the meta  implies. 
 In fact the only reference  I could find to + being an actual character 
 is on GSM networks. Still the user would have to use a special input 
 mode to dial this as it is not on their keypad.




   

Actually, on MOST cell phones, dialing a ** gives you a +.  When dialing 
on many hardware VoIP phones, you can either dial via the web interface 
(many of our users do that, and they just type a + like a normal human) 
or you can dial by the phone keypad in which case + is available in the 
same meny with the @ symbol (remember, these are SIP-capable phones -- 
without an @ symbol, it's a poorly designed phone).

 From softphones, you just type a +.  Rather easy and somewhat 
ubiquitous, really.

N.

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-31 Thread Anthony Francis
SIP wrote:

(many of our users do that, and they just type a + like a normal human) 

I don't know if you intended to be rude with the normal human comment but it 
sure seems like it when reading your reply. Also how many users know they can 
dial ** to get a +? Especially when so many cannot as said earlier be relied 
upon to know their country access code. I guess my point is if there isn't a + 
key on the phone, and on most there is not, then it simply shouldn't be used. 
Mindfully wanting to use a + instead of knowing the international access code 
seems like willful ignorance to me.



___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-31 Thread Mr Shunz
On 8/31/07, Anthony Francis [EMAIL PROTECTED] wrote:

 I don't know if you intended to be rude with the normal
 human comment but it sure seems like it when reading your
 reply. Also how many users know they can dial ** to get a +?
 Especially when so many cannot as said earlier be relied upon
 to know their country access code. I guess my point is if
 there isn't a + key on the phone, and on most there is not,
 then it simply shouldn't be used. Mindfully wanting to use a +
 instead of knowing the international access code seems like
 willful ignorance to me.

Actually here in Italy cell phone companies send you the caller
id ALWAYS with the international prefix (as +39) so i (and every
one i know) have the address book filled with numbers like
+393... Having tested various GSM + WiFi + SIP phones
we had to take care of this case

actually we use to call only Italy so we have smth like:

exten = _+39.,1,Macro(dialCell)

and

[macro-dialCell]
exten = s,1,Dial(OH323/${MACRO_EXTEN:[EMAIL PROTECTED],,TW)

cheers

-- 
Daniele Santi.o.
[EMAIL PROTECTED]..o
Linux User #415108   ooo

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-31 Thread Kai-Uwe Jensen
On 8/31/07, Anthony Francis [EMAIL PROTECTED] wrote:

  Mindfully wanting to use a + instead of knowing the international access 
 code seems like willful ignorance to me.

I beg to differ. Consider cell phones as an example. They all provide
+ keys. And it is considered a best practice to store phone numbers in
address books as + country_code area_code number so that you can
change locations (ever traveled to Europe?) easily, without having to
reprogram all your contacts' numbers.

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-31 Thread Rob Townley
i live in the US, but travel.  i will second this ... Vodafone in Europe
will give you a discount when you dial with a '+' instead of the local
access code.  Probably because Europeans roam in many foreign countries each
with a different access code for long distance dialing.  That would be
messy, detect which country the user is calling in before pattern matching
the phone # ... takes time and slows down calls per minute.  '+' dialing
should be supported out of the box.

Putting a '+' in your Yahoo address book and then syncing that to your phone
is easy.  That way, i can always dial that +0353 from whichever country i
happen to be in at the time.

On 8/31/07, Mr Shunz [EMAIL PROTECTED] wrote:

 On 8/31/07, Anthony Francis [EMAIL PROTECTED] wrote:
 
  I don't know if you intended to be rude with the normal
  human comment but it sure seems like it when reading your
  reply. Also how many users know they can dial ** to get a +?
  Especially when so many cannot as said earlier be relied upon
  to know their country access code. I guess my point is if
  there isn't a + key on the phone, and on most there is not,
  then it simply shouldn't be used. Mindfully wanting to use a +
  instead of knowing the international access code seems like
  willful ignorance to me.

 Actually here in Italy cell phone companies send you the caller
 id ALWAYS with the international prefix (as +39) so i (and every
 one i know) have the address book filled with numbers like
 +393... Having tested various GSM + WiFi + SIP phones
 we had to take care of this case

 actually we use to call only Italy so we have smth like:

 exten = _+39.,1,Macro(dialCell)

 and

 [macro-dialCell]
 exten = s,1,Dial(OH323/${MACRO_EXTEN:[EMAIL PROTECTED],,TW)

 cheers

 --
 Daniele Santi.o.
 [EMAIL PROTECTED]..o
 Linux User #415108   ooo

 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] How to handle + prefix

2007-08-31 Thread SIP
Anthony Francis wrote:
 SIP wrote:

 (many of our users do that, and they just type a + like a normal human) 

 I don't know if you intended to be rude with the normal human comment but 
 it sure seems like it when reading your reply. Also how many users know they 
 can dial ** to get a +? Especially when so many cannot as said earlier be 
 relied upon to know their country access code. I guess my point is if there 
 isn't a + key on the phone, and on most there is not, then it simply 
 shouldn't be used. Mindfully wanting to use a + instead of knowing the 
 international access code seems like willful ignorance to me.



 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   
Woah. Simmer down there, Tex.  That wasn't intended to be rude. I'm 
merely stating that it doesn't require the use of complex menuing 
systems when dialing from a web interface.  Don't make an EFFORT to be 
offended.

N.

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-31 Thread Steve Kennedy
On Fri, Aug 31, 2007 at 10:03:07AM -0600, Kai-Uwe Jensen wrote:

 On 8/31/07, Anthony Francis [EMAIL PROTECTED] wrote:
   Mindfully wanting to use a + instead of knowing the international access 
  code seems like willful ignorance to me.
 I beg to differ. Consider cell phones as an example. They all provide
 + keys. And it is considered a best practice to store phone numbers in
 address books as + country_code area_code number so that you can
 change locations (ever traveled to Europe?) easily, without having to
 reprogram all your contacts' numbers.

Also all SMS are sent in GSM international format (i.e. all prefixed
with +CC).


Steve

-- 
NetTek Ltd  UK mob +44-(0)7775 755503
UK +44-(0)20 79932612 / US +1-(310)8577715 / Fax +44-(0)20 7483 2455
Skype/GoogleTalk/AIM/Gizmo/Mac stevekennedyuk / MSN [EMAIL PROTECTED]
Euro Tech News Blog http://eurotechnews.blogspot.com

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-31 Thread Anthony Francis
I knew that was true about GSM networks outside of the US, but to be 
honest, I am not concerned with those networks ^^.

Mr Shunz wrote:
 On 8/31/07, Anthony Francis [EMAIL PROTECTED] wrote:
   
 I don't know if you intended to be rude with the normal
 human comment but it sure seems like it when reading your
 reply. Also how many users know they can dial ** to get a +?
 Especially when so many cannot as said earlier be relied upon
 to know their country access code. I guess my point is if
 there isn't a + key on the phone, and on most there is not,
 then it simply shouldn't be used. Mindfully wanting to use a +
 instead of knowing the international access code seems like
 willful ignorance to me.
 

 Actually here in Italy cell phone companies send you the caller
 id ALWAYS with the international prefix (as +39) so i (and every
 one i know) have the address book filled with numbers like
 +393... Having tested various GSM + WiFi + SIP phones
 we had to take care of this case

 actually we use to call only Italy so we have smth like:

 exten = _+39.,1,Macro(dialCell)

 and

 [macro-dialCell]
 exten = s,1,Dial(OH323/${MACRO_EXTEN:[EMAIL PROTECTED],,TW)

 cheers

   

-- 
Thank you and have a wonderful day,

Anthony Francis
Rockynet VOIP
(303) 444-7052 opt 2
[EMAIL PROTECTED]


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-31 Thread Anthony Francis
So yeah, I can admit that this is all true outside the US. ^^, sorry.

Steve Kennedy wrote:
 On Fri, Aug 31, 2007 at 10:03:07AM -0600, Kai-Uwe Jensen wrote:

   
 On 8/31/07, Anthony Francis [EMAIL PROTECTED] wrote:
 
  Mindfully wanting to use a + instead of knowing the international access 
 code seems like willful ignorance to me.
   
 I beg to differ. Consider cell phones as an example. They all provide
 + keys. And it is considered a best practice to store phone numbers in
 address books as + country_code area_code number so that you can
 change locations (ever traveled to Europe?) easily, without having to
 reprogram all your contacts' numbers.
 

 Also all SMS are sent in GSM international format (i.e. all prefixed
 with +CC).


 Steve

   

-- 
Thank you and have a wonderful day,

Anthony Francis
Rockynet VOIP
(303) 444-7052 opt 2
[EMAIL PROTECTED]


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] How to handle + prefix

2007-08-30 Thread Adrian Marsh
Hi,

How can I have A*k convert a call from +441793xx to Dial
00441793xx instead?
With the _+. Below I can catch the call, but EXTEN doesn't get set
as expected.. and then I need to figure out how to pass the call onto
the outgoing-pstn context. Not sure if a Goto would work here...


[outgoing-pstn-international]
exten = _+.,1,Set(EXTEN=00${EXTEN:+1})
exten = _+.,2,NoOp(test line: ${EXTEN})

[outgoing-pstn]
exten =
_0.,1,ExecIF($[${RECORDOUTBOUND}=TRUE],Monitor,wav|${TIMESTAMP}-${CA
LLERID(num)}-${EXTEN}-${UNIQUEID}.WAV)
;exten = _0.,2,Set(CALLERID(number)=${PSTN_GLOBAL}${CALLERID(num):-2})
exten =
_0.,2,ExecIF($[${LEN(${CALLERID(num)})}=4],Set,CALLERID(number)=${PSTN_G
LOBAL}${CALLERID(num):-2})
exten = _0.,3,Dial(${TRUNK}/${EXTEN},,W)
exten = _0.,4,Congestion
exten = _0.,5,Goto(outgoing-zen-out-0,${EXTEN},1)
exten = _0.,103,Busy
exten = _0.,104,Goto(outgoing-zen-out-0,${EXTEN},1)

Adrian Marsh


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-30 Thread James FitzGibbon
On 8/30/07, Adrian Marsh [EMAIL PROTECTED] wrote:

 [outgoing-pstn-international]
 exten = _+.,1,Set(EXTEN=00${EXTEN:+1})
 exten = _+.,2,NoOp(test line: ${EXTEN})


Setting ${EXTEN} won't work, but Goto(context,00${EXTEN:1},priority) will:

[foo]
exten   = 7997,1,Answer
exten   = 7997,n,Set(FOO=+1441793xx)
exten   = 7997,n,Goto(foo,00${FOO:1},1)
exten   = 7997,n,Hangup
exten = _0.,1,NoOp(${EXTEN})
exten = _0.,n,Hangup

-- Executing [EMAIL PROTECTED]:1] Answer(SIP/427-9dd49740, )
in new stack
-- Executing [EMAIL PROTECTED]:2] Set(SIP/427-9dd49740,
FOO=+1441793xx) in new stack
-- Executing [EMAIL PROTECTED]:3] Goto(SIP/427-9dd49740,
foo|001441793xx|1) in new stack
-- Goto (foo,001441793xx,1)
-- Executing [EMAIL PROTECTED]:1] NoOp(SIP/427-9dd49740,
001441793xx) in new stack
-- Executing [EMAIL PROTECTED]:2] Hangup(SIP/427-9dd49740, ) in
new stack

-- 
j.
___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] How to handle + prefix

2007-08-30 Thread Adrian Marsh
Thanks James, worked a treat.

Is there a way of using variables within the dialplan, eg:

[globals]
SOMEVAR=0179344

[local]
exten = _${SOMEVAR}.,1,NoOp(Dialled own number)


I'm looking to catch our own PSTN numbers outbound should someone use the full 
PSTN number rather than the local extension number. Ideally I need to capture 
the international combinations too:

SOMEVAR=+44179344
And
SOMEVAR=0044179344

Is there regexp * in Asterisk ? :

exten = _.${SOMEVAR}.,1,NoOp(Dialled own number)

Adrian Marsh
  

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-30 Thread Jared Smith
On Thu, 2007-08-30 at 15:42 +0100, Adrian Marsh wrote:
 Is there a way of using variables within the dialplan, eg:
 
 [globals]
 SOMEVAR=0179344
 
 [local]
 exten = _${SOMEVAR}.,1,NoOp(Dialled own number)

No, unfortunately you can't use variables as part of the extension name
or pattern match.


-- 
Jared Smith
Community Relations Manager
Digium, Inc.


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-30 Thread Brian West

On Aug 30, 2007, at 10:11 AM, Jared Smith wrote:

 On Thu, 2007-08-30 at 15:42 +0100, Adrian Marsh wrote:
 Is there a way of using variables within the dialplan, eg:

 [globals]
 SOMEVAR=0179344

 [local]
 exten = _${SOMEVAR}.,1,NoOp(Dialled own number)

 No, unfortunately you can't use variables as part of the extension  
 name
 or pattern match.



Since when?  I knew you couldn't use them for pattern matches but in  
1.2 you could at one point I tested this personally.

/b


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-30 Thread Anthony Francis
To match any single digit use X. Also, it is simplest to know what your 
+ meta is for and just match that. In the states we just match _011X.

Anthony

Adrian Marsh wrote:
 Thanks James, worked a treat.

 Is there a way of using variables within the dialplan, eg:

 [globals]
 SOMEVAR=0179344

 [local]
 exten = _${SOMEVAR}.,1,NoOp(Dialled own number)


 I'm looking to catch our own PSTN numbers outbound should someone use the 
 full PSTN number rather than the local extension number. Ideally I need to 
 capture the international combinations too:

 SOMEVAR=+44179344
 And
 SOMEVAR=0044179344

 Is there regexp * in Asterisk ? :

 exten = _.${SOMEVAR}.,1,NoOp(Dialled own number)

 Adrian Marsh
   

 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   

-- 
Thank you and have a wonderful day,

Anthony Francis
Rockynet VOIP
(303) 444-7052 opt 2
[EMAIL PROTECTED]


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-30 Thread SIP
This is actually a big misconception... the idea that you don't need to 
match + because you'll never receive a + and it's just a metacharacter.

In the modern world of IP phones and such, more often than not, you will 
ACTUALLY be sent a + and will need to translate that yourself on your 
own side. If all you did was match a _011X, you might never GET it 
unless someone truly dialed a 011 

MOST of our phones send a + as a +, and we see it often.

N.


Anthony Francis wrote:
 To match any single digit use X. Also, it is simplest to know what your 
 + meta is for and just match that. In the states we just match _011X.

 Anthony

 Adrian Marsh wrote:
   
 Thanks James, worked a treat.

 Is there a way of using variables within the dialplan, eg:

 [globals]
 SOMEVAR=0179344

 [local]
 exten = _${SOMEVAR}.,1,NoOp(Dialled own number)


 I'm looking to catch our own PSTN numbers outbound should someone use the 
 full PSTN number rather than the local extension number. Ideally I need to 
 capture the international combinations too:

 SOMEVAR=+44179344
 And
 SOMEVAR=0044179344

 Is there regexp * in Asterisk ? :

 exten = _.${SOMEVAR}.,1,NoOp(Dialled own number)

 Adrian Marsh
   

 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   
 

   


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-30 Thread Anthony Francis
What phones are you using?

SIP wrote:
 This is actually a big misconception... the idea that you don't need to 
 match + because you'll never receive a + and it's just a metacharacter.

 In the modern world of IP phones and such, more often than not, you will 
 ACTUALLY be sent a + and will need to translate that yourself on your 
 own side. If all you did was match a _011X, you might never GET it 
 unless someone truly dialed a 011 

 MOST of our phones send a + as a +, and we see it often.

 N.


 Anthony Francis wrote:
   
 To match any single digit use X. Also, it is simplest to know what your 
 + meta is for and just match that. In the states we just match _011X.

 Anthony

 Adrian Marsh wrote:
   
 
 Thanks James, worked a treat.

 Is there a way of using variables within the dialplan, eg:

 [globals]
 SOMEVAR=0179344

 [local]
 exten = _${SOMEVAR}.,1,NoOp(Dialled own number)


 I'm looking to catch our own PSTN numbers outbound should someone use the 
 full PSTN number rather than the local extension number. Ideally I need to 
 capture the international combinations too:

 SOMEVAR=+44179344
 And
 SOMEVAR=0044179344

 Is there regexp * in Asterisk ? :

 exten = _.${SOMEVAR}.,1,NoOp(Dialled own number)

 Adrian Marsh
   

 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   
 
   
   
 


 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   

-- 
Thank you and have a wonderful day,

Anthony Francis
Rockynet VOIP
(303) 444-7052 opt 2
[EMAIL PROTECTED]


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-30 Thread SIP
Snom, UTStarCom, and the usual assortment of softphones (X-Lite, 
SJPhone, Snom360 Softphone, eyeBeam, Bria).

N.


Anthony Francis wrote:
 What phones are you using?

 SIP wrote:
   
 This is actually a big misconception... the idea that you don't need to 
 match + because you'll never receive a + and it's just a metacharacter.

 In the modern world of IP phones and such, more often than not, you will 
 ACTUALLY be sent a + and will need to translate that yourself on your 
 own side. If all you did was match a _011X, you might never GET it 
 unless someone truly dialed a 011 

 MOST of our phones send a + as a +, and we see it often.

 N.


 Anthony Francis wrote:
   
 
 To match any single digit use X. Also, it is simplest to know what your 
 + meta is for and just match that. In the states we just match _011X.

 Anthony

 Adrian Marsh wrote:
   
 
   
 Thanks James, worked a treat.

 Is there a way of using variables within the dialplan, eg:

 [globals]
 SOMEVAR=0179344

 [local]
 exten = _${SOMEVAR}.,1,NoOp(Dialled own number)


 I'm looking to catch our own PSTN numbers outbound should someone use the 
 full PSTN number rather than the local extension number. Ideally I need to 
 capture the international combinations too:

 SOMEVAR=+44179344
 And
 SOMEVAR=0044179344

 Is there regexp * in Asterisk ? :

 exten = _.${SOMEVAR}.,1,NoOp(Dialled own number)

 Adrian Marsh
   

 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   
 
   
 
   
 
   
 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   
 

   


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] How to handle + prefix

2007-08-30 Thread Dovid B

- Original Message - 
From: Adrian Marsh [EMAIL PROTECTED]
To: Asterisk Users Mailing List - Non-Commercial Discussion 
asterisk-users@lists.digium.com
Sent: Thursday, August 30, 2007 2:34 PM
Subject: [asterisk-users] How to handle + prefix


 Hi,

 How can I have A*k convert a call from +441793xx to Dial
 00441793xx instead?
 With the _+. Below I can catch the call, but EXTEN doesn't get set
 as expected.. and then I need to figure out how to pass the call onto
 the outgoing-pstn context. Not sure if a Goto would work here...


 [outgoing-pstn-international]
 exten = _+.,1,Set(EXTEN=00${EXTEN:+1})
 exten = _+.,2,NoOp(test line: ${EXTEN})

 [outgoing-pstn]
 exten =
 _0.,1,ExecIF($[${RECORDOUTBOUND}=TRUE],Monitor,wav|${TIMESTAMP}-${CA
 LLERID(num)}-${EXTEN}-${UNIQUEID}.WAV)
 ;exten = _0.,2,Set(CALLERID(number)=${PSTN_GLOBAL}${CALLERID(num):-2})
 exten =
 _0.,2,ExecIF($[${LEN(${CALLERID(num)})}=4],Set,CALLERID(number)=${PSTN_G
 LOBAL}${CALLERID(num):-2})
 exten = _0.,3,Dial(${TRUNK}/${EXTEN},,W)
 exten = _0.,4,Congestion
 exten = _0.,5,Goto(outgoing-zen-out-0,${EXTEN},1)
 exten = _0.,103,Busy
 exten = _0.,104,Goto(outgoing-zen-out-0,${EXTEN},1)

 Adrian Marsh


Why not just use Exten = _+.,1,Goto(011${EXTEN:1})
Exten = _011.,1,Dial(.. 


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users