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
Developer
Posts: 709
Registered: ‎09-10-2009
My Device: 8520, 8900, 9000, 9300, 9650, 9700, 9780, 9800, 9810, 9900, 9930
My Carrier: Verizon

Re: SIP Stack for Blackberry

paipeng,

 

There is no UDP problem relating to sending and receiving RTP packets. As for the buffering of the player, there are tricks can be used to manage the play back in real time. There are other issues which no one brought up so far. One of them is the network some times buffers the time delayed UDP packets and send all them in a very short time. However, there is no problem can't be solved. As far as the sip stack is concerned. Again, you are writing an agent app. It only requires simple sip handling and only the basic messages needed to be implemented.

 

BTW. I am coming up with a much watered down version of sip which can be written and debugged in a few days.

Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: SIP Stack for Blackberry

Aviator: "...As for the buffering of the player, there are tricks can be used to manage the play back in real time...."

 

Do you have any hints ?

 

I cannot play out a datastream without the buffer-caused delay Smiley Sad

 

How can we 'skip' the buffer ?



"Listen carefully, I shall say this only once"
Developer
Posts: 709
Registered: ‎09-10-2009
My Device: 8520, 8900, 9000, 9300, 9650, 9700, 9780, 9800, 9810, 9900, 9930
My Carrier: Verizon

Re: SIP Stack for Blackberry

How many of your devices can do duplex audio and on what network?

Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: SIP Stack for Blackberry

[ Edited ]

We have an unstable solution for Curve 8900. Doing it over WiFi.



"Listen carefully, I shall say this only once"
New Developer
Posts: 5
Registered: ‎12-17-2009
My Device: Not Specified

Re: SIP Stack for Blackberry

Hello Aviator,

 

Thanks for your comfirm.

 

It looks like the challenge is less than I thought.

 

There are already some VoIP clients for BB on the markts, so the mission is also possible.

 

Only there are so many things to be done on BB, compare the other mobile platforms, which support C/C++.

 

 

Regards,

 

Pai

 

 

New Contributor
Posts: 3
Registered: ‎02-20-2010
My Device: Black berry 8900
My Carrier: student

Re: SIP Stack for Blackberry

Hi,

 

for the creation of RTP packets, what RTP stack did you use? did you create them manually?

It seems that the MMAPI for J2ME does not include RTP fonctionalities, am i right?

 

Thanks

Developer
Posts: 709
Registered: ‎09-10-2009
My Device: 8520, 8900, 9000, 9300, 9650, 9700, 9780, 9800, 9810, 9900, 9930
My Carrier: Verizon

Re: SIP Stack for Blackberry

RTP is not complicated. Just headers. VoIP services don't rely on RTP info except for the application ID, a.k.a. stream/connection ID. Asterisk relies on not receiving RTP packets for a period of time to determine the lost of connection. Most people just make up the RTP header by hand.

New Developer
Posts: 19
Registered: ‎08-13-2009
My Device: Not Specified

Re: SIP Stack for Blackberry

[ Edited ]

True, I implemented the RTP headers by myself, are just 12 Bytes, sequence number, audio length, and source id, that is a random identifier, a piece of cake, check its RFC http://tools.ietf.org/html/rfc3550.

 

However, *cough* bb sux *cough*, I advice you to implement in another platform if you can, the Java machine in this platform seems to me weak and immature, oh and inefficient. I'd rather working heavy load apps in C for efficiency, I know a softphone isn't that heavy for a desktop, but imagine this poor little device managing udp packets incoming and outgoing every 20ms, oh, and not by its native software, but by a virtual machine over it.

 

Nokia supports VoIP eons ago, IPhone ages ago, even Android years ago, why do you think we still talking about this for bb? *cough*, oh this cold...

 

Cya, have fun Smiley Wink.

Hey Aviator, regards man.

 

note: edited typo.

Developer
Posts: 709
Registered: ‎09-10-2009
My Device: 8520, 8900, 9000, 9300, 9650, 9700, 9780, 9800, 9810, 9900, 9930
My Carrier: Verizon

Re: SIP Stack for Blackberry

The BB (85xx, 89xx, 9xxx) has no problem running VoIP under a virtual machine. I have one running except that it is not SIP.  Don't know about Nokia. One problem with iPhone is that you can run any in the background. Android is good platform and sipdroid is free. There is either something with whole VoIP concept or some thing else is wrong with these platforms. Otherwise, people would just get a data only plan as cheap VoIP providers are all over the place.

New Developer
Posts: 19
Registered: ‎08-13-2009
My Device: Not Specified

Re: SIP Stack for Blackberry

true, and let me tell you that SIP is no such problem, I implemented my own stack, I would give it to the community, but I don't know if that would be a violation to the copyright of the company I was working for.
Nokia has full support of VoIP, in several ways and flavors, afaik, you can even use VPN and other fancy stuff in addition to it. I never used IPhone VoIP, but theres a lot of banning in several countries to VoIP software in the IPhone. I think that mobile carriers are not happy at all with VoIP, its against their business model, and thats why they obviously have preferences on the hardware they sell to their users.

I implemented a sip softphone, for the 89xx, but its pretty unstable, nearly unusable, maybe its because my bad implementation, maybe its because too heavy load of both rtp and sip, but I'm pretty sure that it would have worked better somewhere else.

 

cya