Yes, you want to use different context for each house.

In your sip.conf:

[house1]
username=house1
secret=house1pass
context=house1
--->Other sip options here<---

[house2]
username=house2
secret=house2pass
context=house2
--->Other sip options here<---

In your extensions.conf:

[house1]
;House1 Local Calls out through pots line 1, replace 555 with your area code
exten => _1555NXXXXXX,1,Dial(Zap/1/${EXTEN},60,r)

;House1 Long distance calls out through a VoIP provider
exten => _1NXXNXXXXXX,1,Dial(IAX2/[EMAIL PROTECTED]/${EXTEN})

[house2]
;House2 Local Calls out through pots line 2, replace 555 with your area code
exten => _1555NXXXXXX,1,Dial(Zap/2/${EXTEN},60,r)

;House2 Long distance calls out through a VoIP provider
exten => _1NXXNXXXXXX,1,Dial(IAX2/[EMAIL PROTECTED]/${EXTEN})


If you need the VoIP piece with reliable support http://www.VoIPstreet.com


Hope this helps.


On 7/10/06, Martin Joseph <[EMAIL PROTECTED]> wrote:

On Jul 10, 2006, at 10:48 AM, Andrew Niemantsverdriet wrote:

> Is that the standard way of doing things? I found a bunch of asterisk
> hosting providers in my search on the best way to do this. Is this
> what they are doing?
>
Yes,l I think that's what contexts are for...  I am also relatively new
at this, and experimenting using the contexts for separate locations
and separate users. This works although it takes a moment to understand
it.

You can also use separate prepaid accounts for the VOIP long distance
calls...

I don't really see that "separate trunking" is needed in you case,
although I admit I a not clear on what he means by this...  Since you
have such a small amount of traffic I don't see it as a big deal...

Marty

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to