Browse code

user->username

Jiri Kuthan authored on 20/06/2003 23:20:35
Showing 1 changed files
... ...
@@ -52,7 +52,7 @@ route[1] {
52 52
 	# an email notification to him
53 53
      	if (!exec_msg('
54 54
 		QUERY="select email_address from subscriber 
55
-			where user=\"$SIP_OUSER\"";
55
+			where username=\"$SIP_OUSER\"";
56 56
 		EMAIL=`mysql  -Bsuser -pheslo -e "$QUERY" ser`;
57 57
 		if [ -z "$EMAIL" ] ; then exit 1; fi ;
58 58
 		echo "SIP request received from $SIP_HF_FROM for $SIP_OUSER" |
... ...
@@ -71,7 +71,7 @@ failure_route[1] {
71 71
 	# just call exec, that's it
72 72
    	exec_msg('
73 73
 		QUERY="select email_address from subscriber 
74
-			where user=\"$SIP_OUSER\"";
74
+			where username=\"$SIP_OUSER\"";
75 75
 		EMAIL=`mysql  -Bsuser -pheslo -e "$QUERY" ser`;
76 76
 		if [ -z "$EMAIL" ] ; then exit 1; fi ;
77 77
 		echo "SIP request received from $SIP_HF_FROM for $SIP_OUSER" |