[HACK] (16/05/2010) Native SMS over IP

ccristal

Senior Member
Sep 28, 2009
527
60
0
Hi!
I installed your cab on my HD2 (CleanEX ROM) and it doesn't seem to kick in at all: the SMS get sent in the traditional way, even if I choose to send them via IP. Any idea?

Thank you!

ccristal
 

drizztje

Senior Member
Jun 20, 2006
331
55
0
Ankara
Hi!
I installed your cab on my HD2 (CleanEX ROM) and it doesn't seem to kick in at all: the SMS get sent in the traditional way, even if I choose to send them via IP. Any idea?

Thank you!

ccristal
did you soft reset after installation? check the attributes of /windows/sms.dll and verify that it's not a rom file (to verify if overwrite was successful). last thing to try: change sending network to cdma in htc messaging->settings->options.
 

ccristal

Senior Member
Sep 28, 2009
527
60
0
did you soft reset after installation? check the attributes of /windows/sms.dll and verify that it's not a rom file (to verify if overwrite was successful). last thing to try: change sending network to cdma in htc messaging->settings->options.
CDMA? Even if I'm in Europe? Will non-IP texts be delivered that way?
I have tried, however. I have also set the configuration to "Select on send". With the sending network set to GSM, the popup doesn't even appear, and the SMS is delivered always via GSM. With CDMA selected, the popup does indeed appear, and the following happens:
- if I select to send the text via GSM, the text is delivered.
- if I select to send the text via VoIP, the phone hangs. After removing and reinserting the battery, when I turn on the phone, I get the popup again.

Thank you!

ccristal
 
Last edited:

dsip

Senior Member
Jul 1, 2009
205
51
0
I don't know the reason for the strange chars. you can try to send the same message using your voip providers software or using the browser on a pc.

about the default browser problem, did you check hkcr/https/shell/open/command?
The characters were actually added to the URL opened by the browser. This did never happen with the version 1.7 of the sms.dll, which did not open the browser.
(edit: Doesn't seem to happen anymore, I have set it to use iexplore now..)

I thought you could choose the browser which is used for sending the sms irrespective of the default browser. Did I misunderstand this?


ccristal: This seems to happen with some messages only. It happens to me sometimes as well. Could you maybe post the message you wanted to write? Did you try to modify it?
By the way, you can open the message program and remove the message from the outbox folder, that way the popup does not come back again.
 
Last edited:

drizztje

Senior Member
Jun 20, 2006
331
55
0
Ankara
The characters were actually added to the URL opened by the browser. This did never happen with the version 1.7 of the sms.dll, which did not open the browser.
(edit: Doesn't seem to happen anymore, I have set it to use iexplore now..)

I thought you could choose the browser which is used for sending the sms irrespective of the default browser. Did I misunderstand this?


ccristal: This seems to happen with some messages only. It happens to me sometimes as well. Could you maybe post the message you wanted to write? Did you try to modify it?
By the way, you can open the message program and remove the message from the outbox folder, that way the popup does not come back again.
it launches the final url with the system default program, and I think that is the one specified in the registry that I mentioned. I'll add another option in the future for this (built-in or launch external browser, and maybe browser selection as well).

ccristal: indeed special characters in the message can cause problems. for me the last sms.dll attached in the thread that launches external browser works better.
 

dsip

Senior Member
Jul 1, 2009
205
51
0
it launches the final url with the system default program, and I think that is the one specified in the registry that I mentioned. I'll add another option in the future for this (built-in or launch external browser, and maybe browser selection as well).
Yes, specifying another system browser with the registry key you supplied works fine. Nevertheless I'd like an option like that. :)
Opera Mini does not work though. It does not seem to get the url.
 

drizztje

Senior Member
Jun 20, 2006
331
55
0
Ankara
Brand new version

Hello guys,

I made a brand new version. No more http or browser stuff. I send the sms using sip message through pjsip stack that I also use for my sipekmobile project. this should be much more stable. an additional file called pjsipdll_mobile.dll needs to be put in \windows folder. I added all dll's into the attached zip.

Note: You need to changed the url in the registry into the address of your sip proxy (eg: sip.12voip.com, sip.voipraider.com, ...)

Please test this version and let m know. If everything is ok, I'll create a new generic thread and move to that one. We will also need a new cab.

Enjoy
 

Attachments

ccristal

Senior Member
Sep 28, 2009
527
60
0
Hello guys,

I made a brand new version. No more http or browser stuff. I send the sms using sip message through pjsip stack that I also use for my sipekmobile project. this should be much more stable. an additional file called pjsipdll_mobile.dll needs to be put in \windows folder. I added all dll's into the attached zip.

Note: You need to changed the url in the registry into the address of your sip proxy (eg: sip.12voip.com, sip.voipraider.com, ...)

Please test this version and let m know. If everything is ok, I'll create a new generic thread and move to that one. We will also need a new cab.

Enjoy
Alright, so this is what I did:

  1. installed the 1.7 cab
  2. before rebooting, replaced sms.dll with the one contained in the zip, and copied pjsipdll_mobile.dll in the \Windows directory
  3. rebooted
  4. reloaded my settings
  5. replaced the url with "sip.smartvoip.com"

Here's what happens:
  • still no luck if the "sending network" option is set to "GSM" under All Messages -> Settings -> Options: message gets always delivered via GSM, never via IP, and the new sms.dll doesn't even get invoked.
  • If I set the option to "CDMA", then the new sms.dll kicks in. At that point:
    • if I choose to send the SMS over IP and WiFi is not on, the GPRS connection starts, but nothing happens and the message doesn't get delivered (it doesn't even get recorded in my "recent calls" view of my SmartVoIP account). I have not tested with a 3G connection, since it's not available where I live.
    • if I choose to send the SMS over IP and WiFi is on, the SMS gets delivered via VoIP;
    • If, instead, I choose not to send it over IP, the text gets delivered normally (via GSM).

So, looks like there's a problem with GPRS... maybe a timeout is set to a value too short?

In all cases, the phone doesn't hang anymore.

Did I do anything wrong?

I hope this helps...


ccristal
 
Last edited:

drizztje

Senior Member
Jun 20, 2006
331
55
0
Ankara
cdma needs to be selected, otkerwise new htc messaging doesn't use the sms.dll layer it seems. did you register your gsm number with smartvoip? double check the registry settings hkcu/software/drizzt/smsoip.

edit: sorry, i didn't read your post completely. so it works over wifi. it could be that your gsm operator blocks port 5060 on gprs traffic, did you try any voip software with your gprs connection?

edit2: you could try to establish the gprs connection manually or using internet explorer browsing to some site and then send the sms and see what happens.
 
Last edited:

dsip

Senior Member
Jul 1, 2009
205
51
0
Seems to work fine (just tested it over WiFi).
The message takes three or four minutes to be sent though, that's a little weird.
 

ccristal

Senior Member
Sep 28, 2009
527
60
0
edit2: you could try to establish the gprs connection manually or using internet explorer browsing to some site and then send the sms and see what happens.
Tried that too, it didn't work. I'll try Fring over GPRS and see what happens.
Thanks for your help.


ccristal
 

dsip

Senior Member
Jul 1, 2009
205
51
0
3-4 minutes? for me it's 20 seconds. must be something strange with your voip provider.
Seems like it was some server problem, takes a few seconds now. A message sent to myself just arrived two seconds after I clicked "send". :)

Çok teşekkür ederim.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone