Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] multiple host in 1 context on sip.conf


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
oej at edvina.net
Guest





PostPosted: Thu Feb 14, 2008 4:35 am    Post subject: [asterisk-users] multiple host in 1 context on sip.conf Reply with quote

Hi Mark!

13 feb 2008 kl. 23.42 skrev Mark Quitoriano:

Quote:
Is it possilble for a single context to have multiple host=
something like this
First "context" is something we use to describe a segment of the
dialplan. I would call this "section".
Quote:


[carrier]
host=<ip address1>
host=<ip address2>
host=<ip address3>
type=peer
disallow=all
allow=g729
allow=ulaw
canreinvite=no
insecure=yes
qualify=yes

No. You can only add one.

Normally I would add host=sip.mydomain.com and have multiple DNS
entries or use SRV records to do failover and such,
provided you use this for outbound calls.

Since you call this peer "carrier" I assume you want to handle inbound
calls. Today, you will have to define three different
peers, but remember that you can use templates.

[carrier](!)
type=peer
disallow=all
allow=g729
allow=ulaw
canreinvite=no
insecure=yes
qualify=yes

[carrier-01](carrier)
host=<ip address1>

[carrier-02](carrier)
host=<ip address2>

[carrier-03](carrier)
host=<ip address3>

You will now have three peers named carrier-01-03 but no peer named
"carrier" in your sip driver when you run "sip show peers".

Regards,
/Olle


---
* Olle E. Johansson - oej at edvina.net
* Asterisk Training http://edvina.net/training/
Back to top
fkasumovic at gmail.com
Guest





PostPosted: Fri Feb 15, 2008 11:31 am    Post subject: [asterisk-users] multiple host in 1 context on sip.conf Reply with quote

Johansson Olle E wrote:
Quote:
Hi Mark!

13 feb 2008 kl. 23.42 skrev Mark Quitoriano:


Quote:
Is it possilble for a single context to have multiple host=
something like this

First "context" is something we use to describe a segment of the
dialplan. I would call this "section".



Quote:
[carrier]
host=<ip address1>
host=<ip address2>
host=<ip address3>
type=peer
disallow=all
allow=g729
allow=ulaw
canreinvite=no
insecure=yes
qualify=yes


No. You can only add one.


Yes You can, check this ticket
http://bugs.digium.com/view.php?id=12005
Quote:
---
* Olle E. Johansson - oej at edvina.net
* Asterisk Training http://edvina.net/training/




_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

Back to top
markquitoriano at gmai...
Guest





PostPosted: Fri Feb 15, 2008 2:25 pm    Post subject: [asterisk-users] multiple host in 1 context on sip.conf Reply with quote

Hi Olle,

On Thu, Feb 14, 2008 at 5:35 PM, Johansson Olle E <oej at edvina.net> wrote:

Quote:
Hi Mark!

13 feb 2008 kl. 23.42 skrev Mark Quitoriano:

Quote:
Is it possilble for a single context to have multiple host=
something like this
First "context" is something we use to describe a segment of the
dialplan. I would call this "section".


Quote:


[carrier]
host=<ip address1>
host=<ip address2>
host=<ip address3>
type=peer
disallow=all
allow=g729
allow=ulaw
canreinvite=no
insecure=yes
qualify=yes

No. You can only add one.

Normally I would add host=sip.mydomain.com and have multiple DNS
entries or use SRV records to do failover and such,
provided you use this for outbound calls.

Since you call this peer "carrier" I assume you want to handle inbound
calls. Today, you will have to define three different
peers, but remember that you can use templates.

[carrier](!)
type=peer
disallow=all
allow=g729
allow=ulaw
canreinvite=no
insecure=yes
qualify=yes

[carrier-01](carrier)
host=<ip address1>

[carrier-02](carrier)
host=<ip address2>

[carrier-03](carrier)
host=<ip address3>

You will now have three peers named carrier-01-03 but no peer named
"carrier" in your sip driver when you run "sip show peers".


This looks interesting. Is there more documentation how to do this? And btw
in dialplan can i call this just simply SIP/carrier and all the 3 ip will be
used?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080216/a429f7d3/attachment.htm
Back to top
fkasumovic at gmail.com
Guest





PostPosted: Tue Feb 19, 2008 5:35 am    Post subject: [asterisk-users] multiple host in 1 context on sip.conf Reply with quote

Mark Quitoriano wrote:
Quote:


On Sat, Feb 16, 2008 at 12:31 AM, Faruk Kasumovic
<fkasumovic at gmail.com <mailto:fkasumovic at gmail.com>> wrote:

Johansson Olle E wrote:
Quote:
Hi Mark!

13 feb 2008 kl. 23.42 skrev Mark Quitoriano:


Quote:
Is it possilble for a single context to have multiple host=
something like this

First "context" is something we use to describe a segment of the
dialplan. I would call this "section".



Quote:
[carrier]
host=<ip address1>
host=<ip address2>
host=<ip address3>
type=peer
disallow=all
allow=g729
allow=ulaw
canreinvite=no
insecure=yes
qualify=yes


No. You can only add one.


Yes You can, check this ticket
http://bugs.digium.com/view.php?id=12005


this is good if the ip addresses are on the same network. But what if
it has totally different networks?
Read about it you will surprise Smile
http://www.voip-info.org/wiki/index.php?page=Asterisk+sip+permit-deny-mask

Quote:

------------------------------------------------------------------------

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services