[asterisk-bugs] [JIRA] (ASTERISK-16999) [patch] asterisk crash when setting outbound mwi subscription in sip.conf
Tommy Thompson (JIRA)
noreply at issues.asterisk.org
Mon Dec 9 13:27:03 CST 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-16999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tommy Thompson reassigned ASTERISK-16999:
-----------------------------------------
Assignee: Tommy Thompson
> [patch] asterisk crash when setting outbound mwi subscription in sip.conf
> -------------------------------------------------------------------------
>
> Key: ASTERISK-16999
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-16999
> Project: Asterisk
> Issue Type: Bug
> Components: Channels/chan_sip/General
> Reporter: Guillaume Bour
> Assignee: Tommy Thompson
> Severity: Critical
> Attachments: gdb_trace.txt, m18350.patch, sip.conf
>
>
> We setting an outbound mwi subscription line in sip.conf, asterisk crash at start (on loading sip configuration)
> tested with asterisk 1.8.0 tarball and svn trunk.
> ****** STEPS TO REPRODUCE ******
> * add "mwi => 1234:password at mysipprovider.com/1234" in sip.conf [general] section
> * (re)start asterisk
> * it crash when loading sip module
> ****** ADDITIONAL INFORMATION ******
> The problem comes from channels/chan_sip.c:sip_subscribe_mwi function.
> This is a misuse of *sip_parse_host* function, where *username* returned value is only host part, not "username at host".
> Thus at line 7726, hostname variable is set to NULL.
> And asterisk crash at line 7730 (strchr did not expect a NULL value as argument)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list