Any way to backup WEP keys? - General Questions and Answers

Hey all,
I tried searching but couldn't find anything that could answer this question:
Is there some way to backup the WEP keys saved in the WiFi settings so that I can restore them after a ROM flash? Are they encrypted anywhere in the registry? Can they even be ported over from a different rom?
I have a bunch of Access Points saved that I no longer have the key for so losing them after a ROM upgrade is a PITA! =)
Thanks,

Quick bump for an old question...
Anyone here know of the answer?
Thanks,

uhh
try opening up yer perfered notes app and typing them in and saving to storage card...thats what i do...or you could just remember them all

mr_yellow said:
Quick bump for an old question...
Anyone here know of the answer?
Thanks,
Click to expand...
Click to collapse
There may be a way of using RapiConfig, but I think the keys are stored in encrypted format... Might be in the registry though...

Found this the other day on a winmob blog. It might help:
Configuring WiFi connectivity via cab file
Wifi connectivity on supported Windows Mobile 5, 6 & 6.1 devices can use the CSP provided to configure the device automatically.
The XML:
<characteristic type="CM_WiFiEntries">
<characteristic type="Your SSID">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="Your SSID">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="Hidden" value="0"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value="your network key"/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
There are a couple of values that you will want to change to suit your network environment.
Firstly, DestID. This tells the device if this network is "Work Network" or "The Internet". The possible values are {436EF144-B4FB-4863-A041-8F905A62C572 for The Internet, or {A1182988-0D73-439e-87AD-2A5B369F808B} for Work Network.
Encryption can be one of the following values to suit your network:
0 = Encrypt using 802.11 wired equivalent privacy (WEP) key.
1 = No encryption.
4 = Encrypt using Temporal Key Integrity Protocol (TKIP) sequence counters.
6 = Encrypt using Advanced Encryption Standard (AES).
Authentication can be any of the following:
0 = Open Network
1 = Shared Network
3 = WPA
4 = WPA-PSK
5 = WPA-NONE
6 = WPA2
7 = WPA2-PSK
Put this into NOTEPAD. We cannot have any text formatting on this, so word is out of the question, just straight notepad.
Save this as _setup.xml from the notepad save as menu. If you can't save as xml, then change the file extension after you save it as a .txt.
The name of the file - _setup.xml is important.
You can change around the below instructions, but this should make it easier for people who are new to compiling cabs
1. Save your _setup.xml to a directory called C:\Cabs\ on your computer.
2. Now open up a command prompt window Start>Run>cmd.
3. Type cd C:\Cabs in the command prompt window
4. Type MakeCAB.exe /D COMPRESS=OFF _setup.xml Wifi.cab
Now you will have an Wifi.cab file in your C:\Cabs directory.
Launch this on your device and the settings will be provisioned.
The formatting of the script doesnt show up properly above so download the XML script below - just remove the .txt file extension.

Hi,
you can put the xml in your SDAutorun on SD Card (read more).
wfg
starbase64

Thanks for the info! I was also able to find similar registry keys at:
HKEY_CURRENT_USER/Comm/EAPOL/Config/<SSID>
and
HKEY_LOCAL_MACHINE/Comm/ConnMgr/Providers/{9eefcedf-a6bc-4457-a8ae-fb664a196450}/<SSID>
But I didn't see any reg key that looked like it stored the WEP/WPA key.... Where is this WIFI.cab saving the WEP key?!?

mr_yellow said:
Thanks for the info! I was also able to find similar registry keys at:
HKEY_CURRENT_USER/Comm/EAPOL/Config/<SSID>
and
HKEY_LOCAL_MACHINE/Comm/ConnMgr/Providers/{9eefcedf-a6bc-4457-a8ae-fb664a196450}/<SSID>
But I didn't see any reg key that looked like it stored the WEP/WPA key.... Where is this WIFI.cab saving the WEP key?!?
Click to expand...
Click to collapse
In an encrypted format...

Yeah, but where?... I'd be happy to save the encrypted keys so I can reimport them later... =)

mr_yellow said:
Yeah, but where?... I'd be happy to save the encrypted keys so I can reimport them later... =)
Click to expand...
Click to collapse
Read post #5, it tells you how to create an xml for reinstallation!!!! Its not telling you where to get the info, its an xml config file.

what i do is just copy the key into a txt file and save it on SD card

i have used the file included and even searched msdn, but i get error "Multiple root elements line 7 position 2"
Code:
[B]<characteristic type="CM_WiFiEntries">[/B]
<characteristic type="MY ROUTER NAME HERE">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
</characteristic>
</characteristic>
[B]<characteristic type="Wi-Fi">[/B]
<characteristic type="access-point">
<characteristic type="MY ROUTER NAME HERE">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="Hidden" value="0"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value="MY KEY HERE"/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
Im sure its because of these:
<characteristic type="CM_WiFiEntries">
<characteristic type="Wi-Fi">
but not sure how to make this work. Anyone have any ideas?

shogunmark said:
Read post #5, it tells you how to create an xml for reinstallation!!!! Its not telling you where to get the info, its an xml config file.
Click to expand...
Click to collapse
I didn't mean to be arguementative... I know what post #5 meant. The info is very helpful *if* i knew what the WEP keys were. However I no longer do. I just wanted the location of the encrypted keys in the registry (if it's even stored there) so I can save them, flash my rom, then restore them (if that's even possible since the encryption key might change after the ROM flash).
Thanks,

mr_yellow said:
I didn't mean to be arguementative... I know what post #5 meant. The info is very helpful *if* i knew what the WEP keys were. However I no longer do. I just wanted the location of the encrypted keys in the registry (if it's even stored there) so I can save them, flash my rom, then restore them (if that's even possible since the encryption key might change after the ROM flash).
Thanks,
Click to expand...
Click to collapse
I don't think you can get the keys/encrypted versions back to a usable state... After all, that's the point of the encryption.

l3v5y said:
I don't think you can get the keys/encrypted versions back to a usable state... After all, that's the point of the encryption.
Click to expand...
Click to collapse
Well, that's not totally true.. Even in it's encrypted form, it's still usable since it can still be decrypted by the OS when it's trying to connect to the wifi network. It's just encrypted to prevent human eyes from figuring out what the password is.
But back to my other point of whether moving the encrypted keys from one device to another (or one ROM to another) will work since the key itself might be different (or not)... I'm assuming it's keyed to some HW value (which in that case, moving the keys from one ROM to another ROM will be fine since hte HW is the same).

I did this and the cab was created but when I went to install, it says unsuccessful...any ideas....I am using SJ's newest rom....
chrisnash said:
Found this the other day on a winmob blog. It might help:
Configuring WiFi connectivity via cab file
Wifi connectivity on supported Windows Mobile 5, 6 & 6.1 devices can use the CSP provided to configure the device automatically.
The XML:
<characteristic type="CM_WiFiEntries">
<characteristic type="Your SSID">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="Your SSID">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="Hidden" value="0"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value="your network key"/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
There are a couple of values that you will want to change to suit your network environment.
Firstly, DestID. This tells the device if this network is "Work Network" or "The Internet". The possible values are {436EF144-B4FB-4863-A041-8F905A62C572 for The Internet, or {A1182988-0D73-439e-87AD-2A5B369F808B} for Work Network.
Encryption can be one of the following values to suit your network:
0 = Encrypt using 802.11 wired equivalent privacy (WEP) key.
1 = No encryption.
4 = Encrypt using Temporal Key Integrity Protocol (TKIP) sequence counters.
6 = Encrypt using Advanced Encryption Standard (AES).
Authentication can be any of the following:
0 = Open Network
1 = Shared Network
3 = WPA
4 = WPA-PSK
5 = WPA-NONE
6 = WPA2
7 = WPA2-PSK
Put this into NOTEPAD. We cannot have any text formatting on this, so word is out of the question, just straight notepad.
Save this as _setup.xml from the notepad save as menu. If you can't save as xml, then change the file extension after you save it as a .txt.
The name of the file - _setup.xml is important.
You can change around the below instructions, but this should make it easier for people who are new to compiling cabs
1. Save your _setup.xml to a directory called C:\Cabs\ on your computer.
2. Now open up a command prompt window Start>Run>cmd.
3. Type cd C:\Cabs in the command prompt window
4. Type MakeCAB.exe /D COMPRESS=OFF _setup.xml Wifi.cab
Now you will have an Wifi.cab file in your C:\Cabs directory.
Launch this on your device and the settings will be provisioned.
The formatting of the script doesnt show up properly above so download the XML script below - just remove the .txt file extension.
Click to expand...
Click to collapse

Related

ipdialplan.xml modification

Could somebody explain the syntax of the ipdialplan.xml, and how to modify it.
I've got the problem, that I can't use my contacts when my phone (Artemis)
is in SIP Mode. My numbers are stored in following format, e.g. for Germany, Hamburg: +49(40)1234567. I've to enter the number manually as 0049401234567 or 040123456 without '+' or '()'.
..........
ipdialplan.xml creating and managing
Dial Plan Regular Expression Engine - Language Summary,
see : http://msdn2.microsoft.com/en-us/library/aa921921.aspx
DialPlan Component ,
see : http://msdn2.microsoft.com/en-us/library/aa921954.aspx
Nice to test your regular expression, if you need to create new one,
see : http://www.roblocher.com/technotes/regexp.aspx
Very important to know : the last matched rule is the selected one, so be careful if a rule can match more than one pattern. It has to be first.
Here is my ipdialplan.xml
Notice :
- With Swiss rule you don't need to dial 00 + international code before the number you want. At least, you have to change 41 by your international code
- Internation rule should be good for anybody beginning his number with 00 (00 41 (12) 345 67 89) or with + (+41 12 345 67 89)
<dialplan xmlns='http://schemas.microsoft.com/embedded/VoIP'>
<dialplan-header>
<host>#use_sipsrv_host_name#</host>
</dialplan-header>
<!-- Dial Plan rules -->
<!-- IP address rules -->
<rule pattern='\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'
restrict='Cell,SMS'
/>
<rule pattern='(\d{1,3})\*(\d{1,3})\*(\d{1,3})\*(\d{1,3})'
dial='\1.\2.\3.\4'
display='\1.\2.\3.\4'
transfer='\1.\2.\3.\4'
restrict='Cell,SMS'
/>
<!-- SIP URI rules -->
<rule pattern='[Ss][Ii][Pp][Ss]?:\s*(\d{3})(\d{3})(\d{4})@(.+)'
display='(\1) \2-\3'
restrict='Cell,SMS'
/>
<rule pattern='([Ss][Ii][Pp][Ss]??\s*([a-zA-Z0-9_-]+)@(.+)'
display='\2'
restrict='Cell,SMS'
/>
<rule pattern='[Ss][Ii][Pp][Ss]?:\s*([^@]+)'
display='\1'
restrict='Cell,SMS'
/>
<!-- As the last matched rule is the selected one, Swiss rule has to be first, as it matches also 00...
numbers -->
<!-- Swiss rule -->
<rule pattern='0([1-9])(\d{8})'
dial='sip:0041\1\[email protected]$host$'
display='0\1\2'
transfer='sip:0041\1\[email protected]$host$'
/>
<!-- International rules -->
<rule pattern='\+\D*(\d+)\D*(\d+)\D*(\d*)\D*(\d*)\D*(\d*)\D*(\d*)'
dial='sip:00\1\2\3\4\5\[email protected]$host$'
display='+\1\2\3\4\5\6'
transfer='sip:00\1\2\3\4\5\[email protected]$host$'
/>
<rule pattern='(0{2})\D*(\d+)\D*(\d+)\D*(\d*)\D*(\d*)\D*(\d*)\D*(\d*)'
dial='sip:\1\2\3\4\5\6\[email protected]$host$'
display='\1\2\3\4\5\6\7'
transfer='sip:\1\2\3\4\5\6\[email protected]$host$'
/>
</dialplan>
I'm having a hard time with the syntax as well. I am able to receive voip calls but get an error when making them. I'm sure it has to do with the ipdialplan.xml.
I need for numbers I dial to be passed to SIP directly..ie 17025551212 will dial 17025551212 without changing it. Also it would be nice to have the + translated to 011 for SIP dialing...
Here is my current file, any help would be greatly appreciated.
Code:
<dialplan xmlns='http://schemas.microsoft.com/embedded/VoIP'>
<dialplan-header>
<host>#use_sipsrv_host_name#</host>
</dialplan-header>
<!-- Dial Plan rules -->
<!-- IP address rules -->
<rule pattern='\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'
restrict='SMS'
/>
<rule pattern='(\d{1,3})\*(\d{1,3})\*(\d{1,3})\*(\d{1,3})'
dial='\1.\2.\3.\4'
display='\1.\2.\3.\4'
transfer='\1.\2.\3.\4'
restrict='SMS'
/>
<!-- 11-digits rules -->
<rule pattern='1\s*-?\s*(\d{3})\s*(\d{3})\s*-?\s*(\d{4})(\s*[Xx]\s*\d+)?'
dial='sip:\1\2\[email protected]$host$'
display='(\1) \2-\3'
transfer='sip:1\1\2\[email protected]$host$'
/>
<rule pattern='1\s*-?\s*\((\d{3})\)\s*(\d{3})\s*-?\s*(\d{4})(\s*[Xx]\s*\d+)?'
dial='sip:\1\2\[email protected]$host$'
display='(\1) \2-\3'
transfer='sip:1\1\2\[email protected]$host$'
/>
<rule pattern='\+\s*1\s*-?\s*(\d{3})\s*(\d{3})\s*-?\s*(\d{4})(\s*[Xx]\s*\d+)?'
dial='sip:\1\2\[email protected]$host$'
display='(\1) \2-\3'
transfer='sip:1\1\2\[email protected]$host$'
/>
<rule pattern='\+\s*1\s*-?\s*\((\d{3})\)\s*(\d{3})\s*-?\s*(\d{4})(\s*[Xx]\s*\d+)?'
dial='sip:\1\2\[email protected]$host$'
display='(\1) \2-\3'
transfer='sip:1\1\2\[email protected]$host$'
/>
<!-- 10-digits rules -->
<rule pattern='(\d{3})\s*(\d{3})\s*-?\s*(\d{4})(\s*[Xx]\s*\d+)?'
dial='sip:\1\2\[email protected]$host$'
display='(\1) \2-\3'
transfer='sip:\1\2\[email protected]$host$'
/>
<rule pattern='\((\d{3})\)\s*(\d{3})\s*-?\s*(\d{4})(\s*[Xx]\s*\d+)?'
dial='sip:\1\2\[email protected]$host$'
display='(\1) \2-\3'
transfer='sip:\1\2\[email protected]$host$'
/>
<!-- 7-digits rules -->
<rule pattern='(\d{3})\s*-?\s*(\d{4})'
dial='sip:262\1\[email protected]$host$'
display='\1-\2'
transfer='sip:262\1\[email protected]$host$'
/>
<!-- SIP URI rules -->
<rule pattern='[Ss][Ii][Pp][Ss]?:\s*(\d{3})(\d{3})(\d{4})@(.+)'
display='(\1) \2-\3'
restrict='SMS'
/>
<rule pattern='([Ss][Ii][Pp][Ss]?:)?\s*([a-zA-Z0-9_-]+)@(.+)'
display='\2'
restrict='SMS'
/>
<rule pattern='[Ss][Ii][Pp][Ss]?:\s*([^@]+)'
display='\1'
restrict='SMS'
/>
<!-- 5-digits rules -->
<rule pattern='(\d{3})-?(\d{2})'
dial='sip:\1\[email protected]$host$'
display='\1\2'
transfer='sip:\1\[email protected]$host$'
/>
<rule pattern='1\s*\((\d{3})\)\s*(\d)'
dial='sip:1\1\[email protected]$host$'
display='1\1\2'
transfer='sip:1\1\[email protected]$host$'
/>
<!-- Only digits -->
<rule pattern='(\d+)'
dial='sip:\[email protected]$host$'
display='\1'
transfer='sip:\[email protected]$host$'
/>
</dialplan>
is it possible through dial plain to remove +39 prefix from the number dialed and replace it with 0?
All my contacts are like this
+39 02 7458412
and it should became
0 02 7458412
Is it possible?
Remove +39 (or any) prefix
alex_time said:
is it possible through dial plain to remove +39 prefix from the number dialed and replace it with 0?
All my contacts are like this
+39 02 7458412
and it should became
0 02 7458412
Is it possible?
Click to expand...
Click to collapse
As you have spaces between numbers' group, this rule will fit your need :
<rule pattern='\+\D*(\d+)\D*(\d+)\D*(\d*)\D*(\d*)\D*(\d* )\D*(\d*)'
dial='sip:0\2\3\4\5\[email protected]$host$'
display='0\2\3\4\5\6'
transfer='sip:0\2\3\4\5\[email protected]$host$'
/>
To pass dialed number directly to SIP
Jayman007 said:
I'm having a hard time with the syntax as well. I am able to receive voip calls but get an error when making them. I'm sure it has to do with the ipdialplan.xml.
Click to expand...
Click to collapse
Unfortunately, yes...
I need for numbers I dial to be passed to SIP directly..ie 17025551212 will dial 17025551212 without changing it.
Click to expand...
Click to collapse
So you have to make your ipdialplan.xml simpler. This one will be enough (only if you don't have space or non-digit):
<dialplan xmlns='http://schemas.microsoft.com/embedded/VoIP'>
<dialplan-header>
<host>#use_sipsrv_host_name#</host>
</dialplan-header>
<!-- Dial Plan rules -->
<rule pattern='(\d*)'
dial='sip:\[email protected]$host$'
display='\1'
transfer='sip:\[email protected]$host$'
/>
</dialplan>
Also it would be nice to have the + translated to 011 for SIP dialing...
Click to expand...
Click to collapse
Troubles are beginning...
Each way to dial a number as to be fitted by a specific rule (examples: if you want to use spaces, or dots, or parenthesis...)
If your numbers have to be passed directly, except if they have the +, you should try :
<dialplan xmlns='http://schemas.microsoft.com/embedded/VoIP'>
<dialplan-header>
<host>#use_sipsrv_host_name#</host>
</dialplan-header>
<!-- Dial Plan rules -->
<rule pattern='(\d*)'
dial='sip:\[email protected]$host$'
display='\1'
transfer='sip:\[email protected]$host$'
/>
<rule pattern='\+(\d*)'
dial='sip:011\[email protected]$host$'
display='011 \1'
transfer='sip:011\[email protected]$host$'
/>
</dialplan>
chrcha said:
As you have spaces between numbers' group, this rule will fit your need :
<rule pattern='\+\D*(\d+)\D*(\d+)\D*(\d*)\D*(\d*)\D*(\d* )\D*(\d*)'
dial='sip:0\2\3\4\5\[email protected]$host$'
display='0\2\3\4\5\6'
transfer='sip:0\2\3\4\5\[email protected]$host$'
/>
Click to expand...
Click to collapse
Thank, I will try
chrcha said:
Unfortunately, yes...
So you have to make your ipdialplan.xml simpler. This one will be enough (only if you don't have space or non-digit):
<dialplan xmlns='http://schemas.microsoft.com/embedded/VoIP'>
<dialplan-header>
<host>#use_sipsrv_host_name#</host>
</dialplan-header>
<!-- Dial Plan rules -->
<rule pattern='(\d*)'
dial='sip:\[email protected]$host$'
display='\1'
transfer='sip:\[email protected]$host$'
/>
</dialplan>
Troubles are beginning...
Each way to dial a number as to be fitted by a specific rule (examples: if you want to use spaces, or dots, or parenthesis...)
If your numbers have to be passed directly, except if they have the +, you should try :
<dialplan xmlns='http://schemas.microsoft.com/embedded/VoIP'>
<dialplan-header>
<host>#use_sipsrv_host_name#</host>
</dialplan-header>
<!-- Dial Plan rules -->
<rule pattern='(\d*)'
dial='sip:\[email protected]$host$'
display='\1'
transfer='sip:\[email protected]$host$'
/>
<rule pattern='\+(\d*)'
dial='sip:011\[email protected]$host$'
display='011 \1'
transfer='sip:011\[email protected]$host$'
/>
</dialplan>
Click to expand...
Click to collapse
I tried the above configs but still cannot place a call. Not sure why but keep getting network unavailable message when I dial.
Hopefully one day I will figure this out and be able to place calls via VOIP on my phone.
Is there any possibility to dial Jabber contacts? I.e. to call [email protected] from WM6?
I will give $30 by PayPal to anyone who can create a Dial Plan Wizard app for the WM6 devices including the Kaiser, which allows you to specify in simple fields what to dial when, and also crucially to ignore text characters after a number (e.g. +44 20 7841 1234 - Sales).
Anyone care to join me and start a fund to get such an app created? Please reply at the specific thread for this idea here: http://forum.xda-developers.com/showthread.php?p=1769969#post1769969
Trying to develop a dialplan, I found that my HTC TyTN as well as my HP ipaq 514 deletes blanks (spaces) from a phonebook entry before it is subjected to the dialplan ruling. That means that any spaces cannot be used to identify a rule. i.e. 0031 20 ... cannot be caught by requiring a space between the country code and the rest of the number.
Anyone aware of this an/or any registry setting that prevents this blank deletion? It a kind of degrades the power of dialing rules.
I tested this with the following dialplan, after not understanding why a certain rule did not catch a number on my iPAQ514.
So a phonebook entry of 0031 20 123 4567 will display 0031201234567 through the following dialplan that only catches all characters
Code:
<wap-provisioningdoc>
<characteristic type="VoIP">
<parm name="DialPlan"
value="<dialplan xmlns='http://schemas.microsoft.com/embedded/VoIP'>
<dialplan-header>
<host>#use_sipsrv_host_name#</host>
</dialplan-header>
<!-- Dial Plan rules -->
<!-- IP address rules -->
<!-- all characters -->
<rule pattern='(.*)'
dial='sip:\[email protected]$host$'
display='todial:\1'
transfer='sip:\[email protected]$host$'
/>
</dialplan> " />
</characteristic>
</wap-provisioningdoc>
chrcha said:
Dial Plan Regular Expression Engine - Language Summary,
see : http://msdn2.microsoft.com/en-us/library/aa921921.aspx
DialPlan Component ,
see : http://msdn2.microsoft.com/en-us/library/aa921954.aspx
Nice to test your regular expression, if you need to create new one,
see : http://www.roblocher.com/technotes/regexp.aspx
Very important to know : the last matched rule is the selected one, so be careful if a rule can match more than one pattern. It has to be first.
[............]
</dialplan>
Click to expand...
Click to collapse
Thanks, that testing site is very handy. About the first/last issue: Though read everywhere I found that WM6 takes the first match, not the last match. I tested that with the following plan. Try a 00 number and it dispalys First:number.
Code:
<wap-provisioningdoc>
<characteristic type="VoIP">
<parm name="DialPlan"
value="<dialplan xmlns='http://schemas.microsoft.com/embedded/VoIP'>
<dialplan-header>
<host>#use_sipsrv_host_name#</host>
</dialplan-header>
<!-- Dial Plan rules -->
<!-- IP address rules -->
<!-- Only digits -->
<rule pattern='00(.*)'
dial='sip:00\[email protected]$host$'
display='FIRST: 00\1'
transfer='sip:00\[email protected]$host$'
/>
<rule pattern='00(.*)'
dial='sip:00\[email protected]$host$'
display='2ND:00\1'
transfer='sip:00\[email protected]$host$'
/>
<rule pattern='(.*)'
dial='sip:\[email protected]$host$'
display='todial:\1'
transfer='sip:\[email protected]$host$'
/>
</dialplan> " />
</characteristic>
</wap-provisioningdoc>
dick99999 said:
... About the first/last issue: Though read everywhere I found that WM6 takes the first match, not the last match. I tested that with the following plan. Try a 00 number and it dispalys First:number.
Click to expand...
Click to collapse
I red the same. But on my HTC Touch with WM6 it takes the last one. I don't know why.
Concretley, it means that the order of the rules is very important, as the parsing looks for your pattern ANYWHERE in the string. It means that more than one rule can match your string.
dick99999 said:
Trying to develop a dialplan, I found that my HTC TyTN as well as my HP ipaq 514 deletes blanks (spaces) from a phonebook entry before it is subjected to the dialplan ruling. That means that any spaces cannot be used to identify a rule. i.e. 0031 20 ... cannot be caught by requiring a space between the country code and the rest of the number.
Anyone aware of this an/or any registry setting that prevents this blank deletion? It a kind of degrades the power of dialing rules.
Click to expand...
Click to collapse
In a rule :
<rule pattern= ...
dial= ...
display= ...
transfer= ...
/>
what is diplayed is not what is dialed...
So you can keep on your display the spaces (as display= ... is used to format of the string to be displayed to the user) and remove them from the URI (as dial= ... format the string into a URI which will be sent in the SIP INVITE)
(cf. http://msdn2.microsoft.com/en-us/library/aa921954.aspx)
CJSnet said:
I will give $30 by PayPal to anyone who can create a Dial Plan Wizard app for the WM6 devices including the Kaiser, which allows you to specify in simple fields what to dial when, and also crucially to ignore text characters after a number (e.g. +44 20 7841 1234 - Sales).
Click to expand...
Click to collapse
I'm not able to do a Dial Plan Wizard app but :
My country code is +44
My prefix for international calls is 00
My prefix for national calls is 0
From that it should be able to translate the following sort of numbers for dialling out via VoIP using the dialplan file:
+44 20 1234 5678 becomes 020 1234 5678
020 1234 5678 remains 020 1234 5678
+1 404 123 4567 becomes 001 404 123 4567
"+1 404 123 4567 - Sales" becomes 001 404 123 4567
1471 remains 1471
Click to expand...
Click to collapse
shouldn't be to complicated to put in an ipdialplan.xml, except :
And so on...
Click to expand...
Click to collapse
Try this attachment.
PS For me, it's what I did in my ipdialplan, +44 20 1234 5678 remains, but 020 1234 5678 become +44 20 1234 5678
Sorry...
I made correct the attachment of the previous post. This attachment is now for swiss rule plan dialing.
chrcha said:
In a rule :
<rule pattern= ...
dial= ...
display= ...
transfer= ...
/>
what is diplayed is not what is dialed...
So you can keep on your display the spaces (as display= ... is used to format of the string to be displayed to the user) and remove them from the URI (as dial= ... format the string into a URI which will be sent in the SIP INVITE)
(cf. http://msdn2.microsoft.com/en-us/library/aa921954.aspx)
Click to expand...
Click to collapse
Sorry, i did not clarify my point. My remark is not about output ( the dial, diaplay etc). My remark is about INPUT. So the string of the number to parse that stems from the phone book entry, does not contain blanks (spaces). It seesm to be pre parsed, also called normalized.
As a consequence, in one's own dialplan rules that determine which output to generate, one can thus not rely on spaces that exist in the phonebook entry, and let those spaces also determine the dial plan rule.
As an example if the phonebook entry is +31{space}201234567 or it is +3120123{space}4567, those listings generate the same to parse input string for the dialplan. One can thus not determine what the country code is from relying on spaces separating the country code. Another example is for local numbers (after the area code) of 7 or 8 digit numbers like 123{space}4567 and 1234{space}5678
dick99999 said:
... As a consequence, in one's own dialplan rules that determine which output to generate, one can thus not rely on spaces that exist in the phonebook entry, and let those spaces also determine the dial plan rule.
Click to expand...
Click to collapse
You're right. In fact, you cannot even rely on any non digit character!
That's why, it's very complicated to make a dialplan functionning worldwide, when you use non digit characters to make more readable your phonebook entry.
When you don't use non digit character, it's simple: you simply send the string in the SIP INVITE.
Those who are using only this three type of phone entries (with or without any non digit characters inside the number):
- a number beginning with only one 0 (zero) = area code + local number -> in that case, you add the international code (+xx) and suppress the 0 before using it.
- a number beginning with 00 (2 zero) = international number -> in that case, the phone number can be used as it is.
- a number beginning with + = international number -> in that case, you change the + by 00 before using it.
have a very simple ipdialplan and it's simple to make a Dial Plan Wizard app (as you only have to adjust the ipdialplan with your international prefix for numbers beginning with only one 0).
Dialplan for Pennytel or Australia
hi, if anyone of you could help me make a dialplan that would be awesome
my phonebook entry is in (07) xxxx xxxx for local and mobile is (04) xxxx xxxx which are essentially the same
these need to be passed to the VOIP as it is 07xxxxxxxx or 04xxxxxxxx
then my phonebook for international to taiwan is +886 xxx xxxx these needed to be passed as 0011 886 xxx xxxx
does anyone know how to do that? it would be so good if anyone could help
i would post these onto the australian forums to make it easier for everyone here.
thank you all!

WM6 Voip, I can't be heard! Help me please

Hello, I'm french user of an SPV E650 (flashed in HTC S710). My Internet Provider (Neuf) offers me a voip solution (neuftalk). Since one week, I try to use the VoipWM6 but I always compare at this problem: the personn called can't hear me.
My rom version is 1.34.406.1, I installed voipWM6.cab of Sleuth's. My _setup.xml contains:
<wap-provisioningdoc>
<characteristic type="VoIP">
<parm name="SIPSettings"
value="<provision key='1232ab01' name='neuftalk'>
<provider name='neuftalk' />
<user account='login' password='passwd'
uri='sip:[email protected]:5060'
allowedauth='digest'/>
<sipsrv addr='voip.wengo.fr' protocol='UDP' role='proxy'>
<session party='First' type='pc2pc' />
<session party='First' type='pc2ph' />
</sipsrv>
<sipsrv addr='voip.wengo.fr' protocol='UDP' role='registrar'/>
</provision>" />
</characteristic>
</wap-provisioningdoc>
I modified the internet calling option by "whenever available" and I open port 5060 on my sphone and on my router (hklm/system/voip/enable5060:0->1)
When I connect my smartphone on Wlan, the Voip logo appears and the line internet calling becames "neuftalk: connexion en cours"
I can call, I hear my correspondent (ont the rear speaker as everybody) but I can't be heard.
If somebody think at a solution for my matter, i will be very happy. Thanks a lot.
NB: excuse me for my bad english, I'm a poor little french!
Hi, I 'm very happy because I succeed to activate correctly Voip client of WM6 with Neuftalk.
In order to be called during my call, I' modify the registry as that:
I create a key "codec" in hklm/comm and I add 2 value in codec:
- "UsePreferredCodec" with DWORD value data 1
- "PreferredAudioCodec" with DWORD value data 8
Now is ok. 4 matters stay:
- The sound is transmitted by the rear speaker but the handless permit using phone correctly.
- For calling, I must dial 0033 + phone number. I must modify ipdialplan.xml
- My correspondent can't hear me immediately at the call beggining. between 2 and 8sec are necessary.
- I can't use the "Neuf WIFI" public hotspot. I can send call but the communication stop automatically at 30sec. During this call, my correspondent and me can't speak.
herveduff said:
- For calling, I must dial 0033 + phone number. I must modify ipdialplan.xml
Click to expand...
Click to collapse
Hi,
I'm french too
Here is my ipdial to have french phone call :
<dialplan xmlns='http://schemas.microsoft.com/embedded/VoIP'>
<dialplan-header>
<host>#use_sipsrv_host_name#</host>
</dialplan-header>
<!-- Regles de Numerotations -->
<!-- Regles de numerotation IP -->
<rule pattern='\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'
restrict='Cell,SMS'
/>
<rule pattern='(\d{1,3})\*(\d{1,3})\*(\d{1,3})\*(\d{1,3})'
dial='\1.\2.\3.\4'
display='\1.\2.\3.\4'
transfer='\1.\2.\3.\4'
restrict='Cell,SMS'
/>
<!-- Regles de numerotations Francaises -->
<rule pattern='0(\d{9})'
dial='sip:0\[email protected]$host$'
display='0\1'
transfer='sip:0\[email protected]$host$'
/>
<rule pattern='0(\d{1})\s*(\d{2})\s*(\d{2})\s*(\d{2})\s*(\d{2})(\s*[Xx]\s*\d+)?'
dial='sip:0\1\2\3\4\[email protected]$host$'
display='0\1\2\3\4\5'
transfer='sip:0\1\2\3\4\[email protected]$host$'
/>
<!-- Regles de numerotation generiques -->
<rule pattern='(00|+)(\d+)'
dial='sip:00\[email protected]$host$'
display='+\2'
transfer='sip:00\[email protected]$host$'
/>
<rule pattern='(\d+)'
dial='sip:\[email protected]$host$'
display='+\1'
transfer='sip:\[email protected]$host$'
/>
<!-- Regles de numerotation URI SIP -->
<!-- Appels entrants Freephonie -->
<rule pattern='[Ss][Ii][Pp][Ss]?:\s*0(\d{9})@(.+)'
display='0\1'
restrict='Cell,SMS'
/>
<rule pattern='[Ss][Ii][Pp][Ss]?:\s*(\d{3})(\d{3})(\d{4})@(.+)'
display='\1\2\3'
restrict='Cell,SMS'
/>
<rule pattern='([Ss][Ii][Pp][Ss]??\s*([a-zA-Z0-9_-]+)@(.+)'
display='\2'
restrict='Cell,SMS'
/>
<rule pattern='[Ss][Ii][Pp][Ss]?:\s*([^@]+)'
display='\1'
restrict='Cell,SMS'
/>
</dialplan>
Click to expand...
Click to collapse
good luck
THanks for you dial plan! that interest me but before modify my dialplan, I desesperate to make worked my voip client on public hot spot which block all ports except the port 80. If somebody has an idea, tell me please

provisioning

Here's a list of options available during provisioning:
Code:
LOCK:Enabled lock the device so no user action is possible
CAB: \Extended_ROM\... install a CAB file use
EXEC:\Extended_ROM\... execute a file
CPY1:\Extended_ROM\sourcefile specify source for copy command
CPY2:\windows\targetfile copies CPY1 file to target
XML: \windows\... execute a provisioning XML file
LOCK:Disabled unlocks the device
RST: Reset execute a reset at the end
CFG: \Storage\Config2.txt include configuration from another file e.g. Config2.txt (same syntax as Config.txt)
HIDE:Enabled hides the autorun screen so that user interaction can take place.
HIDE:Disabled shows the autorun screen after user interaction.
SHOW:\Extended_ROM\... shows the image specified as the background to AutoRun. Must be a bmp.
My question is:
Did I miss any option to DELETE a file directly, without extended provisioning?
For example: DEL: \Windows\file_to_delete.ext
In general, we have to call an XML: and add further provisioning, like:
<parm name="RemoveAttributes" value="R" />
and THEN
<characteristic type="%CE2%\file_to_delete.ext" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
Since not always can we delete the file directly.

WP7 Ad-hoc support

Hello:
Is there a way to connect the WP7 to an Ad-hoc Wi-Fi device?
I'm asking for a hack, I know WP7 can't do it!
duefectu said:
Hello:
Is there a way to connect the WP7 to an Ad-hoc Wi-Fi device?
I'm asking for a hack, I know WP7 can't do it!
Click to expand...
Click to collapse
aaaahhhhh...i wanna know tha same thing
try with a provxml
you can change access-point to AdHoc
Code:
<wap-provisioningdoc>
<characteristic type="CM_WiFiEntries">
<characteristic type="My_SSID"> (do not change this value and delete this comment)
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="YourSSID to insert">
<parm name="DestId" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="hidden" value="1"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value="yourPWD to insert"/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
Thanks xboxmod, but It don't works.
I'm trying to connect my WP7 to an arDrone. The arDrone has an Ad-Hoc network without NetworkKey nor Authentication.
I use HTC-ProvXml-Deploy0.0.1.
I opened and edit the CustClear.provxml file inserting this:
HTML:
<wap-provisioningdoc>
<characteristic type="CM_WiFiEntries">
<characteristic type="My_SSID">
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="AdHoc">
<characteristic type="ardrone_076474">
<parm name="DestId" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="hidden" value="1"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value=""/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
I installed the xap on the Phone and executed the HTC-ProvXml-Deploy0.0.1, then pressed the green button.
Uninstall HTC-ProvXml-Deploy0.0.1.
Reset device and go to Config -> WiFi. But the "ardrone_076474" network isn't in the list.
Also I repeat the steps changing some parameters, but it don't works.
I'm doing something wrong?
Is there another way, like changing register or similar.
Thanks for your time!
duefectu said:
Thanks xboxmod, but It don't works.
I'm trying to connect my WP7 to an arDrone. The arDrone has an Ad-Hoc network without NetworkKey nor Authentication.
I use HTC-ProvXml-Deploy0.0.1.
I opened and edit the CustClear.provxml file inserting this:
HTML:
<wap-provisioningdoc>
<characteristic type="CM_WiFiEntries">
<characteristic type="My_SSID">
<parm name="DestID" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="AdHoc">
<characteristic type="ardrone_076474">
<parm name="DestId" value="{A1182988-0D73-439e-87AD-2A5B369F808B}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="hidden" value="1"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value=""/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
I installed the xap on the Phone and executed the HTC-ProvXml-Deploy0.0.1, then pressed the green button.
Uninstall HTC-ProvXml-Deploy0.0.1.
Reset device and go to Config -> WiFi. But the "ardrone_076474" network isn't in the list.
Also I repeat the steps changing some parameters, but it don't works.
I'm doing something wrong?
Is there another way, like changing register or similar.
Thanks for your time!
Click to expand...
Click to collapse
just to be sure, is your ad-hoc network recognized by other devices?
Have you tried using a different security protocol on the ad-hoc device or using a network key?
The device connects via ad-hoc to the laptop without any network key.
I can't see the network in the WP7 Wi-Fi list , and it isn't a hidden network. With the laptop I can see the ad-hoc network, and is a not securet network.
I also would like to use adhoc under WP7... nothing yet out there? Thanks!
Sent from my Unlocked & Jailbroken HTC HD7 using XDA App
newtek1 said:
I also would like to use adhoc under WP7... nothing yet out there? Thanks!
Sent from my Unlocked & Jailbroken HTC HD7 using XDA App
Click to expand...
Click to collapse
I can't connect the WP7 to a adhoc, at last, there's a way to setup the other device to connecto to an AccessPoint, but with the WP7 nothing.
duefectu said:
I can't connect the WP7 to a adhoc, at last, there's a way to setup the other device to connecto to an AccessPoint, but with the WP7 nothing.
Click to expand...
Click to collapse
Don't worry... save this page... at some point there should be a patch or something in order to make adhoc work under WP7...
Sent from my Unlocked & Jailbroken HTC HD7 using XDA App
newtek1 said:
Don't worry... save this page... at some point there should be a patch or something in order to make adhoc work under WP7...
Sent from my Unlocked & Jailbroken HTC HD7 using XDA App
Click to expand...
Click to collapse
I hope, but the solutions posted didn't work. Maybe with the new update for WP7... or not!
One of the few little quirks with wp7 & networks that I hope they address with the next update (can't connect to hidden n/w, can't edit host names, adhoc networks, mac address accessibility)
stillriza said:
One of the few little quirks with wp7 & networks that I hope they address with the next update (can't connect to hidden n/w, can't edit host names, adhoc networks, mac address accessibility)
Click to expand...
Click to collapse
Since we now have access to WP7 registry (thanks to Chevron) are there any registry tweaks for adhoc... this is not as simple as making a few entries in the registry? Thanks...
Sent from my Unlocked & Jailbroken HTC HD7 using XDA App
ad-hoc
anyone got good news about adhoc on windows phone ?
I got the alternate way to connect my HD7 direct with my laptop by use application call "Connectify".
It can transform your wireless card to be "Virtual Access Point" (not Ad-Hoc) with specific device and specific driver.
As you can see in my picture,
I use ALFA usb adapter (RTL8187) to received the internet signal,
and use Intel wireless 1000 in my laptop to broadcast virtual wireless out with the WPA2-PSK Access Point, so it's work like charm, I have my connected client with the 90:21 mac-address that's value from HTC
Edit : more clearly image..
http://s3.postimage.org/gojkv23s/Untitled_1.png
yea and if connectify doesent fully support your wireless card than you are back to 0...something from the phone must be done..a hack that will enable windows phone 7 to connect to ad-hoc netowrks
vladtdr said:
yea and if connectify doesent fully support your wireless card than you are back to 0...something from the phone must be done..a hack that will enable windows phone 7 to connect to ad-hoc netowrks
Click to expand...
Click to collapse
Finally i got my adhoc network working with my wp7 phone.
my wireless adapter does not support access point mode. so i created an open network. it was detected by my phone but i could not connect to it. every time i tried it gave me an error message. but what i accidentally found out is that if you switch on wifi on the phone and and suddenly remove the battery and switching the phone on after reinserting the battery it would connect the phone to the wifi adhoc network. i can browse web via wifi just fine. also for that the battery should be charged adequately.
i also dont know whethr it damages the phone.
I don't know about ad-hoc problems on WP7 - tested on a HTC, Samsung Taylor and DVP. All are connecting to Windows 7 ad-hoc networks just fine. Sometimes it might take more than one try, but at the end it always connects.
A free tool worth checking out is VirtualRouter (h ttp://virtualrouter.codeplex.com), if nothing helps.
HTC Gold does not see Android 1.6 tethered internet, but it is able to connect now.
Hi friends. I am not sure, if it is a property of WP 7.5 or Dynamics 2 ROM. My HTC7Pro does not see Android 1.6 (HTC Tattoo) wifi tethered internet (by one click root + Android Wifi Tether application). But, when I set Statical IP address + subnet mask + gate + DNS (necessary, for example 8.8.8.8 or the same as gate or provider dependent) in WiFi WP7 settings and add SSID manually ("Advanced" ... "+", it says "maximally 3 battery drying hidden SSIDs ones"), then Gold ask me for password normally and internet works well!
Another question:
When BT drivers are hacked (DFT), is anybody able to finish BT internet access from WP7 phone to BT tethered Android one?

[Q] same code behave differently on linux/windows

I'm quit new to android and now following the book "Beginning Android Application Development".
One sample that shows how Android handle activities with same name just didn't work on my linux, which should prompt a dialog and let me choose the default action. I tried a lot and gave it up then. however, the same code behave correctly on a windows XP later. here is the snippet of my AndroidManifest.xml:
<activity android:name=".Activity2"
android:label="Activity 2">
<intent-filter>
<action android:name="com.xxx.ACTIVITY2" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name=".Activity3"
android:label="Activity 3">
<intent-filter>
<action android:name="com.xxx.ACTIVITY2" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
the code is like:
onClick() { startActivity(new Intent("com.xxx.ACTIVITY2")); }
on linux, it always shows the "Activity 2", on winxp, it prompts for a choice.
both are using "Eclipse indigo J2EE", Android gingerbread emulator for 2.3.3.
did I miss something? any help is appreciated.

Categories

Resources