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=192.168.200.58/255.255.255.0
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@127.0.0.1) , 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 !!!
Thanks