service-provider extension patch



Toby Churchill have been running an internal project to compile a list
of gsm network operators and the relevant information such as MCC/MNC
codes, voicemail, balance check methods etc for use in a mobile-phone
enabled communication aid. 

We created an XML document for our use internally but have since come
across the the serviceprovider package which has a fair amount of
overlap. So it has been suggested that it may be worthwhile adding our
information with the serviceprovider list... 

Please find attached a patch (serviceprovider.2.tdt &
serviceprovider.xml) to extend the <gsm> node to incorporate
<voicemail> and <balance-check> methods for a network provider. 

Let me know if you think this information might be of use and worth
adding to the serviceprovider package. 

http://www.toby-churchill.com/

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.linux.codehelp.co.uk/
http://e-mail.is-not-s.ms/


Index: serviceproviders.2.dtd
===================================================================
--- serviceproviders.2.dtd	(revision 10747)
+++ serviceproviders.2.dtd	(revision 10870)
@@ -6,13 +6,23 @@
 
 <!ELEMENT provider (name+, gsm?, cdma?)>
 
-<!ELEMENT gsm (network-id*, apn+)>
+<!ELEMENT gsm (network-id*, voicemail*, balance-check*, apn+)>
 <!ELEMENT apn (name*,
                gateway?,
                username?,
                password?,
                dns*)>
 <!ATTLIST apn value CDATA #REQUIRED>
+<!ELEMENT voicemail (#PCDATA)>
+<!ELEMENT balance-check (ussd*,
+               			 dtmf*,
+               			 sms*,
+                         ussd-response*)>
+<!ELEMENT ussd (#PCDATA)> 
+<!ELEMENT dtmf (#PCDATA)>
+<!ELEMENT sms (#PCDATA)>
+<!ATTLIST sms text CDATA #REQUIRED>
+<!ELEMENT ussd-response (#PCDATA)>
 
 <!ELEMENT network-id EMPTY>
 <!ATTLIST network-id mcc CDATA #REQUIRED>
Index: serviceproviders.xml
===================================================================
--- serviceproviders.xml	(revision 10747)
+++ serviceproviders.xml	(revision 10870)
@@ -287,6 +287,11 @@
 		<name>Telstra</name>
 		<gsm>
 			<network-id mcc="505" mnc="01"/>
+			<balance-check>
+				<dtmf>125111</dtmf>
+				<dtmf>1258888</dtmf>
+				<ussd-response>*100#</ussd-response>
+			</balance-check>			
 			<apn value="telstra.wap">
 				<dns>139.130.4.4</dns>
 				<dns>203.50.2.71</dns>
@@ -2017,6 +2022,16 @@
 <!-- Britain -->
 <country code="gb">
 	<provider>
+		<name>Test Network</name>
+		<gsm>
+			<network-id mcc="001" mnc="01"/>
+			<apn value="dummy">
+				<username>dummy</username>
+				<password>dummy</password>
+			</apn>
+		</gsm>
+	</provider>
+	<provider>
 		<name>airtel vodaphone</name>
 		<gsm>
 			<apn value="airtel-ci-gprs.com"/>
@@ -2039,6 +2054,11 @@
 			<network-id mcc="234" mnc="10"/>
 			<network-id mcc="234" mnc="11"/>
 
+			<voicemail>901</voicemail>
+			<balance-check>
+				<ussd>*#10#</ussd>
+				<dtmf>4444</dtmf>
+			</balance-check>
 			<apn value="mobile.o2.co.uk">
 				<name>Contract</name>
 				<username>o2web</username>
@@ -2079,6 +2099,12 @@
 		<name>T-Mobile</name>
 		<gsm>
 			<network-id mcc="234" mnc="30"/>
+			<voicemail>222</voicemail>
+			<balance-check>
+				<dtmf>150</dtmf>
+				<sms text="BA">150</sms> 
+				<sms text="AL">150</sms>				
+			</balance-check>
 			<apn value="general.t-mobile.uk">
 				<username>User</username>
 				<password>mms</password>
@@ -2102,6 +2128,11 @@
 		<name>Vodafone</name>
 		<gsm>
 			<network-id mcc="234" mnc="15"/>
+			<voicemail>121</voicemail>
+			<balance-check>
+				<ussd>*#1345#</ussd>
+				<dtmf>2345</dtmf>
+			</balance-check>
 			<apn value="internet">
 				<name>Contract</name>
 				<username>web</username>
@@ -2138,7 +2169,11 @@
 		<gsm>
 			<network-id mcc="234" mnc="33"/>
 			<network-id mcc="234" mnc="34"/>
-
+			<voicemail>123</voicemail>
+			<balance-check>
+				<dtmf>453</dtmf>
+				<dtmf>150</dtmf>
+			</balance-check>
 			<apn value="orangeinternet">
 				<name>Contract</name>
 				<username>orange</username>
@@ -2565,6 +2600,9 @@
 		<name>O2</name>
 		<gsm>
 			<network-id mcc="272" mnc="02"/>
+			<balance-check>
+				<ussd>*#100#</ussd>
+			</balance-check>
 			<apn value="open.internet">
 				<name>Contract</name>
 				<username>gprs</username>
@@ -4163,6 +4201,10 @@
 		<name>Telenor</name>
 		<gsm>
 			<network-id mcc="242" mnc="01"/>
+			<balance-check>
+				<dtmf>220</dtmf>
+				<sms text="saldo">222</sms>				
+			</balance-check>
 			<apn value="telenor">
 				<dns>212.17.131.3</dns>
 				<dns>148.122.161.2</dns>
@@ -5100,6 +5142,10 @@
 		<gsm>
 			<network-id mcc="240" mnc="07"/>
 			<network-id mcc="240" mnc="05"/>
+			<balance-check>
+				<ussd>*111#</ussd>
+				<dtmf>211</dtmf>				
+			</balance-check>
 			<!-- http://www.tele2.se/internet-via-gprs.html -->
 			<apn value="internet.tele2.se">
 				<name>Mobilt Internet</name>
@@ -5156,7 +5202,10 @@
 		<gsm>
 			<network-id mcc="240" mnc="01"/>
 			<network-id mcc="240" mnc="05"/>
-
+			<balance-check>
+				<ussd>*120#</ussd>
+				<ussd>*121#</ussd>
+			</balance-check>
 			<!-- http://www3.telia.se/foretag/mobilguiden/ -->
 			<apn value="online.telia.se"/>
 		</gsm>

Attachment: pgp8ZPyrGZkoZ.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]