VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
adrian at adrian-merwo... Guest
|
Posted: Fri Mar 14, 2008 2:29 am Post subject: [asterisk-users] Dialing patterns and "GSM" format |
|
|
H,
Just a quick question that has been bugging me for a while.....
Most of my address book phone numbers are stored in the format:
+<country code><area code minus the 0><local number>
i.e. +XXXXXXXXXXXX
In my asterisk (Trixbox) server I would like to be able to dial
numbers from my address book using HUD or the SIP client on my 3G
phone using numbers in this format.
On asterisk I would like to strip of the + and replace it with an
international dialing prefix.
Secondly (in the future) I would like to strip off certain country
codes and replace them with a local dialing prefix.
Can anyone help me figure ths out?
Thanks,
Adrian |
|
Back to top |
|
|
g.stewart at horwits.c... Guest
|
Posted: Fri Mar 14, 2008 3:48 am Post subject: [asterisk-users] Dialing patterns and "GSM" format |
|
|
On Fri, 14 Mar 2008 07:29:33 +0000, Adrian Merwood
<adrian at adrian-merwood.net> wrote:
Quote: | Secondly (in the future) I would like to strip off certain country
codes and replace them with a local dialing prefix.
Can anyone help me figure ths out?
|
This might get you started: http://howto-pages.org/asterisk
--
Godwin Stewart - Horwich IT services |
|
Back to top |
|
|
adrian at adrian-merwo... Guest
|
Posted: Fri Mar 14, 2008 6:39 am Post subject: [asterisk-users] Dialing patterns and "GSM" format |
|
|
Horwich IT Services (Godwin Stewart) wrote:
Quote: | On Fri, 14 Mar 2008 07:29:33 +0000, Adrian Merwood
<adrian at adrian-merwood.net> wrote:
Quote: | Secondly (in the future) I would like to strip off certain country
codes and replace them with a local dialing prefix.
Can anyone help me figure ths out?
|
This might get you started: http://howto-pages.org/asterisk
| A useful link but I pretty much have all this working, the specific
issue is handling the + notation and converting it to 00 in my case for
the UK.
Adrian |
|
Back to top |
|
|
asterisk at barendse.to Guest
|
Posted: Fri Mar 14, 2008 9:02 am Post subject: [asterisk-users] Dialing patterns and "GSM" format |
|
|
On Fri, 14 Mar 2008, Adrian Merwood wrote:
Quote: | In my asterisk (Trixbox) server I would like to be able to dial
numbers from my address book using HUD or the SIP client on my 3G
phone using numbers in this format.
On asterisk I would like to strip of the + and replace it with an
international dialing prefix.
Secondly (in the future) I would like to strip off certain country
codes and replace them with a local dialing prefix.
Can anyone help me figure ths out?
| I got this workingm, thanks to a solution posted on this list but i didn't
find a way how to implement this in FreePBX (Trixbox).
This is how i did it in my normal asterisk installation :
Include this context as first in your outbound pattern :
[intern-all]
include => prefix
the context that actually fixes the prefix is this :
[prefix]
exten = _+31.,1,Goto(0${EXTEN:3},1) ; Change +31 to 0
exten = _+.,1,Goto(00${EXTEN:1},1) ; Change + to 00
The tricky part to implement this properly in FreePBX is dissect the
dialled telephone number to propely route calls through the appropriate
provider. In my case i use the same provider for local calls as for
international calls, but those that have free local calls do not want
every call to a local number dialled out through their international
provider. For me it's all the same
If you find a solution to properly do it in FreePBX, please post it to the
list ) |
|
Back to top |
|
|
adrian at adrian-merwo... Guest
|
Posted: Fri Mar 14, 2008 10:04 am Post subject: [asterisk-users] Dialing patterns and "GSM" format |
|
|
Ok,
Making progress finally came up with a useful goolge search and found
this......
http://click.rho.cc/Blog/?p=10
I'll try it when I get home and see how far I get.
Looks promising.
Adrian
On 14 Mar 2008, at 14:02, Remco Barendse wrote:
Quote: | On Fri, 14 Mar 2008, Adrian Merwood wrote:
Quote: | In my asterisk (Trixbox) server I would like to be able to dial
numbers from my address book using HUD or the SIP client on my 3G
phone using numbers in this format.
On asterisk I would like to strip of the + and replace it with an
international dialing prefix.
Secondly (in the future) I would like to strip off certain country
codes and replace them with a local dialing prefix.
Can anyone help me figure ths out?
|
I got this workingm, thanks to a solution posted on this list but i
didn't
find a way how to implement this in FreePBX (Trixbox).
This is how i did it in my normal asterisk installation :
Include this context as first in your outbound pattern :
[intern-all]
include => prefix
the context that actually fixes the prefix is this :
[prefix]
exten = _+31.,1,Goto(0${EXTEN:3},1) ; Change +31 to 0
exten = _+.,1,Goto(00${EXTEN:1},1) ; Change + to 00
The tricky part to implement this properly in FreePBX is dissect the
dialled telephone number to propely route calls through the
appropriate
provider. In my case i use the same provider for local calls as for
international calls, but those that have free local calls do not want
every call to a local number dialled out through their international
provider. For me it's all the same
If you find a solution to properly do it in FreePBX, please post it
to the
list )
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
aster |
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|