<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,&nbsp; 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&aring;rd:<br />&gt; Hi,<br />&gt;<br />&gt; Did order and setup a SIP trunk to a Swedish ITSP named Tele2. No<br />&gt; problem to get outgoing calls to work but i have some problems with<br />&gt; incoming.<br />&gt;<br />&gt; Did set "srvlookup=yes" in sip.conf. "Sending" all outgoing calls to<br />&gt; "sip-corporate.tele2.se" which is either sip-corporate1.tele2.se<br />&gt; (130.244.190.42) or sip-corporate1.tele2.se (130.244.190.46).<br />&gt;<br />&gt; If i do a "sip show peer Tele2", I see that Asterisk has chosen one of<br />&gt; them: ToHost : sip-corporate.tele2.se<br />&gt; Addr-&gt;IP : 130.244.190.46 Port 5060<br />&gt;<br />&gt; Now my problems starts, when Tele2 sends a call to my Asterisk, the call<br />&gt; can come frome any of those two ip-adresses. If it comes from<br />&gt; 130.244.190.46 everything if fine, but if it comes from 130.244.190.42:<br />&gt; "[Mar 2 08:46:03] NOTICE[1372]: chan_sip.c:19167 handle_request_invite:<br />&gt; Failed to authenticate!"<br />&gt;<br />&gt; I thought "srvlookup=yes" should take care about that, but then i read a<br />&gt; little bit more and found: "Note: Asterisk only uses the first host in<br />&gt; 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 />&gt;<br />&gt; Can anyone plz give me some hint howto solve my problem?<br />&gt;<br />&gt; Regards,<br />&gt;<br />&gt; Magnus<br />&gt;</p>
<p>&nbsp;</p>
</blockquote>
<p>&nbsp;</p></div>