[Asterisk-Users] 2 sip servers
Altus Snyman
altus at stormcorp.co.za
Wed Aug 4 07:18:38 MST 2004
to put it this way
town A= sip 100+ ,local aria code = 022 .....
town B= sip 200+ ,local aria code = 145 .....
Now I want people from tow A to dial 202 and it should go threw the
static ip to the town B server to the users 202,and same for town B
And
If people from town A want to call the local butcher of town B whose
number is (145) 88 55 66,it should not go out threw town A's pstn card
but threw the static ip to town B's server and then going out threw town
B's pstn card since its a 145 number!
Hope this makes better sence
Thanks so far
On Wed, 2004-08-04 at 15:45, Deon Rodden wrote:
> I setup extension 105 on my Asterisk server to
> Dial(SIP/extension at sipserver_b) and then defined [sipserver_b] in the
> sip.conf
>
> So then I setup "extension" on sipserver_b's extensions.conf file to answer
> with the auto attendant, and it simply plays a message asking what number I
> want to dial. It then puts me in a context where all outbound calls are
> pushed through the pstn card in it.
>
> So now from my system, I dial 105 and I immediately get asked what number to
> call, and once I enter it, the call goes through. The same thing works from
> asterisk_b to asterisk_a, now our cities are linked.
>
> Not familiar with "switch" but I saw references to it before, will
> investigate further.
>
> ----- Original Message -----
> From: "Leif Madsen" <leif.madsen at gmail.com>
> To: <asterisk-users at lists.digium.com>
> Sent: Wednesday, August 04, 2004 9:23 AM
> Subject: Re: [Asterisk-Users] 2 sip servers
>
>
> > On Wed, 04 Aug 2004 15:03:59 +0200, Altus Snyman <altus at stormcorp.co.za>
> wrote:
> > > Good day all
> > > I have figured out most/basics of asterisk.I went with sip and made my
> > > own sip.conf and extensions.conf
> > >
> > > No I have 2 servers running sip in different towns.Both is connected
> > > with static ip so thats fine,but now.
> > > Lets say someone want to call someone else in the other town.How do I
> > > get asterisk to know,for instance sip extension 101 is on another sip
> > > server on a different ip.
> > > And I even want to say if someone in town A calls a town B code it
> > > should go out threw town B's pstn card,so it will only be charge for a
> > > local call?Can this be done
> >
> > This sounds like you want to use
> >
> > switch =>
> >
> > In your dialplans.
> >
> > http://www.voip-info.org/wiki-Asterisk+config+extensions.conf
> > http://www.voip-info.org/wiki-Asterisk+-+dual+servers
> >
> > These are links I found on the wiki with a little bit of googling (the
> > wiki search function isn't very good. Doing a site:voip-info.org and
> > a couple of terms will get you what you want)
> >
> > HTH,
> > Leif Madsen.
> > http://www.asteriskdocs.org
> > _______________________________________________
> > 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
> >
>
> _______________________________________________
> 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
>
More information about the asterisk-users
mailing list