In your extensions.conf in the proper context {a [context] is placed within parenthesis) you should have:<br><br>exten => _001xxxxxxxxxxxx,1,Dial(SIP/yourprovider/${EXTEN})<br><br>If you needed to strip the leading two zeros and replace that with a single number 9, you would have:
<br><br>exten => _001xxxxxxxxxxxx,1,Dial(SIP/yourprovider/9${EXTEN:2}<br><br>If the number of digits dialed isn't always fixed (the above examples assume, including the 001 prefix, that the number you are dialing is EXACTLY fifteen digits long) and you wanted to play music on hold while the call rings AND you wanted it to stop trying that number after 30 seconds, then you would use:
<br><br>exten _001.,1,Dial(SIP/yourprovider${EXTEN}|30,m)<br><br>These examples should give you the basic foundation of understanding to scuplt your own dialplans, if in doubt of anything take a look here: <a href="http://www.voip-info.org/tiki-index.php?page=Asterisk%20config%20extensions.conf">
http://www.voip-info.org/tiki-index.php?page=Asterisk%20config%20extensions.conf</a><br><br>Its the offical non-offical Asterisk documentation site!<br><br><div><span class="gmail_quote">0n 10/25/06, <b class="gmail_sendername">
Jonson Player</b> <<a href="mailto:jonsonplayer@gmail.com">jonsonplayer@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div>Hello,</div>
<div>i hev a subscription to a international voip provider and I want
all calls for numbers _001xxxxxxxxxx to go through my voip provider. I
tried many settings in sip.conf , extensions.conf and iax.conf. Please
give me some simple example for how can i transfer the specified calls
to my external voip provider. What may I put and where in witch file.
Thank you for your support.
</div>
</div>
<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>
asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br><br></blockquote></div><br>