[asterisk-bugs] [JIRA] (ASTERISK-20902) Asterisk does not send 200 OK to caller after receiving 200 OK from callee

David Cunningham (JIRA) noreply at issues.asterisk.org
Mon Feb 4 19:45:59 CST 2013


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

David Cunningham updated ASTERISK-20902:
----------------------------------------

    Assignee: Rusty Newton  (was: David Cunningham)
      Status: Triage  (was: Waiting for Feedback)

I've just attached a simple AGI scenario to recreate the problem.

When 1000101 is called the call goes to AGI call_phone.agi.
The AGI dials 1000101, and instructs that macro test-answered be run when it answers.
When phone 1000101 answers, the macro is run and calls AGI test_fork.agi.
The AGI test_fork.agi does the important bit in re-creating the problem, which is to fork a child process. The parent continues after the fork and exits. We do everything we can around the fork to ensure the child process becomes independent and that the parent definitely exits immediately.
However, the 200 OK from 1000101 answering is delayed by Asterisk until after the child process exists.
We can't work out how Asterisk even knows that the child process exists.
A trace is attached, as well as the AGI scripts, and the extensions.conf used.
Please let us know if you need anything more. Thanks.

You'll need to ensure perl module Asterisk::AGI is installed with command:
cpan Asterisk::AGI

                
> Asterisk does not send 200 OK to caller after receiving 200 OK from callee
> --------------------------------------------------------------------------
>
>                 Key: ASTERISK-20902
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20902
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/PBX, PBX/pbx_realtime
>    Affects Versions: 1.8.11.1
>         Environment: Ubuntu 10.10
>            Reporter: David Cunningham
>            Assignee: Rusty Newton
>         Attachments: 0000004-0000003-notworking.txt, 0000004-0000003-working.txt, call_phone.agi, extensions.conf, notworking_2013-01-14.txt, sip.conf, test_fork.agi, trace-20902-1.txt, working_2013-01-14.txt
>
>
> Three phones on one network: 0000001, 0000003, and 0000004.
> When phone 0000001 is NOT plugged in, and 0000004 calls 0000003, when 0000003 answers Asterisk does NOT send a 200 OK to 0000004.
> When phone 0000001 IS plugged in, under the same call scenario and with no other changes, when 0000003 answers Asterisk DOES send a 200 OK to 0000004.
> Bizarre I know. Traces of both working and not working scenarios attached. Happens on both 1.8.11.1 and 1.8.7.1. Thank you.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list