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

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


    [ https://issues.asterisk.org/jira/browse/ASTERISK-14125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=218595#comment-218595 ] 

kondik commented on ASTERISK-14125:
-----------------------------------

many thanks for your quick response.

I have tested one more putting the same as you wrote above and my OriginateResponse is:

Event: OriginateResponse
Privilege: call,all
Response: Failure
Channel: Local/busy_test at test-00000090;1
Context:
Exten:
Reason: 0
Uniqueid: 1401371669.608
CallerIDNum: <unknown>
CallerIDName: <unknown>

I know that the Response is either "Failure" or "Success" and it is ok, but I don't know why I have always: "Reason: 0" .

Below my debug log:


[May 29 15:59:54] VERBOSE[30053] dial.c:     -- Called busy_test at test
[May 29 15:59:54] VERBOSE[30054][C-000000a3] pbx.c:     -- Executing [busy_test at test:1] NoOp("Local/busy_test at test-00000091;2", "") in new stack
[May 29 15:59:54] VERBOSE[30054][C-000000a3] pbx.c:     -- Executing [busy_test at test:2] Busy("Local/busy_test at test-00000091;2", "") in new stack
[May 29 15:59:54] VERBOSE[30053] dial.c:     -- Local/busy_test at test-00000091;1 is busy
[May 29 15:59:54] VERBOSE[30054][C-000000a3] pbx.c:   == Spawn extension (test, busy_test, 2) exited non-zero on 'Local/busy_test at test-00000091;2'




> [patch] Asterisk Manager API Action Originate / OriginateResponse
> -----------------------------------------------------------------
>
>                 Key: ASTERISK-14125
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-14125
>             Project: Asterisk
>          Issue Type: Bug
>          Components: General
>            Reporter: Nicholas Blasgen
>         Attachments: manager-timeout1.diff
>
>
> 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?



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



More information about the asterisk-bugs mailing list