<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
</HEAD>
<BODY>
Hey list,<BR>
<BR>
I have a problem when I host 2 SIP-accounts on the same Asterisk-server. Asterisk picks out the SIP-account on alphabetic order A --> Z.<BR>
<BR>
In my sip.conf :<BR>
<BR>
<FONT SIZE="2">register => user1:<A HREF="mailto:df6r1c@85.119.188.3">passwd1@server</A>/user1</FONT><BR>
<FONT SIZE="2">register => user2:<A HREF="mailto:df6r1c@85.119.188.3">passwd2@server</A>/user2</FONT><BR>
<BR>
<FONT SIZE="2">[YOCAN-3starsnet]</FONT><BR>
<FONT SIZE="2">type=peer</FONT><BR>
<FONT SIZE="2">host=server</FONT><BR>
<FONT SIZE="2">username=user1</FONT><BR>
<FONT SIZE="2">secret=passwd1</FONT><BR>
<FONT SIZE="2">fromuser=user1</FONT><BR>
<FONT SIZE="2">accountcode=user1_in</FONT><BR>
<BR>
<FONT SIZE="2">[ITCENTER-3starsnet]</FONT><BR>
<FONT SIZE="2">type=peer</FONT><BR>
<FONT SIZE="2">host=server</FONT><BR>
<FONT SIZE="2">username=user2</FONT><BR>
<FONT SIZE="2">secret=passwd2</FONT><BR>
<FONT SIZE="2">fromuser=user2</FONT><BR>
<FONT SIZE="2">accountcode=ITCin</FONT><BR>
<BR>
The Asterisk CLI shows :<BR>
<BR>
<FONT SIZE="2">[Oct 8 15:06:03] -- Executing [s@macro-getiaxaccount:5] MYSQL("</FONT><FONT SIZE="2"><B>SIP/ITCENTER-3starsnet</B></FONT><FONT SIZE="2">-0764cdb0", ...</FONT><BR>
<FONT SIZE="2">[Oct 8 15:06:03] -- Executing [s@macro-getiaxaccount:6] MacroExit("</FONT><FONT SIZE="2"><B>SIP/ITCENTER-3starsnet</B></FONT><FONT SIZE="2">-0764cdb0", ...</FONT><BR>
<FONT SIZE="2">[Oct 8 15:06:03] -- Executing [s@092:9] NoOp("</FONT><FONT SIZE="2"><B>SIP/ITCENTER-3starsnet</B></FONT><FONT SIZE="2">-0764cdb0", "...</FONT><BR>
<FONT SIZE="2">[Oct 8 15:06:03] -- Executing [s@09:10] Dial("</FONT><FONT SIZE="2"><B>SIP/ITCENTER-3starsnet</B></FONT><FONT SIZE="2">-0764cdb0", "...</FONT><BR>
<BR>
Notice the <B><FONT SIZE="2">SIP/ITCENTER-3starsnet</FONT></B>.<BR>
<BR>
Now when I put <FONT SIZE="2">[ITCENTER-3starsnet]</FONT> in comment in sip.conf, the CLI shows :<BR>
<BR>
<FONT SIZE="2">[Oct 8 15:16:08] -- Executing [s@macro-getiaxaccount:5] MYSQL("</FONT><FONT SIZE="2"><B>SIP/YOCAN-3starsnet</B></FONT><FONT SIZE="2">-0764e7b0", "...</FONT><BR>
<FONT SIZE="2">[Oct 8 15:16:08] -- Executing [s@macro-getiaxaccount:6] MacroExit("</FONT><FONT SIZE="2"><B>SIP/YOCAN-3starsnet</B></FONT><FONT SIZE="2">-0764e7b0", "...</FONT><BR>
<FONT SIZE="2">[Oct 8 15:16:08] -- Executing [s@092779077:9] NoOp("</FONT><FONT SIZE="2"><B>SIP/YOCAN-3starsnet</B></FONT><FONT SIZE="2">-0764e7b0", "...</FONT><BR>
<FONT SIZE="2">[Oct 8 15:16:08] -- Executing [s@092779077:10] Dial("</FONT><FONT SIZE="2"><B>SIP/YOCAN-3starsnet</B></FONT><FONT SIZE="2">-0764e7b0", "...</FONT><BR>
<BR>
Notice the <B><FONT SIZE="2">SIP/YOCAN-3starsnet</FONT></B>.<BR>
<BR>
How can I keep the SIP-connection for user1 apart from the SIP-connection of user2 ???<BR>
<BR>
When I activate the SIP-account for user2, an incoming call <U>always</U> goes via this second SIP-account !!<BR>
<BR>
<BR>
Thanks for the feedback.<BR>
<BR>
Jonas.
</BODY>
</HTML>