[asterisk-bugs] [JIRA] (ASTERISK-23804) Asterisk Manager API Action Originate / OriginateResponse

kondik (JIRA) noreply at issues.asterisk.org
Thu May 29 08:41:43 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

kondik updated ASTERISK-23804:
------------------------------

    Description: 
I have the following issue.  
When placing an outbound call with Asterisk Manager's Originate command, i.e:

Action: Originate
Channel: Local/konrad at test
Context: test
Exten: 5000
Priority: 1
Callerid: 22222222
Timeout: 10000
Variable: VAR1=23,VAR2=24,VAR3=25
ActionID: ABC45678901234567902
Async: True

 if the call times out or is no_answered, I get an OriginateResponse reason of `0` and `Failure` as the response.  
I should be getting a "No Answer" reason (should be "Reason: 1" ?? according to this: http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate)

below my OriginateResponse event"

Event: OriginateResponse
Privilege: call,all
ActionID: ABC45678901234567902
Response: Failure
Channel: Local/konrad at test-00000078;1
Context: test
Exten: 5000
Reason: 0
Uniqueid: 1401368963.512
CallerIDNum: 22222222
CallerIDName: <unknown>

I've tested on the following platforms:
Asterisk 12.1.1

The same case is when the called number is BUSY then "Reason" is "0" also.



  was:
I have the following issue.  When placing an outbound call with Asterisk Manager's Originate command, if the call times out, I get an OriginateResponse reason of `0` and `Failure` as the response.  I should be getting a "No Answer" response instead (code `4`) (at least in my mind a timeout should not be a failure).

I've tested on the following platforms:

Asterusj 1.4.20
Asterisk 1.4.23
Asterisk 1.4.24.1
Asterisk 1.4 r191778
Asterisk 1.4 r193870

My test method was to initiate a Originate call to myself (Asterisk -> SIP -> PSTN) with a short 4 second timeout and look at the OriginateResponse that came back 4 seconds after starting that call.  ASYNC is set to True.

Can someone tell me if this is really the expected outcome of a timeout?  I expect a Failure to mean the call was rejected by the remote side.  And since someone will end up looking into this, can we maybe get an update to the different "reason" codes?


> Asterisk Manager API Action Originate / OriginateResponse
> ---------------------------------------------------------
>
>                 Key: ASTERISK-23804
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23804
>             Project: Asterisk
>          Issue Type: Bug
>          Components: General
>            Reporter: kondik
>              Labels: Asterisk12
>
> I have the following issue.  
> When placing an outbound call with Asterisk Manager's Originate command, i.e:
> Action: Originate
> Channel: Local/konrad at test
> Context: test
> Exten: 5000
> Priority: 1
> Callerid: 22222222
> Timeout: 10000
> Variable: VAR1=23,VAR2=24,VAR3=25
> ActionID: ABC45678901234567902
> Async: True
>  if the call times out or is no_answered, I get an OriginateResponse reason of `0` and `Failure` as the response.  
> I should be getting a "No Answer" reason (should be "Reason: 1" ?? according to this: http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate)
> below my OriginateResponse event"
> Event: OriginateResponse
> Privilege: call,all
> ActionID: ABC45678901234567902
> Response: Failure
> Channel: Local/konrad at test-00000078;1
> Context: test
> Exten: 5000
> Reason: 0
> Uniqueid: 1401368963.512
> CallerIDNum: 22222222
> CallerIDName: <unknown>
> I've tested on the following platforms:
> Asterisk 12.1.1
> The same case is when the called number is BUSY then "Reason" is "0" also.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list