[Asterisk-Users] Asterisk newbie questions

Wiley E. Siler wsiler at e2020inc.com
Tue Sep 28 05:21:04 MST 2004


Asterisk is very configurable and should be able to do what you want
just fine.

You would just need a dial plan that was configured properly and a VoIP
provider for your LD.

Extensions.conf is what you want to research on the wiki.  
http://voip-info.org/wiki-Asterisk+config+extensions.conf 
http://voip-info.org/wiki-Asterisk+dial+plan+-+working+example

You would do something like this...  Create a trunk for the PSTN and a
trunk for the IAX
Create a section of your dial plan that matches local numbers...

[trunklocal] 
; 
; Local seven-digit dialing accessed through trunk interface 
;
exten => _9XXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})
exten => _9XXXXXXX,2,Congestion
 
exten => _9480NXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})
exten => _9480NXXXXXX,2,Congestion

Create a section that matches you long distance.  Mine is PSTN so it
looks like this...

[trunkld] 
; 
; Long distance context accessed through trunk 
; 
exten => _91NXXNXXXXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}) 
exten => _91NXXNXXXXXX,2,Congestion 

Yours would use the IAX methods (to replace my standard PSTN reference)
shown in the second link I listed above...

Reference these as includes for your incoming contaxt and your dialing
will work as you requested.

More info can also be found by searching using google and
site:lists.digium.com in the search box.

Cheers,
Wiley





-----Original Message-----
From: Jean-Michel Hiver [mailto:hiver.j at wanadoo.fr] 
Sent: Monday, September 27, 2004 9:52 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Asterisk newbie questions

Hi List,

I am trying to setup a box which does the following:

- Let incoming calls and outgoing local calls through PSTN.
- Let outgoing long distance calls through VoIP.

Has anybody done anything similar?

Cheers,
Jean-Michel.
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer




More information about the asterisk-users mailing list