aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-13 20:43:58 +0200
committerHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-13 20:43:58 +0200
commit2928bc0233759ebf8ea74ab70711676e68c24a4d (patch)
tree9586c8d7513ab1ea124397c684aaf8fb84f4f222 /openbsc
parentbc9e9f856b6bf2a82d64d5cb6fc31b065044cc75 (diff)
add the allocated subscriber extension to the auth token SMS
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/token_auth.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/openbsc/src/token_auth.c b/openbsc/src/token_auth.c
index 6d4f14b2e..695b55243 100644
--- a/openbsc/src/token_auth.c
+++ b/openbsc/src/token_auth.c
@@ -30,8 +30,8 @@
#include <openbsc/chan_alloc.h>
#include <openbsc/db.h>
-#define TOKEN_SMS_TEXT "HAR 2009 GSM. Please visit http://har2009.gnumonks.org/ to" \
- "register. Your IMSI is %s, your auth token is %08X."
+#define TOKEN_SMS_TEXT "HAR 2009 GSM. Register at http://har2009.gnumonks.org/ " \
+ "Your IMSI is %s, auth token is %08X, phone no is %s."
static char *build_sms_string(struct gsm_subscriber *subscr, u_int32_t token)
{
@@ -43,7 +43,8 @@ static char *build_sms_string(struct gsm_subscriber *subscr, u_int32_t token)
if (!sms_str)
return NULL;
- snprintf(sms_str, len, TOKEN_SMS_TEXT, subscr->imsi, token);
+ snprintf(sms_str, len, TOKEN_SMS_TEXT, subscr->imsi, token,
+ subscr->extension);
sms_str[len-1] = '\0';
return sms_str;