How to know whether call is answered or rejected

General discussions about Asterisk.

Moderators: Moderator, Support

How to know whether call is answered or rejected

Postby am007 » Fri Jan 29, 2016 2:07 pm

Hi ,

I have a java program which initiates call to other mobile number using ami class library, my question is how can i know whether call is picked or rejected at recipient end?.

originate action returns always error/* for not picking up call*/ , or success /*if call is picked, or rejected*/
am007
Newsterisk
 
Posts: 1
Joined: Fri Jan 29, 2016 2:04 pm

Re: How to know whether call is answered or rejected

Postby ambiorixg12 » Sat Jan 30, 2016 1:16 am

According to the documentation it says that the originate command sets the following channel variable before exiting: ${ORIGINATE_STATUS}: This indicates the result of the call origination.
Possible values:
FAILED
SUCCESS
BUSY
CONGESTION
HANGUP
RINGING

My suggestion could be also check the AMI events generated when the call is answered or rejected and check if there is any difference,
ambiorixg12
Astmaster
 
Posts: 967
Joined: Sun Mar 04, 2007 9:32 pm
Location: Dominican Republic


Return to Asterisk General

Who is online

Users browsing this forum: No registered users and 7 guests