<font face="verdana,sans-serif">
<div class="posting">
<p>Hi Dave, </p>
<p>i've added the line modparam("alias_db", "append_branches", 1), but now i'm trying to call the alias 314001 and the INVITE is going to both users 1000 and 1001 as expected: that'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> -> <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: <sip:192.168.131.129;lr=on><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: <sip:1000@192.168.131.1:5060;transport=UDP><br>To: <<a href="mailto:sip%3A314001@192.168.131.129">sip:314001@192.168.131.129</a>;transport=UDP><br>From: "1000"<<a href="mailto:sip%3A1000@192.168.131.129">sip:1000@192.168.131.129</a>;transport=UDP>;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> -> <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: <sip:192.168.131.129;lr=on><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: <sip:1000@192.168.131.1:5060;transport=UDP><br>To: <<a href="mailto:sip%3A314001@192.168.131.129">sip:314001@192.168.131.129</a>;transport=UDP><br>From: "1000"<<a href="mailto:sip%3A1000@192.168.131.129">sip:1000@192.168.131.129</a>;transport=UDP>;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'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> -> <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"><<a href="mailto:dave.dorasinger@gmail.com">dave.dorasinger@gmail.com</a>></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 <<a href="mailto:toyimads@gmail.com">toyimads@gmail.com</a>> wrote:<br>><br>> 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've tried to insert the data on phpmyadmin and also on opensips-panel, it doesn't work:<br>
><br>><br>> Error<br>><br>> consulta SQL:<br>><br></div>
<div class="im">> INSERT INTO `opensips`.`dbaliases` (<br>><br>> `id` ,<br>> `alias_username` ,<br>> `alias_domain` ,<br>> `username` ,<br>> `domain`<br>> )<br>> VALUES (<br>> NULL , '314001', '192.168.131.129', '1000', '192.168.131.129'<br>
> )<br>><br>> MySQL ha dicho:<br>><br></div>
<div class="im">> #1062 - Duplicate entry '314001-192.168.131.129' for key 'alias_idx'<br>><br>><br>> Thanks!<br>><br></div>> _______________________________________________<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>
><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>