[asterisk-users] Originate
Krzysiek
krzysiez at go2.pl
Mon Sep 8 10:11:56 CDT 2008
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
More information about the asterisk-users
mailing list