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?