hmm before I think of any solution: All I can tell you is that if you&#39;re trying to use ;<div><font face="courier new, monospace"><span style="color:rgb(34,34,34);font-size:13.333333969116211px;background-color:rgb(255,255,255)">exten =&gt; 105,n,Set(AGENT_SIP=${<b>DB(IAX2/</b></span><b></b><span style="color:rgb(34,34,34);font-size:13.333333969116211px;background-color:rgb(255,255,255)"><b>intranet/agent_ip)</b>})</span> </font><br>
<br>Both your Asterisk&#39;s server will need to have this DB in common/accessible. </div><div><br></div><div>Got it.. Use realtime Queues on Server-A ;</div><div>when Agent Logs in to Server B put values of the new Agent in MySQL queue-memebers table:</div>
<div><br></div><div>Only Server-A needs to be in realtime. Server-B will only be inserting and deleting agents from the table.</div><div><br></div><div>I hope it works.</div><div>Sammy</div><div><br><br><div class="gmail_quote">
On Wed, Jul 4, 2012 at 2:57 PM, Jakob-Matthias Böttger <span dir="ltr">&lt;<a href="mailto:jakob@j-mb.de" target="_blank">jakob@j-mb.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>mhh that makes sense indeed. My
      intention is to add Agents wich are connected to serverb to the
      queue at servera. But i don&#39;t know how to tell the queue that the
      Agent ist reachable at IAX/serverb/agent_sip<br>
      <br>
      so the extension should be something like<br>
      <br>
      exten =&gt; 105,n,Read(AGENT_SIP,agent-newlocation)<br>
      exten =&gt; 105,n,Set(AGENT_SIP=${DB(IAX2/intranet/agent_ip)})<br>
      <br>
      so the agent enters the number from the phone he is connected.
      Then Asterisk adds &quot;IAX2/serverb&quot; to the number and saves it as
      agend phone number...<br>
      <br>
      Regards Jakob<br>
      <br>
      <br>
      Am <a href="tel:04.07.2012%2011" value="+92407201211" target="_blank">04.07.2012 11</a>:45, schrieb SamyGo:<br>
    </div><div><div class="h5">
    <blockquote type="cite">Hi,
      <div><br>
        <div><font face="courier new, monospace"><span style="color:rgb(34,34,34);font-size:13.333333969116211px">exten
              =&gt; 105,n,Read(AGENT_SIP,agent-</span><span style="color:rgb(34,34,34);font-size:13.333333969116211px">new</span><span style="color:rgb(34,34,34);font-size:13.333333969116211px">location)</span><br style="color:rgb(34,34,34);font-size:13.333333969116211px">

            <span style="color:rgb(34,34,34);font-size:13.333333969116211px">exten
              =&gt; 105,n,Set(AGENT_SIP=${DB(</span><span style="color:rgb(34,34,34);font-size:13.333333969116211px">agent</span><span style="color:rgb(34,34,34);font-size:13.333333969116211px">_sip/${agent-newlocation}</span><span style="color:rgb(34,34,34);font-size:13.333333969116211px">)})</span> </font><br>

          <br>
          Above two lines are very suspicious: AGENT_SIP is a variable
          which is getting some DTMF from caller. 
          <span>agent-</span><span>new</span><span>location</span> 
          is the message you want to be played while getting the
          AGENT_SIP input. </div>
        <div>What is the next line doing in SET() !!? Please explain
          that.</div>
        <div><br>
          Regards,</div>
        <div>Sammy</div>
        <div><br>
        </div>
        <div>
          <div class="gmail_quote">On Wed, Jul 4, 2012 at 2:32 PM,
            Jakob-Matthias Böttger <span dir="ltr">&lt;<a href="mailto:jakob@j-mb.de" target="_blank">jakob@j-mb.de</a>&gt;</span> wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>
              <br>
              i got two Asterisk servers connected with IAX2.<br>
              <br>
              At server 1 i hosted a queue named support. Now i want the
              Agent to login from SIP Phones Connected to server B.<br>
              Therefore i wrote a extension like<br>
              <br>
              exten =&gt; 105,1,Authenticate(1234)<br>
              exten =&gt; 105,n,AddQueueMember(support,,)<br>
              exten =&gt; 105,n,Read(AGENT_SIP,agent-newlocation)<br>
              exten =&gt; 105,n,Set(AGENT_SIP=${DB(agent_sip/${agent-newlocation})})<br>
              exten =&gt; 105,n,Playback(agent-loginok)<br>
              exten =&gt; 105,n,Playback(vm-goodbye)<br>
              exten =&gt; 105,n,Hangup<br>
              <br>
              Now server A takes IAX/serverB as argument for AGENT_SIP
              but deletes the entered number in agent-newlocation. Do
              you have any ideas how to solve that?<br>
              <br>
              Best regards Jakob<br>
              <br>
              <br>
              --<br>
_____________________________________________________________________<br>
              -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
              New to Asterisk? Join us for a live introductory webinar
              every Thurs:<br>
                             <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
              <br>
              asterisk-users mailing list<br>
              To UNSUBSCRIBE or update options visit:<br>
                 <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
    </blockquote>
    <br>
    <br>
  </div></div></div>

<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>