[asterisk-bugs] [JIRA] (ASTERISK-25797) app_queue: Crash when calling a queue with a member with a forward to an nonexistent extension

Jaco van Niekerk (JIRA) noreply at issues.asterisk.org
Fri Sep 16 07:59:02 CDT 2016


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

Jaco van Niekerk commented on ASTERISK-25797:
---------------------------------------------

I am experiencing the same problem and I have been able to replicated the fault: 

Connected to Asterisk 13.11.2 currently running on localhost (pid = 30307)

    -- Got SIP response 302 "Moved Temporarily" back from 192.168.97.71:5060
    -- Now forwarding DAHDI/i1/0871350000-1 to 'Local/444 at internal' (thanks to SIP/4000-00000000)
[2016-09-16 14:49:44] NOTICE[30388][C-00000001]: core_local.c:740 local_call: No such extension/context 444 at internal while calling Local channel
[2016-09-16 14:49:44] NOTICE[30388][C-00000001]: app_queue.c:4962 wait_for_answer: Forwarding failed to dial 'Local/444 at internal'
[2016-09-16 14:49:44] ERROR[30388][C-00000001]: astobj2.c:119 INTERNAL_OBJ: user_data is NULL
[2016-09-16 14:49:44] ERROR[30388][C-00000001]: astobj2.c:119 INTERNAL_OBJ: user_data is NULL
[2016-09-16 14:49:44] ERROR[30388][C-00000001]: astobj2.c:119 INTERNAL_OBJ: user_data is NULL



> app_queue: Crash when calling a queue with a member with a forward to an nonexistent extension
> ----------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-25797
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25797
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_queue
>    Affects Versions: 13.6.0, 13.7.2
>         Environment: Debian 8.3 amd64
>            Reporter: Etienne Lessard
>            Assignee: Unassigned
>         Attachments: AST-25797.backtrace.txt, AST-25797.debug.log, AST-25797.log, AST-25797.pcap
>
>
> Given I have a queue with 1 member: Alice (SIP/alice)
> Given Alice's phone has a forward (SIP native) to the 444 extension, and the 444 extension isn't defined in the dialplan
> When Bob calls the queue
> Then asterisk get stuck in what seems to be an infinite loop, consuming a lot of CPU time, and rapidly consuming (in the matter of seconds) all the available memory in the system, until the kernel OOM killer terminate the process
> In my example, I used the following queues.conf:
> {code}
> [sales]
> strategy = ringall
> member => SIP/alice
> {code}
> And the following extensions.conf:
> {code}
> [default]
> exten = 101,1,NoOp()
> same  =   n,Queue(sales)
> same  =   n,Hangup()
> {code}
> When Alice's phone receives a SIP INVITE from asterisk, since it has an unconditional forward enabled, it respond with a "302 Moved Temporarily" with the header "Contact: <sip:444 at 10.34.1.11>".
> I've attached the interesting part of the log.
> Thank you



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



More information about the asterisk-bugs mailing list