<font face="verdana,sans-serif">
<div class="posting">
<p>Hi Dave, </p>
<p>i&#39;ve added the line modparam(&quot;alias_db&quot;, &quot;append_branches&quot;, 1), but now i&#39;m trying to call the alias 314001 and the INVITE is going to both users 1000 and 1001 as expected: that&#39;s nice...</p>

<p> #<br>U 2011/05/18 13:55:52.918314 <strong><a href="http://192.168.131.129:5060">192.168.131.129:5060</a> -&gt; <a href="http://192.168.131.1:61052">192.168.131.1:61052</a><br></strong>INVITE <strong><a href="http://sip:vipexamk@192.168.131.1:61052">sip:vipexamk@192.168.131.1:61052</a></strong> SIP/2.0<br>
Record-Route: &lt;sip:192.168.131.129;lr=on&gt;<br>Via: SIP/2.0/UDP 192.168.131.129;branch=z9hG4bKec48.66d63466.0<br>Via: SIP/2.0/UDP 192.168.131.1:5060;branch=z9hG4bK-d8754z-801d2084170f1b21-1---d8754z-<br>Max-Forwards: 69<br>
Contact: &lt;sip:1000@192.168.131.1:5060;transport=UDP&gt;<br>To: &lt;<a href="mailto:sip%3A314001@192.168.131.129">sip:314001@192.168.131.129</a>;transport=UDP&gt;<br>From: &quot;1000&quot;&lt;<a href="mailto:sip%3A1000@192.168.131.129">sip:1000@192.168.131.129</a>;transport=UDP&gt;;tag=ff69d424<br>
Call-ID: N2JiMTRhODJhNTRiNTgzNjc3NjdkZTI1NThiOWQ1MTU.<br>CSeq: 2 INVITE<br>Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE<br>Content-Type: application/sdp<br>User-Agent: Zoiper rev.5324<br>
Content-Length: 329</p>
<p>v=0<br>o=Zoiper_user 0 0 IN IP4 192.168.131.1<br>s=Zoiper_session<br>c=IN IP4 192.168.131.1<br>t=0 0<br>m=audio 8000 RTP/AVP 3 0 8 110 98 101<br>a=rtpmap:3 GSM/8000<br>a=rtpmap:0 PCMU/8000<br>a=rtpmap:8 PCMA/8000<br>a=rtpmap:110 speex/8000<br>
a=rtpmap:98 iLBC/8000<br>a=fmtp:98 mode=30<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-15<br>a=sendrecv</p>
<p>#<br>U 2011/05/18 13:55:52.918371 <strong><a href="http://192.168.131.129:5060">192.168.131.129:5060</a> -&gt; <a href="http://192.168.131.129:5060">192.168.131.129:5060</a><br></strong>INVITE <strong><a href="mailto:sip%3A1000@192.168.131.129">sip:1000@192.168.131.129</a></strong> SIP/2.0<br>
Record-Route: &lt;sip:192.168.131.129;lr=on&gt;<br>Via: SIP/2.0/UDP 192.168.131.129;branch=z9hG4bKec48.66d63466.1<br>Via: SIP/2.0/UDP 192.168.131.1:5060;branch=z9hG4bK-d8754z-801d2084170f1b21-1---d8754z-<br>Max-Forwards: 69<br>
Contact: &lt;sip:1000@192.168.131.1:5060;transport=UDP&gt;<br>To: &lt;<a href="mailto:sip%3A314001@192.168.131.129">sip:314001@192.168.131.129</a>;transport=UDP&gt;<br>From: &quot;1000&quot;&lt;<a href="mailto:sip%3A1000@192.168.131.129">sip:1000@192.168.131.129</a>;transport=UDP&gt;;tag=ff69d424<br>
Call-ID: N2JiMTRhODJhNTRiNTgzNjc3NjdkZTI1NThiOWQ1MTU.<br>CSeq: 2 INVITE<br>Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE<br>Content-Type: application/sdp<br>User-Agent: Zoiper rev.5324<br>
Content-Length: 329</p>
<p>v=0<br>o=Zoiper_user 0 0 IN IP4 192.168.131.1<br>s=Zoiper_session<br>c=IN IP4 192.168.131.1<br>t=0 0<br>m=audio 8000 RTP/AVP 3 0 8 110 98 101<br>a=rtpmap:3 GSM/8000<br>a=rtpmap:0 PCMU/8000<br>a=rtpmap:8 PCMA/8000<br>a=rtpmap:110 speex/8000<br>
a=rtpmap:98 iLBC/8000<br>a=fmtp:98 mode=30<br>a=rtpmap:101 telephone-event/8000<br>a=fmtp:101 0-15<br>a=sendrecv<br></p>
<p>As you can see, the R-URI of the first invite is ok, but not the second, as you can see the domain part is the ip address of the proxy and not the ip of the location user 1000, what&#39;s happening? seems to be a loop on the second branch<strong> (<a href="http://192.168.131.129:5060">192.168.131.129:5060</a> -&gt; <a href="http://192.168.131.129:5060">192.168.131.129:5060</a></strong>)...as i can see, the DB alias is correctly fetching both users from DB, but only the first one is resolved via lookup(location) (registration search). <br>
<br>any suggest?</p>
<p>Many thanks!</p>
<p></p></div><br></font><br>
<div class="gmail_quote">2011/5/18 Dave Singer <span dir="ltr">&lt;<a href="mailto:dave.dorasinger@gmail.com">dave.dorasinger@gmail.com</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Toyima,<br><br>check:<br><a href="http://www.opensips.org/html/docs/modules/1.6.x/alias_db.html#id250030" target="_blank">http://www.opensips.org/html/docs/modules/1.6.x/alias_db.html#id250030</a><br>
<br>Dave<br>
<div class="im"><br>On Tue, May 17, 2011 at 6:44 AM, Toyima Dias &lt;<a href="mailto:toyimads@gmail.com">toyimads@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Is it possible to add the same alias to more than one subscriber? for example, if an incoming call to the number 14882736524 is assigned to subscriber 1000, is it possible to assign this DID to subscriber 1001? the idea is to create a group of ringing or something like that, is that possible? i&#39;ve tried to insert the data on phpmyadmin and also on opensips-panel, it doesn&#39;t work:<br>
&gt;<br>&gt;<br>&gt; Error<br>&gt;<br>&gt; consulta SQL:<br>&gt;<br></div>
<div class="im">&gt; INSERT INTO `opensips`.`dbaliases` (<br>&gt;<br>&gt; `id` ,<br>&gt; `alias_username` ,<br>&gt; `alias_domain` ,<br>&gt; `username` ,<br>&gt; `domain`<br>&gt; )<br>&gt; VALUES (<br>&gt; NULL , &#39;314001&#39;, &#39;192.168.131.129&#39;, &#39;1000&#39;, &#39;192.168.131.129&#39;<br>
&gt; )<br>&gt;<br>&gt; MySQL ha dicho:<br>&gt;<br></div>
<div class="im">&gt; #1062 - Duplicate entry &#39;314001-192.168.131.129&#39; for key &#39;alias_idx&#39;<br>&gt;<br>&gt;<br>&gt; Thanks!<br>&gt;<br></div>&gt; _______________________________________________<br>&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br><font color="#888888"><br><br><br>--<br>David Singer<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</font></blockquote></div><br>