martin f krafft wrote:
Can Asterisk do virtual hosting? While I want/need the sites to be
hosted by the same instance (so that e.g. calls can be transferred
easily), I don't want to have to name my peers [site1-john], and
I want people to be able to SIP-dial j...@site1.example.org and
j...@site2.example.org and trust that Asterisk knows what to do.

Peer names have to be distinct, this is just a fundamental design element of chan_sip. What a lot of people end up doing is instead of treating peers as people they treat them as devices. The peer name becomes the MAC address of the device they have been assigned.

Since peer names are not the same as extensions though you can certainly have multiple john extensions on different domains. You need to create different contexts which route them accordingly and then map the domains to the contexts in sip.conf

Take a gander at sip.conf.sample - specifically the SIP DOMAIN SUPPORT section and you'll see what I mean.

Cheers,

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at:  www.digium.com  & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

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

Reply via email to