SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
krikoOffline



Joined: Apr 14, 2008
Posts: 16

Status: Offline
Posted: Apr 29, 2008 - 03:16 PM Reply with quote Back to top
Hello!

I'm trying to write a ringtone app which would play a melody to calling client. I took a look from ringtone app from and it seems to be well written, I had a similar idea (just written all in one class).

However neither mine or their app works - it just crashes.
After debugging, I stripped down my app and started to build it slowly up and found that it crashes right here:
Code:
SipServletRequest mediaServerInvite = sipFactory.createRequest(invite.getApplicationSession(), "INVITE", invite.getFrom(), sipFactory.createAddress(uriPlayToneUri));


Or more precisely the problem is with:
Code:
sipFactory.createAddress(uriPlayToneUri)


Here derivates the crash (java.lang.NullPointerException: null address)

uriPlayToneUri contains: sip:kristjanremote@10.99.8.109
which is fine, but I cannot figure out why it crashes just when creating address. Anyone had a similar problem or any kind of solution?
View user's profile Send private message
krikoOffline



Joined: Apr 14, 2008
Posts: 16

Status: Offline
Posted: Apr 29, 2008 - 03:57 PM Reply with quote Back to top
Ok, after some more research:
Code:
javax.servlet.sip.ServletParseException: kristjanremote [!at] 10.99.8.109 (replace the [!at] with a @):unexpected EOL


What EOL is missing?
View user's profile Send private message
krikoOffline



Joined: Apr 14, 2008
Posts: 16

Status: Offline
Posted: Apr 30, 2008 - 09:08 AM Reply with quote Back to top
Correction:
It was malformed url, but now it seems to crash elsewere.
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2006 VoIP User.

No part of this site may be reproduced without our prior consent.