<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><blockquote type="cite"></blockquote><div>An option to rotate between numbers is to add a queue to the system and add 1111 and 2222 as agents and pick the proper strategy (rrmemory or&nbsp;leastrecent). This has some advantages:</div><div>- &nbsp;the calls are devided as you have in mind</div><div>- &nbsp;when there are more calls coming in they are queued instead of a busy tone</div><div>- you can scale by just adding an agent to the queue</div><div><br></div><div>see&nbsp;<a href="http://www.voip-info.org/wiki-Asterisk+call+queues">http://www.voip-info.org/wiki-Asterisk+call+queues</a> for further info</div><div><br></div><div><br></div><div>Erik de Wild</div><div>Tripple-o</div><div>Your Asterisk migration partner</div><div><br></div><br><blockquote type="cite">I'm trying to come up with a quick, easy solution to have a static<br></blockquote><blockquote type="cite">inbound number in my dialplan, rotate calling 2 numbers. &nbsp;Example:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1st call into asterisk<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">exten => 1234,1,Dial(sip/1111,10)<br></blockquote><blockquote type="cite">exten => 1234,n,Dial(sip/2222,10)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">2nd call into asterisk<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">exten => 1234,1,Dial(sip/2222,10)<br></blockquote><blockquote type="cite">exten => 1234,n,Dial(sip/1111,10)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">We're kind off looking to do load balancing via the dial plan.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">But I'm having a little trouble getting the logic to trace 1st call<br></blockquote><blockquote type="cite">in, 2nd call in, 1st call in, 2nd call in, etc.<br></blockquote><div><font class="Apple-style-span" color="#144FAE"><br></font></div></body></html>