Provide a configuration file for USSD codes
This file is not in use yet though.
This commit is contained in:
parent
9f2bf3c2f1
commit
ecb9693d41
|
@ -1,4 +1,4 @@
|
|||
subdirs=16x16,24x24,32x32,48x48,gprs
|
||||
subdirs=16x16,24x24,32x32,48x48,gprs,ussd
|
||||
targets=blacklist,console,debug,engineering,gprs,gps,n900,openmoko,oss,panel,password,profiles,smscrypt,systray,template,ussd,video
|
||||
cppflags_force=-I ../../include
|
||||
cppflags=
|
||||
|
|
8
src/plugins/ussd/project.conf
Normal file
8
src/plugins/ussd/project.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
#targets=ussd.conf
|
||||
dist=Makefile,ussd.conf,ussd.xsl
|
||||
|
||||
[ussd.conf]
|
||||
#type=script
|
||||
#script=../../../tools/xsltproc.sh
|
||||
#depends=ussd.xml,ussd.xsl,xsltproc.sh
|
||||
install=$(PREFIX)/share/doc/Phone
|
368
src/plugins/ussd/ussd.conf
Normal file
368
src/plugins/ussd/ussd.conf
Normal file
|
@ -0,0 +1,368 @@
|
|||
[du]
|
||||
msisdn-query=*#100#
|
||||
|
||||
[Karabakh Telecom]
|
||||
balance-check=*122#
|
||||
balance-top-up=*123*CODE#
|
||||
|
||||
[tele.ring]
|
||||
balance-check=*102#
|
||||
|
||||
[Azerfon]
|
||||
msisdn-query=*100#3#
|
||||
|
||||
[m:tel]
|
||||
balance-check=*101#
|
||||
|
||||
[HT-ERONET]
|
||||
balance-check=*101#
|
||||
|
||||
[Robi (AKTel)]
|
||||
balance-check=*222#
|
||||
balance-top-up=*111*CODE#
|
||||
msisdn-query=*140*2*4#
|
||||
|
||||
[Banglalink]
|
||||
balance-check=*124#
|
||||
balance-top-up=*123*CODE#
|
||||
msisdn-query=*511#
|
||||
|
||||
[GrameenPhone]
|
||||
balance-check=*566#
|
||||
balance-top-up=*555*CODE#
|
||||
msisdn-query=*2#
|
||||
|
||||
[Airtel (Warid)]
|
||||
balance-check=*778#
|
||||
balance-top-up=*787*CODE#
|
||||
msisdn-query=*121*6*3#
|
||||
|
||||
[Teletalk]
|
||||
balance-check=*152#
|
||||
balance-top-up=#151*CODE#
|
||||
msisdn-query=*551#
|
||||
|
||||
[Mobistar]
|
||||
balance-check=#123#
|
||||
|
||||
[GloBul]
|
||||
balance-check=*125#
|
||||
|
||||
[M-Tel]
|
||||
balance-check=*101#
|
||||
|
||||
[Vivacom]
|
||||
balance-check=*102#
|
||||
|
||||
[Claro]
|
||||
balance-check=*544#
|
||||
|
||||
[TIM]
|
||||
balance-check=*222#
|
||||
|
||||
[velcom]
|
||||
balance-check=*100#
|
||||
|
||||
[MTS]
|
||||
balance-check=*100#
|
||||
|
||||
[life:)]
|
||||
balance-check=*100#
|
||||
|
||||
[Orange]
|
||||
balance-check=#121#
|
||||
balance-top-up=#121*CODE#
|
||||
|
||||
[Swisscom]
|
||||
balance-check=*130#
|
||||
balance-top-up=*123*CODE#
|
||||
|
||||
[M-Budget]
|
||||
msisdn-query=*#100#
|
||||
|
||||
[Cytamobile-Vodafone]
|
||||
msisdn-query=*#109#
|
||||
|
||||
[Vodafone]
|
||||
balance-check=*22#
|
||||
|
||||
[O2]
|
||||
balance-check=*104*#
|
||||
balance-top-up=*102*CODE#
|
||||
|
||||
[AldiTalk/MedionMobile]
|
||||
balance-check=*100#
|
||||
balance-top-up=*104*CODE#
|
||||
|
||||
[blau.de]
|
||||
balance-check=*100#
|
||||
balance-top-up=*104*CODE#
|
||||
|
||||
[E-Plus]
|
||||
balance-check=*100#
|
||||
balance-top-up=*104*CODE#
|
||||
|
||||
[O2]
|
||||
balance-check=*101#
|
||||
balance-top-up=*103*CODE#
|
||||
|
||||
[Tchibo-Mobil]
|
||||
balance-check=*101#
|
||||
balance-top-up=*103*CODE#
|
||||
|
||||
[T-Mobile(Telekom)]
|
||||
balance-check=*100#
|
||||
balance-top-up=*101*CODE#
|
||||
|
||||
[Congstar]
|
||||
balance-check=*100#
|
||||
balance-top-up=*101*CODE#
|
||||
|
||||
[Vodafone]
|
||||
balance-check=*100#
|
||||
balance-top-up=*100*CODE#
|
||||
|
||||
[FONIC]
|
||||
balance-check=*101#
|
||||
balance-top-up=*103*CODE#
|
||||
|
||||
[simyo Internet]
|
||||
balance-check=*100#
|
||||
balance-top-up=*104*CODE#
|
||||
|
||||
[1&1]
|
||||
balance-check=*100#
|
||||
|
||||
[Telenor]
|
||||
balance-check=*101#
|
||||
|
||||
[TDC]
|
||||
balance-check=*101#
|
||||
|
||||
[Telia]
|
||||
balance-check=*101#
|
||||
|
||||
[Orange]
|
||||
balance-check=#131#
|
||||
|
||||
[Claro]
|
||||
balance-check=*122#
|
||||
|
||||
[Viva]
|
||||
balance-check=#111#
|
||||
|
||||
[Vodafone]
|
||||
msisdn-query=*878#
|
||||
|
||||
[Orange]
|
||||
balance-check=*111#
|
||||
|
||||
[Vodafone]
|
||||
msisdn-query=*138#
|
||||
|
||||
[Yoigo]
|
||||
balance-check=*111#
|
||||
|
||||
[Ethio Telecom]
|
||||
balance-check=*804#
|
||||
|
||||
[Vodafone FO]
|
||||
msisdn-query=*#100#
|
||||
|
||||
[Vodafone / Kidanet]
|
||||
msisdn-query=*999#
|
||||
|
||||
[Orange]
|
||||
balance-check=#123#
|
||||
balance-top-up=#124*CODE#
|
||||
|
||||
[O2]
|
||||
balance-check=*#10#
|
||||
|
||||
[giffgaff]
|
||||
balance-check=*100#
|
||||
|
||||
[Vodafone]
|
||||
balance-check=*#1345#
|
||||
msisdn-query=*#100#
|
||||
|
||||
[MTN]
|
||||
balance-check=*124#
|
||||
balance-top-up=*125*CODE#
|
||||
|
||||
[Vodafone]
|
||||
balance-check=*122#
|
||||
balance-top-up=*123*CODE#
|
||||
msisdn-query=*127#
|
||||
|
||||
[Tigo]
|
||||
balance-check=*820#
|
||||
balance-top-up=*842*CODE#
|
||||
|
||||
[Airtel]
|
||||
balance-check=*133#
|
||||
balance-top-up=*134*CODE#
|
||||
|
||||
[GloGhana]
|
||||
balance-check=*124#
|
||||
balance-top-up=*123*CODE#
|
||||
|
||||
[O2]
|
||||
balance-check=*#100#
|
||||
|
||||
[Reliance]
|
||||
balance-check= *111*1*3#
|
||||
|
||||
[Safaricom]
|
||||
balance-check=*144#
|
||||
balance-top-up=*544*CODE#
|
||||
|
||||
[Beeline]
|
||||
balance-check=*102#
|
||||
|
||||
[MegaCom]
|
||||
balance-check=*500#
|
||||
|
||||
[O!]
|
||||
balance-check=*100#
|
||||
|
||||
[Cellcard]
|
||||
balance-check=#124#
|
||||
|
||||
[Hello]
|
||||
balance-check=*100#
|
||||
|
||||
[qb]
|
||||
balance-check=#132#
|
||||
|
||||
[Smart Mobile]
|
||||
balance-check=*888#
|
||||
|
||||
[Metfone]
|
||||
balance-check=*097#
|
||||
|
||||
[Beeline]
|
||||
balance-check=*102#
|
||||
|
||||
[Mfone]
|
||||
balance-check=*222#
|
||||
|
||||
[Lao Telecom]
|
||||
balance-check=*122#
|
||||
|
||||
[Airtel NG]
|
||||
balance-check=*123#
|
||||
balance-top-up=*126*CODE#
|
||||
|
||||
[MTN]
|
||||
balance-check=*556#
|
||||
balance-top-up=*555*CODE#
|
||||
|
||||
[Glo Mobile]
|
||||
balance-check=#124#
|
||||
balance-top-up=*123*CODE#
|
||||
|
||||
[Etisalat]
|
||||
balance-check=*232#
|
||||
balance-top-up=*222*CODE#
|
||||
|
||||
[Vodafone]
|
||||
msisdn-query=*#100#
|
||||
|
||||
[Netcom]
|
||||
balance-check=*150#
|
||||
|
||||
[Tele2]
|
||||
balance-check=*111#
|
||||
|
||||
[T-mobile]
|
||||
balance-check=*101#
|
||||
balance-top-up=*111*CODE#
|
||||
|
||||
[Play Online]
|
||||
balance-check=*101#
|
||||
balance-top-up=*100*CODE#
|
||||
|
||||
[Orange]
|
||||
balance-check=*124*#
|
||||
balance-top-up=*125*CODE#
|
||||
|
||||
[Plus]
|
||||
balance-check=*100#
|
||||
balance-top-up=*123*CODE#
|
||||
|
||||
[Heyah]
|
||||
balance-check=*108#
|
||||
balance-top-up=*109*CODE#
|
||||
|
||||
[GaduAIR]
|
||||
balance-check=*101#
|
||||
|
||||
[mBank mobile]
|
||||
balance-check=*100#
|
||||
|
||||
[Vodafone]
|
||||
msisdn-query=*#100#
|
||||
|
||||
[Beeline]
|
||||
balance-check=*102#
|
||||
|
||||
[MTS]
|
||||
balance-check=*100#
|
||||
|
||||
[Megafon]
|
||||
balance-check=*100#
|
||||
|
||||
[U-tel]
|
||||
balance-check=*100#
|
||||
|
||||
[Tele2]
|
||||
balance-check=*111#
|
||||
|
||||
[Comviq]
|
||||
balance-check=*111#
|
||||
balance-top-up=*110*CODE#
|
||||
|
||||
[Telenor]
|
||||
balance-check=*222#
|
||||
|
||||
[Telia]
|
||||
balance-check=*120#
|
||||
|
||||
[Vodafone / Simobil]
|
||||
msisdn-query=*100#
|
||||
|
||||
[Zain]
|
||||
balance-check=*888#
|
||||
balance-top-up=*888*CODE#
|
||||
|
||||
[Vodafone]
|
||||
msisdn-query=*101#
|
||||
|
||||
[life:)]
|
||||
balance-check=*111#
|
||||
|
||||
[Cell-c]
|
||||
balance-check=*101#
|
||||
balance-top-up=*102*CODE#
|
||||
msisdn-query=*147*100#
|
||||
|
||||
[MTN]
|
||||
balance-check=*141#
|
||||
balance-top-up=*141*CODE#
|
||||
msisdn-query=*123*888#
|
||||
|
||||
[Vodacom]
|
||||
balance-check=*100#
|
||||
balance-top-up=*100*01*CODE#
|
||||
msisdn-query=*111*501#
|
||||
|
||||
[Virgin Mobile]
|
||||
balance-check=*101#
|
||||
balance-top-up=*102*CODE#
|
||||
|
||||
[8.ta]
|
||||
balance-check=*188#
|
||||
balance-top-up=*188*CODE#
|
||||
msisdn-query=*1#
|
||||
|
34
src/plugins/ussd/ussd.xsl
Normal file
34
src/plugins/ussd/ussd.xsl
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="text"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates select="serviceproviders"/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- country -->
|
||||
<xsl:template match="country">
|
||||
<xsl:apply-templates select="provider"/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- provider -->
|
||||
<xsl:template match="provider">
|
||||
<xsl:if test="count(gsm/*/ussd) > 0">
|
||||
<xsl:text>[</xsl:text><xsl:value-of select="name"/><xsl:text>]
|
||||
</xsl:text>
|
||||
<xsl:if test="string-length(gsm/balance-check/ussd) > 0"><xsl:text>balance-check=</xsl:text><xsl:value-of select="gsm/balance-check/ussd"/><xsl:text>
|
||||
</xsl:text></xsl:if>
|
||||
<xsl:if test="string-length(gsm/balance-top-up/ussd) > 0"><xsl:text>balance-top-up=</xsl:text><xsl:value-of select="gsm/balance-top-up/ussd"/><xsl:text>
|
||||
</xsl:text></xsl:if>
|
||||
<xsl:if test="string-length(gsm/msisdn-query/ussd) > 0"><xsl:text>msisdn-query=</xsl:text><xsl:value-of select="gsm/msisdn-query/ussd"/><xsl:text>
|
||||
</xsl:text></xsl:if>
|
||||
<xsl:text>
|
||||
</xsl:text></xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- serviceproviders -->
|
||||
<xsl:template match="serviceproviders">
|
||||
<xsl:for-each select="country">
|
||||
<xsl:apply-templates select="provider"/>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Loading…
Reference in New Issue
Block a user