hmm before I think of any solution: All I can tell you is that if you're trying to use ; exten => 105,n,Set(AGENT_SIP=${*DB(IAX2/****intranet/agent_ip)*})
Both your Asterisk's server will need to have this DB in common/accessible. Got it.. Use realtime Queues on Server-A ; when Agent Logs in to Server B put values of the new Agent in MySQL queue-memebers table: Only Server-A needs to be in realtime. Server-B will only be inserting and deleting agents from the table. I hope it works. Sammy On Wed, Jul 4, 2012 at 2:57 PM, Jakob-Matthias Böttger <ja...@j-mb.de>wrote: > 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 <ja...@j-mb.de>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 > > > > > -- > _____________________________________________________________________ > -- 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