<div style="font-family:Arial;font-size:14px"><p>Hi!</p>
<p>Did a setup of 2 peers as Klaus suggested, it worked thx!</p>
<p>Has anyone thought about the possibility to add multiple ip/hosts to "host="?</p>
<p>I my case: "host=130.244.190.42,130.244.190.46" or "host=sip-corporate1.tele2.se,sip-corporate2.tele2.se"</p>
<p>Step 1 could be to send to the first ip/host and accept from both.</p>
<p>Step 2 could be "round-robin" send if both are up and alive...</p>
<p>Btw, did try trunk version, no support for multiple SRV records there.</p>
<blockquote style="border-left: 2px solid #1010ff; padding-left: 5px; margin-left: 5px; width: 100%;">
<p><br /><br />Am 02.03.2010 08:50, schrieb Magnus Benngård:<br />> Hi,<br />><br />> Did order and setup a SIP trunk to a Swedish ITSP named Tele2. No<br />> problem to get outgoing calls to work but i have some problems with<br />> incoming.<br />><br />> Did set "srvlookup=yes" in sip.conf. "Sending" all outgoing calls to<br />> "sip-corporate.tele2.se" which is either sip-corporate1.tele2.se<br />> (130.244.190.42) or sip-corporate1.tele2.se (130.244.190.46).<br />><br />> If i do a "sip show peer Tele2", I see that Asterisk has chosen one of<br />> them: ToHost : sip-corporate.tele2.se<br />> Addr->IP : 130.244.190.46 Port 5060<br />><br />> Now my problems starts, when Tele2 sends a call to my Asterisk, the call<br />> can come frome any of those two ip-adresses. If it comes from<br />> 130.244.190.46 everything if fine, but if it comes from 130.244.190.42:<br />> "[Mar 2 08:46:03] NOTICE[1372]: chan_sip.c:19167 handle_request_invite:<br />> Failed to authenticate!"<br />><br />> I thought "srvlookup=yes" should take care about that, but then i read a<br />> little bit more and found: "Note: Asterisk only uses the first host in<br />> SRV records". :(<br /><br />Hi Magnus!<br /><br />Asterisk does not support multiple SRV records (expcet there were some <br />recent changes which I missed) - it takes one of the most priors and use <br />it all the time.<br /><br />Thus, in your scenario you have to specify the possible inbound sources <br />manually as peers:<br /><br />[tele2-1]<br />type=peer<br />host=130.244.190.42<br />context=fromTele2<br />...<br />[tele2-2]<br />type=peer<br />host=130.244.190.46<br />context=fromTele2<br />...<br /><br /><br />regards<br />klaus<br /><br /><br />><br />> Can anyone plz give me some hint howto solve my problem?<br />><br />> Regards,<br />><br />> Magnus<br />></p>
<p> </p>
</blockquote>
<p> </p></div>