Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
penrillian
Posts: 4
Registered: ‎09-28-2009

BB 9000 - not calling/receiving phone calls when custom IM app running

Hi there,

 

We have a problem calling and receiving phone calls while running our IM application.

The app contains a thread that makes a socket connection to an IM server and opens an output and input streams on the connection and parses incomming messages.

Is there some known issues when openning a socket connection that would disable calling/receiving phone calls?

The run method looks as follows:

 

try
{
this.connect();
this.sendLogin();
this.parseIn();
}
catch ( Exception uncaughtException )
{
System.out.println( "UNCAUGHT EXCEPTION: " + uncaughtException.getMessage() );
}
finally
{
this.clearThread();
System.out.println("IM THREAD TERMINATED! + (" + thisInstanceNumber + ")");
}

 Connect - opens the connection:

try
{
if (!use_ssl)
{
connection = (SocketConnection ) Connector.open("socket://" + this.host + ":" + this.port + ";deviceside=true", Connector.READ_WRITE);
this.reader = new XmlReader(connection.openInputStream());
this.writer = new XmlWriter(connection.openOutputStream());

}
else
{
sc = (SecureConnection)Connector.open("ssl://" + this.server + ":" + this.port, Connector.READ_WRITE);
is = sc.openInputStream();
os = sc.openOutputStream();
this.reader = new XmlReader(is);
this.writer = new XmlWriter(os);
}
System.out.println("IM CONNECTED AS: " + this.myjid + " - thisInstanceNumber: (" + thisInstanceNumber + ")");
}
catch (final Exception e)
{
this.connectionFailed("CONNECT ERROR: " + e.getMessage());
return;
}

 

 

 sendLogin - sends an XMPP message to login.

parseIn - listens to the incomming stream for characters.

 

 Is it possible to not be able to make or receive phone calls due to a connection being left open or some other issue?

 

Any help/suggestion greatly appreciated!

 

 

 

Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009

Re: BB 9000 - not calling/receiving phone calls when custom IM app running

Might be the usual GRPS Class B issue: GRPS activity blocking GSM activity.
Please use plain text.
Developer
simon_hain
Posts: 15,558
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: BB 9000 - not calling/receiving phone calls when custom IM app running

i would suspect the same thing as klyubin.
a connection that is not active should not block an incoming call though.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Developer
penrillian
Posts: 4
Registered: ‎09-28-2009

Re: BB 9000 - not calling/receiving phone calls when custom IM app running

My understanding of a class B device is that, when a GPRS connection is established and a voice call is made/received, the GSM voice call should take priority and the GPRS connection will be suspended until the voice call is terminated.

 

Given this, I wouldn't expect a socket connection (whether active or not) to block an incoming call.  I've not come across issues such as this on other class B platforms before - voice calls are always given precedence over GPRS connections.

 

Is my understanding incorrect, or are there known issues with GSM/GPRS precedence on BlackBerry?

Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009

Re: BB 9000 - not calling/receiving phone calls when custom IM app running

On Vodafone UK you don't get an incoming phone call while the BlackBerry is actively exchanging data over GRPS.
Please use plain text.
Developer
simon_hain
Posts: 15,558
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: BB 9000 - not calling/receiving phone calls when custom IM app running

most networks do not support voice priority.
you can read something about GPRS device and network classes and ask your local operator.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Developer
penrillian
Posts: 4
Registered: ‎09-28-2009

Re: BB 9000 - not calling/receiving phone calls when custom IM app running

Just tested receiving an incoming call on Vodafone UK whilst downloading over GPRS and you're correct, it went straight to voicemail.  Does this indicate that the issue is operator-dependent? I'll have to try a few more networks to see how they are affected.

 

I was still able to make an outgoing call whilst downloading though, which I'm not able to on the BlackBerry when running my app.  Investigations continue...  

 

Thanks

Please use plain text.
Developer
simon_hain
Posts: 15,558
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: BB 9000 - not calling/receiving phone calls when custom IM app running

the network types are NOM1 and NOM2.
here is an article about it on the iphone:
http://reviews.cnet.com/8301-19512_7-10115034-233.html
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009

Re: BB 9000 - not calling/receiving phone calls when custom IM app running

It might be not just operator-specific but also device-specific. I'm a bit rusty on details, but I think the mobile is receiving a page on one of the GSM control channels, indicating that a Circuit Switched (CS) call is incoming, and it's up to the mobile to proceed with accepting this CS call. When the mobile is a GPRS Class B device, it has to decide whether to keep being connected to the GRPS/Packet Switched (PS) infrastructure and ignore the incoming CS call, or whether to disconnect from the GRPS/PS infrastructure and connect to the GSM/CS infrastructure and take the CS call. My GSM/GPRS book is far away, so, take this description/explanation with a big pinch of salt.
Please use plain text.
Developer
simon_hain
Posts: 15,558
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: BB 9000 - not calling/receiving phone calls when custom IM app running

afaik all devices on the consumer market are class B.
they suspend data traffic if a call is signaled using a NOM1 network, but at least in germany and france it is difficult to get exact data about the NOM status. better go nom nom nom :smileywink:
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.