[asterisk-commits] russell: trunk r39032 - /trunk/channel.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Aug 5 13:58:48 MST 2006
Author: russell
Date: Sat Aug 5 15:58:47 2006
New Revision: 39032
URL: http://svn.digium.com/view/asterisk?rev=39032&view=rev
Log:
- add DIALING_OFFHOOK and PRERING to ast_state2str
- don't include a newline character when building a response for an unknown
state
(issue #7645, jonty)
Modified:
trunk/channel.c
Modified: trunk/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/channel.c?rev=39032&r1=39031&r2=39032&view=diff
==============================================================================
--- trunk/channel.c (original)
+++ trunk/channel.c Sat Aug 5 15:58:47 2006
@@ -527,6 +527,10 @@
return "Up";
case AST_STATE_BUSY:
return "Busy";
+ case AST_STATE_DIALING_OFFHOOK:
+ return "Dialing Offhook";
+ case AST_STATE_PRERING:
+ return "Pre-ring";
default:
pthread_once(&state2str_buf_once, state2str_buf_key_create);
if (!(buf = pthread_getspecific(state2str_buf_key))) {
@@ -534,7 +538,7 @@
return NULL;
pthread_setspecific(state2str_buf_key, buf);
}
- snprintf(buf, STATE2STR_BUFSIZE, "Unknown (%d)\n", state);
+ snprintf(buf, STATE2STR_BUFSIZE, "Unknown (%d)", state);
return buf;
}
}
More information about the asterisk-commits
mailing list