[asterisk-commits] rmudgett: branch rmudgett/digitmanip r268812 - /team/rmudgett/digitmanip/chan...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jun 7 16:13:11 CDT 2010
Author: rmudgett
Date: Mon Jun 7 16:13:08 2010
New Revision: 268812
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=268812
Log:
Don't step on cid_tag if the signaling submodule does not set it.
Modified:
team/rmudgett/digitmanip/channels/chan_dahdi.c
Modified: team/rmudgett/digitmanip/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/digitmanip/channels/chan_dahdi.c?view=diff&rev=268812&r1=268811&r2=268812
==============================================================================
--- team/rmudgett/digitmanip/channels/chan_dahdi.c (original)
+++ team/rmudgett/digitmanip/channels/chan_dahdi.c Mon Jun 7 16:13:08 2010
@@ -2845,7 +2845,9 @@
}
p->cid_ton = caller->id.number_type;
p->callingpres = caller->id.number_presentation;
- ast_copy_string(p->cid_tag, S_OR(caller->id.tag, ""), sizeof(p->cid_tag));
+ if (caller->id.tag) {
+ ast_copy_string(p->cid_tag, S_OR(caller->id.tag, ""), sizeof(p->cid_tag));
+ }
ast_copy_string(p->cid_ani, S_OR(caller->ani, ""), sizeof(p->cid_ani));
p->cid_ani2 = caller->ani2;
}
More information about the asterisk-commits
mailing list