Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

ByteBuffer index out of bounds on incoming call #1

Open
talentedbrute opened this issue Sep 5, 2016 · 2 comments
Open

ByteBuffer index out of bounds on incoming call #1

talentedbrute opened this issue Sep 5, 2016 · 2 comments

Comments

@talentedbrute
Copy link

I have a client and a server written with this library. When the server attempts to call the client, the client throws an ArrayIndexOutOfBoundsException in the construction of the Format object. The data coming into the Format constructor is only 2 bytes and is the FORMAT code (0x09) upon returning from the super call, there is no data left to be parsed.

My setup is a plain Asterisk server with IAX2 running.

The server does work when it calls a VoIP client such as Zoiper.

Suggestions?

TIA

@misternerd
Copy link
Owner

@adeptuscs Actually, I never used the library in server mode and it has been quite a while since I used it at all. But nontheless, you can send me a stacktrace and I can take a look if I can find the issue.
Did you add some code at all to make it work as a server?

@talentedbrute
Copy link
Author

Thanks. I'll have to get my setup back up and running again. I didn't mean a "server" sorry. I have two VoIP clients and with one I'm trying to send a WAV file as the audio so that I can receive it on my other client and save it off.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants