first of all sorry, yeah I am new in asterisk, I started asterisk last from 3 weeks and I am basically a jr OOP programmer so this field very new to me.
Just like in OOP(Object Oriented Programming) call means go to another file’s module and complete execution and return back to the old program, so yes Because of my technical jargons misunderstanding annoying you, I am really sorry for my inconvenience and I’ll try to improve my self.
So let’s come to the point which you didn’t get, So David let’s take a simple example I have to parties 1101 and 1103, whenever I dial means send a call request to 1103, 1103 ringing and it accepts that and bridge established now I can communicate with that, Hope till here you get.
But now I want to implement SPEECH to TEXT translation whose code written in agi file, you can see I dial that in my dialplan at 3rd extent.
So SPEECH to TEXT is a totally external program so we do not worry about how it works.
But my main doubt here, the bridge established, I can communicate then why my
exten => _11XX,n,agi(speech-recog.agi,en-US)
this dialplan line is not executing?
What happened in my case,
It’s simply established call and then hanged.
Just like below code,
[Long-Distance]
;Simple speech recognition
exten => _11XX,1,Answer()
exten => _11XX,n,dial(pjsip/${EXTEN})
;exten => _11XX,n,agi(speech-recog.agi,en-US)
;exten => _11XX,n,Verbose(1,The text you just said is: ${utterance})
;exten => _11XX,n,Verbose(1,The probability to be right is: ${confidence})
exten => _11XX,n,Hangup()
It never executes those commented lines.
I am sorry I do not know much about ASTERISK and AGI that’s why I failed to debug.