Summary: | ASTERISK-05366: [patch] devicestate fails with '-' in host name | ||
Reporter: | gkloepfer (gkloepfer) | Labels: | |
Date Opened: | 2005-10-25 16:52:18 | Date Closed: | 2008-01-15 15:52:11.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) devicestate.diff | |
Description: | If there is a dash ('-') in the host name portion of a tech/res@host spec, the hostname will get truncated at the first '-'. ****** ADDITIONAL INFORMATION ****** The reason for the problem is that the intent was to remove the '-' and number at the end of a channel identifier. I have modified the code so that the truncation is done at the last dash, not the first one. | ||
Comments: | By: Olle Johansson (oej) 2005-10-26 01:04:46 Can you please tell us which channel you are using as well? Have you tested this patch with several channels? By: gkloepfer (gkloepfer) 2005-10-26 05:41:54 I did some preliminary testing with chan_sip and quite a bit with chan_mgcp (see bug 0005515). I will do some additional testing with all channels I can and submit an update by the end of the day today. By: Olle Johansson (oej) 2005-10-26 07:42:30 Thanks for the assistance, just want to be sure. By: Russell Bryant (russell) 2005-10-26 11:42:10 fixed in cvs head, thanks! By: Digium Subversion (svnbot) 2008-01-15 15:52:11.000-0600 Repository: asterisk Revision: 6854 U trunk/devicestate.c ------------------------------------------------------------------------ r6854 | russell | 2008-01-15 15:52:11 -0600 (Tue, 15 Jan 2008) | 2 lines look for the last '-' in the channel name instead of the first (issue ASTERISK-5366) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=6854 |