Changing default call type from code on E61
Hello all!
I'm using an E61 with the S60 3rd edition SDK and trying to figure out how to change the default call type between "Cellular" and "Internet". While this can be easily done using the Settings app (Tools->Settings->Call->Default call type), I really need to figure out how to do this dynamically from an application.
I was wondering if anyone else was trying to do the same, or (better still) has aleady figured it out? Is there an obscure API that can be used? Or is the solution hidden in the dark depths of CommDB??
My ultimate goal is to be able have a daemon running that monitors a WLAN connection and, when available, will automatically connect, register with asterisk and make the phone ready to make VoIP calls. I've pretty much fugured out all of the other bits (I can connect to the WLAN and register with asterisk) but if the default call type is set to "Cellular" then dialling a number will of course go out through the cellular network.
When registered with asterisk I'd like the calls to go through the WLAN without having to pester the user about it.
Am I going about this the right way? If I change the default call type manually (with the settings app) then the calls go where I'd expect them to so I assume that doing so from code would do so as well.
If anyone can help I would be extremely grateful!
Many thanks,
Brett.
Re: Changing default call type from code on E61
[QUOTE=gamma8]
My ultimate goal is to be able have a daemon running that monitors a WLAN connection and, when available, will automatically connect, register with asterisk and make the phone ready to make VoIP calls. I've pretty much fugured out all of the other bits (I can connect to the WLAN and register with asterisk) but if the default call type is set to "Cellular" then dialling a number will of course go out through the cellular network.
[/QUOTE]
Hi Brett,
i am working on a software which will do exact the same: Monitor the available Wlan's, connecting to known ones, and the connect to the preconfigured SIP Service. But i dont really know how to do the wlan part. Maybe you can help me a little with this?
Marcel
Re: Changing default call type from code on E61
Brett,
I'm working on the same thing, but missing how to dynamically change the default call type to "Internet". Have you managed to figured this out?
-joi
Re: Changing default call type from code on E61
Hi,
Did you guys find a solution for this?
I don't need to change it, I just need to see what it is set to.
Thanks in advance, Aymen
Re: Changing default call type from code on E61
Hi , guyes
I have to do same thing in my application ,
Plz help me , Give some guideline
Re: Changing default call type from code on E61
Hi, I'm facing problems to find available WLAN's and config SIP using JavaME what API should I use? Do I need any signing or devcert? Thanks.
Re: Changing default call type from code on E61
Hi...
I'm also using internet and GSM calls and I need to know how to change the default call type between "Cellular" and "Internet".
Any solution for this?
Anyone know if there are some partner api's for this ?
thanks.
Ste
Re: Changing default call type from code on E61
Unfortunately the VoIP terminal settings related APIs are currently not a part of the public S60 SDK. I will have a chat with some people and see if we can do anything to change this. Can't promise a quick solution though.
In the meanwhile you can tweak the VoIP terminal settings by sending a wbxml message to your Nokia VoIP 2.x compatible device. Below is an example of such a message (before wbxml encoding :) ). The w9033 settings are device level settings, i.e. they affect all VoIP services on the device. Please see the Nokia VoIP configuration guides for more info.
<?xml version="1.0"?>
<!DOCTYPE wap-provisioningdoc PUBLIC "-//WAPFORUM//DTD PROV 1.0//EN"
"http://www.wapforum.org/DTD/prov.dtd">
<wap-provisioningdoc version="1.1">
<characteristic type="APPLICATION">
<parm name="APPID" value="w9033"/>
<parm name="NAME" value="Test terminal VoIP settings "/>
<parm name="CLIR" value="1"/>
<parm name="ACBRULE" value="1"/>
<parm name="PREFTEL" value="1"/>
<parm name="DND" value="1"/>
<parm name="PSCALLWAITING" value="1"/>
</characteristic><!-- APPLICATION -->
</wap-provisioningdoc>
cheers,
petro
Forum Nokia
Re: Changing default call type from code on E61
Are there any API to get default call type?
Re: Changing default call type from code on E61
Hi! I am trying to do the same thing as well, changing the default call type in my python script. has anyone solved the problem? or could you guide me to the solution of the problem please?
Thanks!