[asterisk-commits] oej: branch group/set-tonezone-trunk r297774 - /team/group/set-tonezone-trunk...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Dec 7 06:35:09 CST 2010
Author: oej
Date: Tue Dec 7 06:35:04 2010
New Revision: 297774
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=297774
Log:
Make sure we have zone to set
Modified:
team/group/set-tonezone-trunk/channels/chan_sip.c
Modified: team/group/set-tonezone-trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/set-tonezone-trunk/channels/chan_sip.c?view=diff&rev=297774&r1=297773&r2=297774
==============================================================================
--- team/group/set-tonezone-trunk/channels/chan_sip.c (original)
+++ team/group/set-tonezone-trunk/channels/chan_sip.c Tue Dec 7 06:35:04 2010
@@ -6690,9 +6690,11 @@
if (!ast_strlen_zero(i->language)) {
ast_string_field_set(tmp, language, i->language);
}
- if (!(tmp->zone = ast_get_indication_zone(i->zone))) {
- ast_log(LOG_ERROR, "Unknown country code '%s' for tonezone. Check indications.conf for available country codes.\n", i->zone);
- }
+ if (!ast_strlen_zero(i->zone)) {
+ if (!(tmp->zone = ast_get_indication_zone(i->zone))) {
+ ast_log(LOG_ERROR, "Unknown country code '%s' for tonezone. Check indications.conf for available country codes.\n", i->zone);
+ }
+ }
i->owner = tmp;
ast_module_ref(ast_module_info->self);
ast_copy_string(tmp->context, i->context, sizeof(tmp->context));
More information about the asterisk-commits
mailing list