[asterisk-commits] mattf: branch mattf/asterisk-ss7 r38267 - /team/mattf/asterisk-ss7/channels/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jul 26 14:01:05 MST 2006


Author: mattf
Date: Wed Jul 26 16:01:04 2006
New Revision: 38267

URL: http://svn.digium.com/view/asterisk?rev=38267&view=rev
Log:
Make sure we catch the '*' termination.

Modified:
    team/mattf/asterisk-ss7/channels/chan_zap.c

Modified: team/mattf/asterisk-ss7/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/mattf/asterisk-ss7/channels/chan_zap.c?rev=38267&r1=38266&r2=38267&view=diff
==============================================================================
--- team/mattf/asterisk-ss7/channels/chan_zap.c (original)
+++ team/mattf/asterisk-ss7/channels/chan_zap.c Wed Jul 26 16:01:04 2006
@@ -8137,7 +8137,11 @@
 					p->exten[0] = 's';
 					p->exten[1] = '\0';
 				} else if (!ast_strlen_zero(e->iam.called_party_num)) {
+					char *st;
 					ast_copy_string(p->exten, e->iam.called_party_num, sizeof(p->exten));
+					st = strchr(p->exten, '*');
+					if (st)
+						*st = '\0';
 				} else
 					p->exten[0] = '\0';
 
@@ -8194,18 +8198,6 @@
 				isup_rlc(ss7, e->rel.call);
 				p->ss7call = NULL;
 
-#if 0
-				if (!p->alreadyhungup) {
-					p->alreadyhungup = 1;
-					p->owner->_softhangup |= AST_SOFTHANGUP_DEV;
-
-					if (option_verbose > 2)
-						ast_verbose(VERBOSE_PREFIX_3 "Got REL for cic %d\n", e->rel.cic);
-				} else {
-					isup_rlc(ss7, e->rel.call);
-					p->ss7call = NULL;
-				}
-#endif
 				ast_mutex_unlock(&p->lock);
 				break;
 			case SS7_EVENT_ACM:



More information about the asterisk-commits mailing list