On Fri, Dec 18, 2009 at 01:41:20PM +0800, jidanni@jidanni.org wrote:
IdeaSIP worked fine for me when I had the same need some months ago. Asterisk config snippet:I want to call an 1-800 toll free US number,
[ideasip-tollfree] ; USA toll-free exten => _001800NXXXXXX,1,Dial(SIP/${EXTEN:2}@proxy.ideasip.com,60) exten => _001888NXXXXXX,1,Dial(SIP/${EXTEN:2}@proxy.ideasip.com,60) exten => _001877NXXXXXX,1,Dial(SIP/${EXTEN:2}@proxy.ideasip.com,60) exten => _001866NXXXXXX,1,Dial(SIP/${EXTEN:2}@proxy.ideasip.com,60) ; UK toll-free exten => _0044800.,1,Dial(SIP/011*${EXTEN:2}@proxy.ideasip.com,60) exten => _0044808.,1,Dial(SIP/011*${EXTEN:2}@proxy.ideasip.com,60) exten => _0044500.,1,Dial(SIP/011*${EXTEN:2}@proxy.ideasip.com,60)00 is the ITU-recommended international prefix (used in Germany). For Taiwan, you might want to replace it with something else, e.g. 019 (note the change in EXTEN because the prefix length increased):
[ideasip-tollfree] ; USA toll-free exten => _0191800NXXXXXX,1,Dial(SIP/${EXTEN:3}@proxy.ideasip.com,60) exten => _0191888NXXXXXX,1,Dial(SIP/${EXTEN:3}@proxy.ideasip.com,60) exten => _0191877NXXXXXX,1,Dial(SIP/${EXTEN:3}@proxy.ideasip.com,60) exten => _0191866NXXXXXX,1,Dial(SIP/${EXTEN:3}@proxy.ideasip.com,60) ; UK toll-free exten => _01944800.,1,Dial(SIP/011*${EXTEN:3}@proxy.ideasip.com,60) exten => _01944808.,1,Dial(SIP/011*${EXTEN:3}@proxy.ideasip.com,60) exten => _01944500.,1,Dial(SIP/011*${EXTEN:3}@proxy.ideasip.com,60)So if you dial 019-1-800-whatever, asterisk will connect to sip:1800whatever@proxy.ideasip.com.
HTH. CU Sascha -- http://sascha.silbe.org/ http://www.infra-silbe.de/
Attachment:
signature.asc
Description: Digital signature