![]() |
sip stack capabilities
dear everyone,
I am trying to make a sip call over a 3G network through an asterisk server to another phone. now everyone know that the bandwidth available to mobile wireless users isn't always .. optimal .. so I would very much like to use another codec than 'alaw' or 'ulaw'. can anyone help ? more info below: I have an n900, an asterisk SIP server, and a cisco hardphone. everything works perfectly fine over wifi. the calls get set up in 'alaw' 64kbit audio streams, which my wifi can handle flawlessly. However, when calling over 3G, the audio gets choppy beyond being usable. I would therefor like to use another codec on the n900 side. according to asterisk, the n900 announces that it is capable of 'alaw', 'ulaw' and 'ilbc' .. a64kbit, 64kbit and 15kbit audioformat respectively. according to asterisk and cisco, the hardphone is capable of 'alaw', 'ulaw' and 'g729', which ar 64kbit, 64kbit and 8kbit respectively. g729 is a proprietary format, and asterisk cannot 'convert' audio into that format out of the box unless you have appropriate licenses. It can however just pass the audio along. So .. if the n900 could just send out g729, all would be well... On the other hand, the n900 can send out 'ilbc' audio .. at 15kbit .. so wouldn't it be wonderful if asterisk can convert 'ilbc' to another format? I am stumped however, to make that possible. Can anyone help ? |
Re: sip stack capabilities
i think the n900 has g729 somewhere. I am pretty sure my n810 did at least...
|
Re: sip stack capabilities
If you have control of the asterisk box, try adding disallow all and allow g729 to the extensions you wanna connect
|
Re: sip stack capabilities
I have control over the asterisk box, and allowing g729 doesn't work. I tried. Ohh, I tried ...
But .. while typing my original post above, I came to the conclusion that I tried to compile speex into before, and that didn't work, and therefore didn't even attempt installing the ilbc codec. however, after installing the ilbc codec, and restricting the n900 client to ilbc only, finally asterisk can convert between ilbc and alaw. I do wonder though, what the exact audio codec capabilites are of the sofia-sip stack on the n900. |
Re: sip stack capabilities
Quote:
Quote:
Code:
m=audio 7078 RTP/AVP 18 96 8 0 101 99 |
Re: sip stack capabilities
thanks for the info! I did a 'sip set debug on' while connecting a call, to find out the capabilities of the n900, and I didn't get speex or g729.
I do now undersatand why speex does not work (yet). However, if 2 peers or friends of asterisk can talk g729, they can interact directly without asterisk having to re-encode the audio stream. And therefore, no codec is needed. Anyway, at the moment I'm quite happy with the ilbc codec. Latency however is still an issue over 3G or 3.5G even. Sometimes the lag is almost nonexistent, sometimes it is almost 5 seconds. |
Re: sip stack capabilities
Quote:
Quote:
|
All times are GMT. The time now is 04:55. |
vBulletin® Version 3.8.8