[Asterisk-cvs] asterisk/channels chan_iax2.c,1.197,1.198
markster at lists.digium.com
markster at lists.digium.com
Thu Oct 7 17:02:55 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv19849/channels
Modified Files:
chan_iax2.c
Log Message:
Fix callerid on IAX2 (received)
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -d -r1.197 -r1.198
--- chan_iax2.c 7 Oct 2004 19:57:50 -0000 1.197
+++ chan_iax2.c 7 Oct 2004 21:04:10 -0000 1.198
@@ -3665,15 +3665,15 @@
/* If they have callerid, override the given caller id. Always store the ANI */
if (!ast_strlen_zero(iaxs[callno]->cid_num) || !ast_strlen_zero(iaxs[callno]->cid_name)) {
if (user->hascallerid) {
+ iaxs[callno]->calling_tns = 0;
+ iaxs[callno]->calling_ton = 0;
strncpy(iaxs[callno]->cid_num, user->cid_num, sizeof(iaxs[callno]->cid_num)-1);
strncpy(iaxs[callno]->cid_name, user->cid_name, sizeof(iaxs[callno]->cid_name)-1);
iaxs[callno]->calling_pres = 0;
- } else {
- iaxs[callno]->calling_pres = AST_PRES_NUMBER_NOT_AVAILABLE;
}
- iaxs[callno]->calling_tns = 0;
- iaxs[callno]->calling_ton = 0;
strncpy(iaxs[callno]->ani, user->cid_num, sizeof(iaxs[callno]->ani)-1);
+ } else {
+ iaxs[callno]->calling_pres = AST_PRES_NUMBER_NOT_AVAILABLE;
}
if (!ast_strlen_zero(user->accountcode))
strncpy(iaxs[callno]->accountcode, user->accountcode, sizeof(iaxs[callno]->accountcode)-1);
More information about the svn-commits
mailing list