Jakob-Matthias Böttger
2012-Jul-04 09:32 UTC
[asterisk-users] Queue Member login from IAX trunk
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6245 bytes Desc: S/MIME Kryptografische Unterschrift URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120704/b36555b5/attachment.bin>
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 <jakob at 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120704/c104f61e/attachment.htm>