Summary: | ASTERISK-29772: chan_sip: ${CHANNEL(ruri)} in Dial/Queue b(test,s,1) cause a coredump | ||
Reporter: | Mark Petersen (asterisk.org@zombie.dk) | Labels: | |
Date Opened: | 2021-11-23 03:57:57.000-0600 | Date Closed: | 2021-12-13 13:05:16.000-0600 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Channels/chan_sip/General |
Versions: | 16.22.0 18.8.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Attachments: | ( 0) core.asterisk.985.c428ec31e420464288b2d50876bd93b5.64539.1637661313000000-brief.txt ( 1) core.asterisk.985.c428ec31e420464288b2d50876bd93b5.64539.1637661313000000-full.txt ( 2) core.asterisk.985.c428ec31e420464288b2d50876bd93b5.64539.1637661313000000-info.txt ( 3) core.asterisk.985.c428ec31e420464288b2d50876bd93b5.64539.1637661313000000-locks.txt ( 4) core.asterisk.985.c428ec31e420464288b2d50876bd93b5.64539.1637661313000000-thread1.txt | |
Description: | if you try to access CHANNEL(ruri) Before initiating an outgoing call asterisk will core dump
{noformat} [default] exten => _X!,1,Dial(SIP/XXX,,b(test,s,1)) [test] exten => s,1,NoOp(CRASH ME) same => n,NoOp(CHANNEL(channeltype)=${CHANNEL(channeltype)}) same => n,NoOp(CHANNEL(from)=${CHANNEL(from)}) same => n,NoOp(CHANNEL(peername)=${CHANNEL(peername)}) same => n,NoOp(CHANNEL(ruri)=${CHANNEL(ruri)}) ; WARNING CHANNEL(ruri) WILL CRASH ASTERISK {noformat} | ||
Comments: | By: Asterisk Team (asteriskteam) 2021-11-23 03:57:58.615-0600 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur. Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/]. By: Mark Petersen (asterisk.org@zombie.dk) 2021-11-23 04:00:28.433-0600 result from ast_coredumper By: Joshua C. Colp (jcolp) 2021-11-23 04:26:25.388-0600 The chan_sip channel driver is in 'extended' support status and is supported only by community members. Your issue is in the queue. Your patience is appreciated as a community developer may work the issue when time and resources become available. Asterisk is an open source project and community members work the issues on a voluntary basis. You are welcome to develop your own patches and submit them to the project.[1] If you are not a programmer and you are in a hurry to see a patch provided then you might try rallying support on the Asterisk users mailing list or forums.[2] Another alternative is offering a bug bounty on the asterisk-dev mailing list.[3] Often a little incentive can go a long way. [1]: https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process [2]: http://www.asterisk.org/community/discuss [3]: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Bug+Bounties By: Mark Petersen (asterisk.org@zombie.dk) 2021-11-23 10:07:29.141-0600 I have just retestet with asterisk 16.22.0 that have the same issue By: Mark Petersen (asterisk.org@zombie.dk) 2021-11-23 12:20:53.930-0600 introduced in ASTERISK-27278 (new feature) By: Friendly Automation (friendly-automation) 2021-12-13 13:05:17.507-0600 Change 17666 merged by Friendly Automation: chan_sip: Fix crash when accessing RURI before initiating outgoing call [https://gerrit.asterisk.org/c/asterisk/+/17666|https://gerrit.asterisk.org/c/asterisk/+/17666] By: Friendly Automation (friendly-automation) 2021-12-13 13:11:12.481-0600 Change 17664 merged by Friendly Automation: chan_sip: Fix crash when accessing RURI before initiating outgoing call [https://gerrit.asterisk.org/c/asterisk/+/17664|https://gerrit.asterisk.org/c/asterisk/+/17664] By: Friendly Automation (friendly-automation) 2021-12-13 13:39:30.142-0600 Change 17583 merged by George Joseph: chan_sip: Fix crash when accessing RURI before initiating outgoing call [https://gerrit.asterisk.org/c/asterisk/+/17583|https://gerrit.asterisk.org/c/asterisk/+/17583] By: Friendly Automation (friendly-automation) 2021-12-13 13:40:16.969-0600 Change 17665 merged by George Joseph: chan_sip: Fix crash when accessing RURI before initiating outgoing call [https://gerrit.asterisk.org/c/asterisk/+/17665|https://gerrit.asterisk.org/c/asterisk/+/17665] |