# Is this possible

**URL:** <https://community.asterisk.org/t/is-this-possible/27819>\
**Category:** Asterisk General\
**Created:** [July 4, 2009, 3:07pm UTC](https://community.asterisk.org/t/is-this-possible/27819 "2009-07-04T15:07:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wookiedad](https://avatars.discourse-cdn.com/v4/letter/w/a88e4f/32.png) [@wookiedad](https://community.asterisk.org/u/wookiedad)\
**Post date:** [July 4, 2009, 3:07pm UTC](https://community.asterisk.org/t/is-this-possible/27819/1 "2009-07-04T15:07:14Z")

</div>

Here is my current setup for my home:

Pots  
VOIP line _local and international_

2 lines are in the home, 1 phone for each line.

Is it possible to have asterisk make it so only outbound calls go on the voip line (willing to go sip if needed right now it’s vonage line). The Only inbound line would be the Pots line (has been the family number for 5 years or so)…and have only have 1 line in the main part of the home? Also this would need to be almost transperent to the end users (family) as they are not tech savy. i don’t need an IVR, nor seperate extensions… I just want to cut down on the calls going out on the POTS line as it’s expensive to call outside of the calling area (20$'s a month when it’s accidentally used)

I have never done Telco setups before, but would like to play/have the chance to learn on this…

I would like something like this when done:

POTS\>\>  
Asterisk 1 line to the rest of the home.  
VOIP\>\>

---

<div class="post-metadata">

**Author:** ![riddlebox](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@riddlebox](https://community.asterisk.org/u/riddlebox)\
**Post date:** [July 7, 2009, 11:45pm UTC](https://community.asterisk.org/t/is-this-possible/27819/2 "2009-07-07T23:45:11Z")

</div>

Yes it is possible, you can tell asterisk to dial out of the sip trunks for certain areas, and the fxo for other areas, just some editing of extensions.conf and some dial commands in your outgoing context  
like for me 618 is local  
exten =\> 618XXXXXXX,1,Dial(dahdi/trunknumber)  
or  
exten =\> \_NXXXXXX,1,Dial(dahdi/trunknumber)  
217 is not local  
exten =\> \_1217XXXXXXX,1,Dial(sip/trunk)  
or  
exten =\> \_1NXXXXXXXX,1,Dial(sip/trunk)  
this is a simple example but hopefully it will help
