[Asterisk-Users] Tall free number via FWD over IXA2

Joseph syscon at interbaun.com
Tue Jan 25 23:48:55 MST 2005


On Wed, 2005-01-26 at 00:17 -0500, Kris Stark wrote:
> Joseph wrote:
> > I've setup my IAX2 over FWD and it is working I can receive a test call
> > and I can call out.
> > Though I cannot figure out how to dial 1-800 numbers over FWD
> > When I dial 1-800 it hangs up on me.
> > 
> > Here is a typical session:
> > 
> > Called xxxxx:xxxxxxx at iax2.fwdnet.net/18007425877l
> >     -- Call accepted by 65.39.205.121 (format ULAW)
> >     -- Format for call is ULAW
> >     -- Hungup 'IAX2[65.39.205.121:4569]/3'
> > 
> > Dialing *1800... doesn't do anything.
> > 
> > What am I doing wrong?
> > 
> The number that is passed to FWD needs to be in the format *1800..., so 
> you would want to make sure your dialplan is set up such that it passes 
> the number with an * at the beginning.
> 
> Alternatively, use one of the ENUM lookups to do toll free instead - 
> look up ENUM on the wiki.
> 
> Kris

Thanks Kris, I found the solution:
Here is how it suppose to look like:

[tollfree]
;
; terminate toll-free no.'s via fwdnet
;

;
; US toll free access
;
; +1-800
exten => _1800.,1,SetCallerID,${FWDCIDNAME}
exten => _1800.,2,Dial,IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/*${EXTEN},60,r)
exten => _1800.,3,Playback(invalid)
exten => _1800.,4,Hangup
exten => _1800.,103,Busy

; +1-866
exten => _1866.,1,SetCallerID,${FWDCIDNAME}
exten => _1866.,2,Dial,IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/*${EXTEN},60,r)
exten => _1866.,3,Playback(invalid)
exten => _1866.,4,Hangup
exten => _1866.,103,Busy

; +1-877
exten => _1877.,1,SetCallerID,${FWDCIDNAME}
exten => _1877.,2,Dial,IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/*${EXTEN},60,r)
exten => _1877.,3,Playback(invalid)
exten => _1877.,4,Hangup
exten => _1877.,103,Busy

; +1-888
exten => _1888.,1,SetCallerID,${FWDCIDNAME}
exten => _1888.,2,Dial,IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/*${EXTEN},60,r)
exten => _1888.,3,Playback(invalid)
exten => _1888.,4,Hangup
exten => _1888.,103,Busy

;
; Netherlands toll free access
;
exten => _31800.,1,SetCallerID,${FWDCIDNAME}
exten => _31800.,2,Dial,IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/*${EXTEN},60,r)
exten => _31800.,3,Playback(invalid)
exten => _31800.,4,Hangup
exten => _31800.,103,Busy

;
; France toll free access
;
exten => _33800.,1,SetCallerID,${FWDCIDNAME}
exten => _33800.,2,Dial,IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/*${EXTEN},60,r)
exten => _33800.,3,Playback(invalid)
exten => _33800.,4,Hangup
exten => _33800.,103,Busy

;
; UK toll free access
;
; +44 500
exten => _44500.,1,SetCallerID,${FWDCIDNAME}
exten => _44500.,2,Dial,IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/*${EXTEN},60,r)
exten => _44500.,3,Playback(invalid)
exten => _44500.,4,Hangup
exten => _44500.,103,Busy

; +44 800
exten => _44800.,1,SetCallerID,${FWDCIDNAME}
exten => _44800.,2,Dial,IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/*${EXTEN},60,r)
exten => _44800.,3,Playback(invalid)
exten => _44800.,4,Hangup
exten => _44800.,103,Busy

; +44 808
exten => _44808.,1,SetCallerID,${FWDCIDNAME}
exten => _44808.,2,Dial,IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/*${EXTEN},60,r)
exten => _44808.,3,Playback(invalid)
exten => _44808.,4,Hangup
exten => _44808.,103,Busy

-- 
#Joseph



More information about the asterisk-users mailing list