PROBLEMS IN J2ME IN RECEIVING SIP MESSAGES IN NOKIA E60
Hello guys!
I'm currently developing an instant messaging for sip messages in the NOKIA E60 platform.
Registration process to the proxy functions properly, sending of messages to target URI functions properly, however, when a softphone send a sip mesage to the proxy-routing to my application. My application doesn't receive anything. I used the ethereal to see incoming frames in the proxy and i found out that Nokia E60 send a "bad media type mesasge" as a reply to the message. Any feedback in this matter ? My code is written below:
import javax.microedition.io.*;
import javax.microedition.sip.*;
import java.io.*;
import javax.microedition.lcdui.*;
public class UserForm extends List implements CommandListener
//private variables
private Command m_exit=null, m_select=null, m_back=null;
public Databank m_data=null;
public IM_SIP m_sip=null;
public WriteForm m_writeForm=null;
public ReadForm m_readForm=null;
public PhoneBook m_book=null;
public RegisterThread m_register=null;
public void Stop_MainThread()
//m_game.stop_MainLoop();
public void cleanresource()
try
catch(Exception ex)
System.out.println("UserForm"+ ex.toString());
public Display getscreen()
return m_sip.m_disp;
public void commandAction(Command cmd, Displayable disp)
int index;
index=this.getSelectedIndex();
if(cmd==m_select)
//determine what the user wants
switch(index)
case 0://write message option
m_sip.m_disp.setCurrent(m_writeForm);
break;
case 1:
m_sip.m_disp.setCurrent(m_readForm);
break;
case 2:
m_sip.m_disp.setCurrent(m_book);
break;
case 3:
break;
else if(cmd==m_exit)
try{
m_sip.destroyApp(false);
m_sip.notifyDestroyed();
m_sip=null;
catch(Exception ex)
//System.out.println("UserForm Exit" + ex,toString());
System.out.println("UserForm_Exit:" + ex.toString());
else if(cmd==m_back)
this.setTitle("Instant Messaging SIP");
//if(m_continue==false || multi==true){
this.deleteAll();
this.removeCommand(m_back);
this.add_other_items();
this.addItems();
this.addSoftButtons();
//else
// this.addContinue();
private void addSoftButtons()
this.addCommand(m_exit);
this.addCommand(m_select);
private void removeSoftButtons()
this.removeCommand(m_exit);
this.removeCommand(m_select);
private void addItems()
//this.append(new String("Write Message"), null);
//this.append(new String("Inbox"), null);
this.append(new String("Phonebook"), null);
this.append(new String("Options"), null);
public void add_other_items(){
this.append(new String("Write Message"), null);
this.append(new String("Inbox"), null);
public UserForm(IM_SIP p_sip)
super("Instant Messaging SIP", List.IMPLICIT);
//initialize all the important variables
System.out.println("INITIALIZING....");
m_sip=p_sip;
//this.addItems();
m_exit=new Command("Exit", Command.EXIT, 1);
//m_instform=new Instructionform("Game Instruction", this, new String("- Objectives: Get the flag of the enemy at all cost\n- For every you beat an officer, your score increses\n- Controls: Press the directional keys, 2, 4, 6, 8, press the ok button to confirm an action."));
m_select=new Command("Select", Command.SCREEN, 2);
m_back=new Command("Back", Command.SCREEN, 1);
m_data=new Databank();
System.out.println("FINISHED DATABANK INITIALIZATIOn...");
System.out.println("FINISHED DATABANK2 INITIALIZATIOn...");
m_book=new PhoneBook(this);
System.out.println("FINISHED DATABANK3 INITIALIZATIOn...");
//m_game=new GameSurface(this, m_data);
//m_view=new ScoresView(m_data, this);
this.addCommand(m_exit);
this.addCommand(m_select);
this.setCommandListener(this);
System.out.println("FINISHED DATABANK3 INITIALIZATIOn...4");
//m_register=new RegisterThread(this, m_readForm);
m_register=new RegisterThread(this);
m_register.start();
//m_readForm=new ReadForm(this);
//m_writeForm=new WriteForm(this, m_readForm);
/** Register Message Thread */
class RegisterThread extends Thread implements SipClientConnectionListener {
private int recTimeout = 0; // do not wait, just poll
public String message="";
//public String proxyAddress="[email protected]";
public String msgSubject="";
private UserForm form=null;
//private ReadForm m_read;
private SipClientConnection scc = null;
RegisterThread(UserForm p_form){
super();
form=p_form;
// m_read=p_read;
public void notifyResponse(SipClientConnection sc) {
try {
scc.receive(recTimeout);
form.add_other_items();
form.addItems();
form.append("Response register received: " + sc.getStatusCode() + " "
+ sc.getReasonPhrase(), null);
scc.close();
form.m_readForm=new ReadForm(form);
form.m_writeForm=new WriteForm(form, m_readForm);
//form.append(new String("Write Message"), null);
//form.append(new String("Inbox"), null);
} catch(Exception ex) {
form.append("MIDlet: exception " + ex.getMessage(), null);
ex.printStackTrace();
public void run() {
try{
//try {
// if (waitFor!=null) {
// waitFor.join();
// } else {
// } catch (InterruptedException ie) {}
try{
scc = (SipClientConnection)Connector.open("sip:[email protected]:5060;transport=udp");//;transport=udp");
catch(Exception ex){
form.append("p1"+ex.toString(), null);
// form.append("P1", null);
try{
scc.setListener(this);
catch(Exception ex){
//form.append("p2"+ex.toString(), null);
// form.append("P2", null);
// scc.initRequest("REGISTER", m_read.m_read.scn);
try{
//scc.initRequest("REGISTER", m_read.m_read.scn);
scc.initRequest("REGISTER", null);
catch(Exception ex){
Alert alert = new Alert("Error");
alert.setType(AlertType.ERROR);
alert.setTimeout(3000); // display the alert for 3 secs
alert.setString(ex.toString());
//form.append("P3", null);
//form.append("SEND REGISTRATION1", null);
String adr = "<sip:[email protected]>";
try{
scc.setHeader("To", adr);
scc.setHeader("From", adr);
scc.setHeader("Contact", "sip:[email protected]:5060");
scc.setHeader("Content-Length", "0");
scc.setHeader("Max-Forwards", "6");
}catch(Exception ex){
Alert alert = new Alert("Error");
alert.setType(AlertType.ERROR);
alert.setTimeout(3000); // display the alert for 3 secs
alert.setString(ex.toString());
// uaStatus.setStatus(REGISTERING);
try{
scc.send();
}catch(Exception ex){
form.append("p4"+ex.toString(), null);
//form.append("SEND REGISTRATION2", null);
System.out.println("SYSTEM REGISTER SEND");
// uaStatus.waitUntilChanged();
// progressGaugeFinished = true;
}catch (Exception e) {
Alert alert = new Alert("Error");
alert.setType(AlertType.ERROR);
alert.setTimeout(3000); // display the alert for 3 secs
alert.setString(e.toString());
m_sip.m_disp.setCurrent(alert);
form.append(e.toString(), null);
// failMessage = e.getMessage();
// commandAction(failedCmd, currentDisplay);
// return;
}
Hey!
1. Nokia hides some folders containing system stuff, so that you don't accidentally delete something and mess things up. The computer sees more of them and can count them in, so...
2. It happens because your wallpapers are stored on the Mass storage/ Memory Card drive... And if you connect your phone to the computer, it won't be able to read any files on E/F drives as the computer acceses them.
3. They are! You just have to scroll down the list that pops up when you click on the widget
4. Try this one: to snooze an alarm, turn the phone on the other side, so that the scrren faces the table- it will shut up!
5. Nope, they're usable straight away
6. Don't really see what you mean... You want the messaging app shortcut to open up with folders (outbox, inbox, stuff like that?) I'm afraid it's not possible You'll have to access them via the options menu
Similar Messages
-
I have 2 Iphones, registered under the same AppleID. Mine, and my mom's. I recently (today) did the software udate for her phone, and ever since-she receives every message i send to my girlfriend, and every response that my girlfriend sends to me. I read up on Imessage, and checked the settings on both phones. On each phone "imessage"was turned on, so i turned Imessage off. Will this solve the problem of my mom receiving every message that i send and receive? Also, if i turn Imessage back on, on my phone-will i still have privacy to text?
Why not create a second Apple ID? Wouldn't that solve the problem much more straightforwardly?
Here's a helpful website: http://www.apple.com/support/appleid/ -
Not receiving automated messages correctly for Droid
Is there a current problem with Droid not receiving automated messages correctly from short 5 digits numbers for example my dentist office sends out reminders for my appointments and they are not sending correctly I have included an example below of what it looks like below. You will see that there no message. I have put the message below of what I should have received from my dentist. So you can understand why people are confused and calling our office back wondering when there appointment is . (Yes, I work at the office and a patient
[10] 11 (Thu). Thanks! {edited for privacy}
Sammie, Reply with "YES" to confirm your appt at 10:00AM on 3/24/11 (Thurs). Thanks! {edited for privacy}
Is this something that can be fixed. Becasue I know that majority of ourpatients have Droids has it is a very popular phone and we are getting numerous complaints!
I will be looking forwrd to a response!Well what's also weird is I'll send/receive other sms messages and there won't be any problems. But then, out of no where, my phone will get sms messages that are a few days old. I move around plenty in my area for work or other reasons so it's not like I stay in one location all the time. Also, I have Verizon and they have great coverage in my area anyway.
-
When I turn my computer on (Windows 7) I receive a message that Apple wants to make a change to the hardware. I click on yes but nothing happens. The change has something to do with Apple "push". I recently had a problem with"push" on iTunes when I tried to sync my iPod Touch. I have latest software for iTunes and iPod. Can anyone tell me what to do to get this change to install?
ptford wrote:
When I turn my computer on (Windows 7) I receive a message that Apple wants to make a change to the hardware
Since hardware cannot be changed with software, perhaps you would be so kind as to post the exact wording of the message? -
I have tried to purchase Adobe Acrobat Professional XI this morning and payment (AED 1983.53) has been taken, I received a message stating there was/is a problem processing my order and that I should contact your customer service team in UAE. Having tried this, I was met with a recorded message, in Arabic, and no options to speak to anyone. I have found this process extremely frustrating and poor on your behalf. Not providing any options to speak to an Adobe representative is equally annoying. Please get back to me ASAP, as I need to use the product immediately.
CS2 is very old and reached its "end of life" a while back. So probably won't run on modern operating systems. If you can still run it, you'll need to uninstall what you have and re-install with the download link below to activate it.
Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
Nancy O. -
I have downloaded the latest Itunes update, but it will not install and I receive a message 'apple mobile device failed to start'. I have uninstalled and reinstalled itunes but still have the same problem!
Hi there willjay3976,
You may find the troubleshooting steps in the article below helpful.
iTunes 11.1.4 for Windows: Unable to install or open
http://support.apple.com/kb/TS5376
-Griff W. -
Tried to open LR 5 in cc. Receive error message "LR 5 encountered an error when reading from its preview cache and needs to quit". How do I fix the problem?
Hi, Have a look under the "MORE LIKE THIS" on the right there should be an answer in one of those threads.
-
I am unable to install itunes 10,5. I receive this message: There is a problem with this window installer package. A program required for this install to complete could not run. Contact your support personnel or package vendor. I am using window 7 ultimate 64 bits
There is a problem with the Window installer package. A program required for this intall to complete could not be run. Contact your support personnel or package venfor.
Perhaps let's first try updating your Apple Software Update.
Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time? -
I am receiving a message when I attempt to open Microsoft Outlook on my PC. it says "MobileMe Services has encountered a problem and needs to close".
Does anyone know how I can resolve this problem?Please see this thread:
https://discussions.apple.com/message/24830816#24830816 -
My Windows XP software recently had an automatic update and now when I open iTunes, I receive the message "This copy of iTunes is corrupted or is not installed correctly. Please reinstall iTunes."
I have not used iTunes for several weeks so the issue may not be related to the last Windows XP automatic upgrade. I have never had problems with iTunes in the past. Is this a real message or perhaps a virus?
Before I reinstall iTunes, any thoughts?It's a real message.
Let's try a repair install of iTunes.
Restart the PC first.
If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair".
If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", and click "Change". Select "Repair" and click "Next" as per the following screenshot:
Can you launch your iTunes now? -
I receive error messages when I am downloading free iphone apps. I get error message 9810 and 9834. Can anyone advise how to resolve this problem? The problem doesn't exist when I'm downloading apps for which I pay.
Hi,
See Here:
http://support.apple.com/kb/TS1276
From Here:
http://support.apple.com/kb/TS1424 -
I am trying to download library books onto my Nook reader and keep receiving the message that the book isn't authorized to download. Have not downloaded a book in several months but haven't had this problem in the past. Help?
same problem for me. I am using abe edition 3 as I don't think 4 can be used with kobo. Book has been downloaded to kobo but it can't be read as it is not authorised.Help please
-
Greetings,
An integrator installed biztalk in our environment to process the hl7 message flow between their source application(s) and several receiving applications. We've had problems with this set-up for a while now because some receiving applications sometimes have
problems processing the messages. Be it either because there's problems with the server that processes the messages of a certain port or because there's problems with the software/daemon/service that needs to process these messages.
The main problem with this, is that the receiving end of this isn't under our control nor under control of the integrator, but when one receive port isn't processing their messages for a while it causes a problem with all the receive ports that are on the
same handler. So other receive ports start noticing a slow-down of their incoming messages until after a while nothing gets through anymore.
What is the best practice to prevent these kind of problems? Should we just create a handler for every receive port? Because that seems a bit overkill.
Thanks in advance.What do you mean exactly with this question?
"Can you provide some more detail like BizTalk the receiver? "
The adapters are mainly file and MLLP, the MLLP adapters are already seperated from the file adapters (a handler for MLLP and a handler for file).
The problem with all the receive ports is that when one receive port isn't processing its messages (usually caused by the software processing the messages) the other receive ports on the same handler receive their messages/files a lot slower. If for any
reason the problem isn't fixed soon, the other receive ports on the same handler actually stop receiving any messages at all.
Isolating the receive port that causes the problems like la Cour suggested can work, but next time it might be another port that experiences this issue. So we are looking for a way to make sure the whole message flow isn't hindered by one port (whichever
port) that can't process its messages. Or rather by one receiving software that can't process its messages. -
I am having problems opening videos on my MacBook Air. I keep receiving the message to download Adobe flash player. I have gone to the site an downloaded it several times. It shows it is actually downloading, but still receive the message.
Hi..
Assuming you are using Safari ...
Quit Safari.
Open System Preferences > Flash Player then select the Storage tab. Click: Delete All
Now uninstall the Flash plugin then reinstall new > Troubleshoot Flash Player | Mac OS
Make sure to uninstall the currently installed Flash plugin first.
Launch Safari From your Safari menu bar click Safari > Empty Cache
Now try a video.
BTW... if you have the ClickToFlash extension installed, that can prevent Flash based video from streaming. It can also be installed as a plugin in /Library/Internet-Plug-Ins.
And check to see if Safari is running in 32 bit mode. Right or control click the Safari icon in your Applications folder then click Get Info. If the box next to: Open in 32 bit mode is selected, deselect, quit then relaunch Safari. -
Receive short messages with J2ME
Hi,all
Could anybody give me a hand of sms programming with J2ME.
I want to receive short messages with J2ME. But i dont know how.
Thanks very much!hi,
You can send and receive sms through your network provider by using the wireless package.
try the following links.
you wil get a solution.
[send sms example 1 |http://j2me-codes.blogspot.com/2008/02/j2me-sms-sending-sms-in-j2me.html]
[send sms example 2|http://www.java-tips.org/java-me-tips/midp/sending-receiving-sms-on-j2me-device-4.html]
Ramesh
Maybe you are looking for
-
Hi all, without any obvious reason i'm suddenly getting an error in the runtime workbench at the Communication Channel Monitoring: exception caught during processing mail message; java.io.IOException: unexpected greeting response; read * BYE Connecti
-
Are we hostages paying $50/month for the rest of our lives to open our projects?
Adobe, I understand (in part) the switch to CC although I do think the $50 price point is on the high side for many people and maybe you could reintroduce suites that give us access to only products in our particular field for $20-$30. However, you h
-
It takes 1+1 starts (the last time) or 111 before and 11+1+1+11 another. But it will start up and it run well in 10.4.8 sometimes it crash (lately since the problem start never before) but other wise runs good. I have looking into your other similar
-
Folder Specified for Temporary Files is not Available
Whenever I start PS CS, I get a "The Folder Specified for Temporary Files is not Available" error message. How do I fix this? Thanks! JB
-
Ahh, the good old days when you could design your navigation bar in Photoshop with all your rollover and down images and then pop over to Image Ready and really get to work! A much simpler, and inherently easier, method of accomplishing a task!!! I