Hello
I try to login in asterisk using java - manager api.
extension.conf:
exten => 100,1,Agi(agi://localhost/AgentLogin.agi)
I would call to this number and login in Asterisk. Is this possible.
for example:
originateAction = new OriginateAction();
originateAction.setCallerId("SIP/grandstream_fxs1 <502>");
originateAction.setChannel("SIP/ekiga");
originateAction.setData("14");
originateAction.setContext("default");
originateAction.setExten("100");
originateAction.setPriority(11);
but if my softphone ekiga answer then listen: "demo-congrats" why?
second option:
try to connect to agi:
DefaultAsteriskServer server = new DefaultAsteriskServer("192.168.77.192",
"manager", "pa55w0rd");
server.initialize();
server.originateToApplication("SIP/ekiga", "AGI",
"agi://localhost/AgentLogin.agi",30000L);
but ekiga softphone start ringing if i accept call then login in asterisk, this
is good, but i want login agent not using phone. This is possible ?
Chris
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users