Update of /usr/cvsroot/asterisk-addons/asterisk-ooh323c/src In directory mongoose.digium.com:/tmp/cvs-serv17805/src
Modified Files: chan_h323.c Log Message: Fix for bug causing dialed digits alias being set as a char string Index: chan_h323.c =================================================================== RCS file: /usr/cvsroot/asterisk-addons/asterisk-ooh323c/src/chan_h323.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- chan_h323.c 8 Nov 2005 22:21:41 -0000 1.16 +++ chan_h323.c 11 Nov 2005 20:49:21 -0000 1.17 @@ -1269,9 +1269,21 @@ ooCallAddAliasH323ID(call, p->caller_h323id); if(!ast_strlen_zero(p->caller_dialedDigits)){ + if(gH323Debug) { + ast_log(LOG_DEBUG, "Setting dialed digits %s\n", + p->caller_dialedDigits); + } ooCallAddAliasDialedDigits(call, p->caller_dialedDigits); }else if(p->callerid_num) { - ooCallAddAliasDialedDigits(call, p->callerid_num); + if(ooIsDigitString(p->callerid_num)) { + if(gH323Debug) { + ast_verbose("setting callid number %s\n", p->callerid_num); + } + ooCallAddAliasDialedDigits(call, p->callerid_num); + } + else if(ast_strlen_zero(p->caller_h323id)) { + ooCallAddAliasH323ID(call, p->callerid_num); + } } _______________________________________________ Asterisk-Cvs mailing list Asterisk-Cvs@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-cvs