[Asterisk-cvs] asterisk/apps app_dial.c,1.52,1.53
martinp at lists.digium.com
martinp at lists.digium.com
Thu Jan 15 17:46:30 CST 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv21748/apps
Modified Files:
app_dial.c
Log Message:
A little adjustment to the previous one (passing the clid&ani on call_forward)
Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- app_dial.c 15 Jan 2004 23:32:27 -0000 1.52
+++ app_dial.c 15 Jan 2004 23:38:23 -0000 1.53
@@ -203,11 +203,15 @@
o->stillgoing = 0;
numbusies++;
} else {
- if (in->callerid && !o->chan->callerid) {
+ if (in->callerid) {
+ if (o->chan->callerid)
+ free(o->chan->callerid);
o->chan->callerid = malloc(strlen(in->callerid) + 1);
strncpy(o->chan->callerid, in->callerid, strlen(in->callerid) + 1);
}
- if (in->ani && !o->chan->ani) {
+ if (in->ani) {
+ if (o->chan->ani)
+ free(o->chan->ani);
o->chan->ani = malloc(strlen(in->ani) + 1);
strncpy(o->chan->ani, in->ani, strlen(in->ani) + 1);
}
More information about the svn-commits
mailing list