Ok,
Lets say that I have something like the
following:
On the Asterisk box I have the following
definitions in sip.conf:
[locationA]
type=friend host=router.locationA.foobar.com defaultip=1.1.1.2 context=router
[locationB1] type=friend host=router.locationB1.foobar.com defaultip=1.1.2.2 context=router [locationB2]
type=friend host=router.locationB2.foobar.com defaultip=1.1.2.3 context=router Now, in extensions.conf I would have something with the following logic: [router]
; ; We start with what to do when a call first comes in. ; exten => s,1,Wait,1 exten => s,2,[AGI program that checks the originator and routes
according to pre-defined settings]
Again, this is just a concept, not the actual configuration. But in
theory, I don't a reason why this can't
work.
Nir Simionovich
|
Title: Message
- [Asterisk-Users] Asterisk as a SIP/H.323 Router Nir Simionovich
- RE: [Asterisk-Users] Asterisk as a SIP/H.323 Router Abdul Hakeem
- RE: [Asterisk-Users] Asterisk as a SIP/H.323 Rout... Nir Simionovich
- RE: [Asterisk-Users] Asterisk as a SIP/H.323 ... Abdul Hakeem
- Re: [Asterisk-Users] Asterisk as a SIP/H.323 Rout... Nir Simionovich