Answer call from AMI with (Asterisk-Java)

Hi ,

 I am a student , and i am working in a cti project on asterisk , i have 2 sip account in my sip.conf

[test] type=friend username=test secret=test qualify=yes nat=yes canreinvite = yes callerid=test host=dynamic permit= dtmfmode=rfc2833 qualify=200 mailbox=10 context=default

And [test2]

in the file extensions.conf :

exten => _X.,1,AGI(agi:async) exten => 7500,1,Dial(SIP/test2)

test and test2 are subscribed with tow softphone , when i dial (sip:7500@ , test2 softphone is ringing what i want to do is to answe the call (pickup the phone ) with AMI (Actions ), without press answer from the softphone i tried to redirect ringing channel to this extensions :

[incoming] exten => 123,1,Answer()

but afther redirection the caller hungup

i tried to use this line

in my dialplan but with AMI I dont handle any AgiAsyncEvent , now i lost 3 days and nothing so if you can answer me , i will be very glad !!!


no answer ??? :neutral_face: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:

Since when has 4 1/2 hours been more than a day? It’s also the wrong forum.

I think you need to get a better understanding of dialplans before you start using AGI. For a start, dropping off the end of the dialplan will hang up the call.

This is something you will need to do using the phone’s API. It is not something that SIP supports.