14

I have been looking for some framework for an android device that enables the reInvite method over the SIP protocol. My utter goal is to be able to switch codecs while in call. I have tried to do so with some existing libraries but i have come to a dead-end. I have tried to use SipDroid which has a set_codec() method but I haven't managed to find any decent documentation about that. I have also tried with the native android.net.sip library but I didn't seem to find out how to change them there either... Does anyone have any advice on such a library that supports reInvite in the way I have described, or any tips on using the libraries I have mentioned? Thank you in advance...

ps : I have tried using mobicents and asterisk as servers..

jaivalis
  • 488
  • 4
  • 19
  • 1
    As far as I know SipDroid use JAIN-SIP library. So you may try to go thru JAIN-SIP document which is easily available. After identified with JAIN-SIP you can trace method in SipDroid. – Divyang Mithaiwala Feb 27 '12 at 07:52
  • what is you meaning of 'switch codecs while in call' do you mean you can switch the codec when you are talking with somebody in a call? – Jammy Lee Mar 01 '12 at 08:23
  • 1
    Yes, via the reInvite method. – jaivalis Mar 01 '12 at 09:37
  • Is android.net.sip class have the posibility to change codeck? How to change codeck from g711 to some other??? Does anybody knows? Thanks... – Jovan Mar 14 '12 at 11:24
  • I is an old question but anyway SioDroid uses MjSip. Not JAIN – B770 Jul 05 '13 at 12:19

3 Answers3

2

If you Google you will find several free SIP stacks for Android, most of them are based on "C++\C" code - examples pjsip and linphone.

Perception
  • 79,279
  • 19
  • 185
  • 195
rbd
  • 187
  • 2
  • 10
0

I know that IntegrIT CrystalVu SDK http://www.integrit.com/ supports codecs switching "on the fly" for encoder and decoder. Also it includes special module of blind codec type detection based on incoming RTP stream analysis.

Dspman
  • 1
0

I don't know of any free solution, but there is at least one commercial sip framework for android that allow switching codecs.

In theory, you could also

Hank Karl
  • 286
  • 2
  • 2
  • 1
    Thank you Hank Karl, I'm afraid that theory does not always cut the mustard. We seem to be here in a territory that is neither stable nor perfectly documented... – Costis Aivalis Mar 05 '12 at 11:42