Hi,
I am using HelloManager program given in asteriskjava tutorial. i tried to dial a channel using originate.action(“SIP/5101”);It is dialing to that number. Now i need to dial a phone number which is in my database.How could i do this.please guide me to do this.I tried like this.I got the field phone from the database and stored it in a String variable and called that variable inside originate.action(“SIP/variable”).
But in asterisk console it is displaying the error:
No such host: variable
Unable to request channel SIP/variable
what should i do to do the above.
Thanks.