|
@@ -52,7 +52,7 @@ route[1] {
|
|
|
# an email notification to him
|
|
|
if (!exec_msg('
|
|
|
QUERY="select email_address from subscriber
|
|
|
- where user_id=\"$SIP_OUSER\"";
|
|
|
+ where user=\"$SIP_OUSER\"";
|
|
|
EMAIL=`mysql -Bsuser -pheslo -e "$QUERY" ser`;
|
|
|
if [ -z "$EMAIL" ] ; then exit 1; fi ;
|
|
|
echo "SIP request received from $SIP_HF_FROM for $SIP_OUSER" |
|
|
@@ -71,7 +71,7 @@ reply_route[1] {
|
|
|
# just call exec, that's it
|
|
|
exec_msg('
|
|
|
QUERY="select email_address from subscriber
|
|
|
- where user_id=\"$SIP_OUSER\"";
|
|
|
+ where user=\"$SIP_OUSER\"";
|
|
|
EMAIL=`mysql -Bsuser -pheslo -e "$QUERY" ser`;
|
|
|
if [ -z "$EMAIL" ] ; then exit 1; fi ;
|
|
|
echo "SIP request received from $SIP_HF_FROM for $SIP_OUSER" |
|