laforge
/
openbts-osmo
Archived
1
0
Fork 0

Implement USSD short code in smqueue for testing purposes.

This commit is contained in:
Alexander Chemeris 2010-09-09 18:02:43 +04:00
parent 7d9b0497bc
commit 7ae0243308
1 changed files with 13 additions and 0 deletions

View File

@ -82,6 +82,18 @@ shortcode_quick_chk (const char *imsi, const char *msgtext,
return SCA_REPLY;
}
enum short_code_action
shortcode_ussd_test (const char *imsi, const char *msgtext,
short_code_params *scp)
{
ostringstream answer;
answer << "3" << endl;
answer << "USSD test ok!";
scp->scp_reply = new_strdup(answer.str().c_str());
return SCA_REPLY;
}
/*
* 411 -- information.
* Start by telling people their phone number.
@ -379,5 +391,6 @@ SMqueue::init_smcommands (short_code_map_t *scm)
(*scm)[gConfig.getStr("SC.ZapQueued.Code")] = shortcode_zap_queued;
if (gConfig.defines("SC.WhiplashQuit.Code"))
(*scm)[gConfig.getStr("SC.WhiplashQuit.Code")] = whiplash_quit;
(*scm)["USSD"] = shortcode_ussd_test;
// (*scm)["666"] = shortcode_text_access;
}