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

so the extension should be something like

exten => 105,n,Read(AGENT_SIP,agent-newlocation)
exten => 105,n,Set(AGENT_SIP=${DB(IAX2/intranet/agent_ip)})

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...

Regards Jakob


Am 04.07.2012 11:45, schrieb SamyGo:
Hi,

exten => 105,n,Read(AGENT_SIP,agent-newlocation)
exten => 105,n,Set(AGENT_SIP=${DB(agent_sip/${agent-newlocation})})

Above two lines are very suspicious: AGENT_SIP is a variable which is getting some DTMF from caller. agent-newlocation is the message you want to be played while getting the AGENT_SIP input.
What is the next line doing in SET() !!? Please explain that.

Regards,
Sammy

On Wed, Jul 4, 2012 at 2:32 PM, Jakob-Matthias Böttger <[email protected] <mailto:[email protected]>> wrote:

    Hello

    i got two Asterisk servers connected with IAX2.

    At server 1 i hosted a queue named support. Now i want the Agent
    to login from SIP Phones Connected to server B.
    Therefore i wrote a extension like

    exten => 105,1,Authenticate(1234)
    exten => 105,n,AddQueueMember(support,,)
    exten => 105,n,Read(AGENT_SIP,agent-newlocation)
    exten => 105,n,Set(AGENT_SIP=${DB(agent_sip/${agent-newlocation})})
    exten => 105,n,Playback(agent-loginok)
    exten => 105,n,Playback(vm-goodbye)
    exten => 105,n,Hangup

    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?

    Best regards Jakob


    --
    _____________________________________________________________________
    -- Bandwidth and Colocation Provided by http://www.api-digital.com --
    New to Asterisk? Join us for a live introductory webinar every Thurs:
    http://www.asterisk.org/hello

    asterisk-users mailing list
    To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users




--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
                http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


Attachment: smime.p7s
Description: S/MIME Kryptografische Unterschrift

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to