That's what I'm trying to get at. *normally* you expect to dial 00 but
when you're using voicepulse, Asterisk needs to start all international
number with 011. Think of it this way, in VoicePulse's mind, you're
always dialing from the US. Of course the user will try dialing 00
because that's the 'normal' way to do it.
So what you have to do is change your dial plan to intercept a "00"
prefix and reformat it using a 011 prefix, something like this:
exten => _00[1-9].,2,Dial,IAX2/username@voicepulse/011${EXTEN:2}
>Message: 9
>Date: Mon, 23 Feb 2004 07:49:07 -0700
>From: Michael Welter <mike@introspect.com>
>To: asterisk-users@lists.digium.com
>Subject: Re: [Asterisk-Users] Re: Asterisk-Users digest, Vol 1 #2879 - 10
> msgs
>Reply-To: asterisk-users@lists.digium.com
>
>In the UK it's "00" then the country code. So a call from the
UK to my
>phone would be 0013036742575.
>
>Miie
>
>Matt Lawson wrote:
>
>
>>> I think international number dialed through voicepulse have to
start
>>> with 011... (even if you're located in another countery). I
asked them
>>> about that once, and that's what works for me (We've been
dialing Spain
>>> and Germany recently, but never Japan)
>>>
>>> HTH,
>>>
>>> Matt
>>>
>>>
>>>
>>
>>
>>>>> -- __--__--
>>>>>
>>>>> Message: 4
>>>>> Date: Sat, 21 Feb 2004 09:04:43 -0300
>>>>> From: Daniel Bichara <daniel@bichara.com.br>
>>>>> To: asterisk-users@lists.digium.com
>>>>> Subject: [Asterisk-Users] Voicepulse Connection
>>>>> Reply-To: asterisk-users@lists.digium.com
>>>>>
>>>>> Hi,
>>>>>
>>>>> I have two * connecteds and I wish a phone connected to *
#1 calls
>>>>> PSTN via Voicepulse connected to * #2, as follows:
>>>>>
>>>>>
>>>>> telephone <---> Asterisk #1 <-------->
Asterisk #2 <----> Voicepulse
>>>>>
>>>>> When I dial 81-90... (japan), * #1 will route call to
Voicepulse at
>>>>> *#2. Everything works between #1 and #2 but when #2 calls
Voicepulse I
>>>>> get an error message:
>>>>>
>>>>> -- Called user:password@voicepulse/819099999900@VPWS
>>>>> Feb 21 10:01:34 WARNING[98311]: chan_iax2.c:4445
socket_read: Call
>>>>> rejected by 66.234.228.132: No such context/extension
>>>>>
>>>>>
>>>>> I am clueless!!! What could it be? Follow my confs...
>>>>>
>>>>> #### Exten.conf - *#1
>>>>>
>>>>> exten =>
_81.,1,Dial(IAX2/international@asterisk2/${EXTEN}@outvoicepulse)
>>>>>
>>>>>
>>>>> ##### Exten.conf - *#2
>>>>>
>>>>> [outvoicepulse]
>>>>> exten =>
_.,1,Dial(IAX2/user:passwd@voicepulse/${EXTEN}@VPWS)
>>>>> exten => _.,2,Congestion
>>>>>
>>>>>
>>>>> ##### Iax.conf - *#2
>>>>>
>>>>> [voicepulse]
>>>>> context=VPWS
>>>>> secret=password
>>>>> auth=md5
>>>>> type=friend
>>>>> host=66.234.228.132
>>>>> disallow=all
>>>>> allow=speex
>>>>> allow=gsm
>>>>> jitterbuffer=no
>>>>>
>>>>>
>>>>> Daniel
>>>>>
>>>>>
>>>>>
>>>>> -- __--__--
>>>>>
>>>
>>>
>>>
>>