<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">mhh that makes sense indeed. My
      intention is to add Agents wich are connected to serverb to the
      queue at servera. But i don'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 "IAX2/serverb" to the number and saves it as
      agend phone number...<br>
      <br>
      Regards Jakob<br>
      <br>
      <br>
      Am 04.07.2012 11:45, schrieb SamyGo:<br>
    </div>
    <blockquote
cite="mid:CAJUJwtgTRVaLhi7f2ejnUY9rLM8mdxH_yuQyNcLVftYZEB9nbg@mail.gmail.com"
      type="cite">Hi,
      <div><br>
        <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,Read(AGENT_SIP,agent-</span><span
style="color:rgb(34,34,34);font-size:13.333333969116211px;background-color:rgb(255,255,255)">new</span><span
style="color:rgb(34,34,34);font-size:13.333333969116211px;background-color:rgb(255,255,255)">location)</span><br
style="color:rgb(34,34,34);font-size:13.333333969116211px;background-color:rgb(255,255,255)">
            <span
style="color:rgb(34,34,34);font-size:13.333333969116211px;background-color:rgb(255,255,255)">exten
              =&gt; 105,n,Set(AGENT_SIP=${DB(</span><span
style="color:rgb(34,34,34);font-size:13.333333969116211px;background-color:rgb(255,255,255)">agent</span><span
style="color:rgb(34,34,34);font-size:13.333333969116211px;background-color:rgb(255,255,255)">_sip/${agent-newlocation}</span><span
style="color:rgb(34,34,34);font-size:13.333333969116211px;background-color:rgb(255,255,255)">)})</span>&nbsp;</font><br>
          <br>
          Above two lines are very suspicious: AGENT_SIP is a variable
          which is getting some DTMF from caller.&nbsp;
          <span style="font-family:'courier
new',monospace;font-size:13.333333969116211px;color:rgb(34,34,34);background-color:rgb(255,255,255)">agent-</span><span
            style="font-family:'courier
new',monospace;font-size:13.333333969116211px;color:rgb(34,34,34);background-color:rgb(255,255,255)">new</span><span
            style="font-family:'courier
new',monospace;font-size:13.333333969116211px;color:rgb(34,34,34);background-color:rgb(255,255,255)">location</span>&nbsp;
          is the message you want to be played while getting the
          AGENT_SIP input.&nbsp;</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&ouml;ttger <span dir="ltr">&lt;<a
                moz-do-not-send="true" 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
                moz-do-not-send="true" 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>
              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a moz-do-not-send="true"
                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>
              &nbsp; &nbsp;<a moz-do-not-send="true"
                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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
    </blockquote>
    <br>
    <br>
  </body>
</html>