asterisk support any kind of codec and can translate it freely

H
hlzhangxt
Tue, Apr 8, 2008 3:02 AM

Asterisk can support any kind of codec and translate them in asterisk server.

And I test with eyebeam, it works fine, and eyebeam always show the codec used is g729, no changing.

In  then function play_cb there is  comments:

/* We're risking accessing the port without holding any mutex.
* It's possible that port is disconnected then destroyed while
* we're trying to access it.
* But in the name of performance, we'll try this approach until
* someone complains when it crashes.
*/

So i think if you add some mutex, maybe it will work.

Asterisk can support any kind of codec and translate them in asterisk server. And I test with eyebeam, it works fine, and eyebeam always show the codec used is g729, no changing. In then function play_cb there is comments: /* We're risking accessing the port without holding any mutex. * It's possible that port is disconnected then destroyed while * we're trying to access it. * But in the name of performance, we'll try this approach until * someone complains when it crashes. */ So i think if you add some mutex, maybe it will work.
BP
Benny Prijono
Tue, Apr 8, 2008 8:32 AM

2008/4/8 hlzhangxt hlzhangxt@163.com:

Asterisk can support any kind of codec and translate them in asterisk
server.

And I test with eyebeam, it works fine, and eyebeam always show the codec
used is g729, no changing.

In  then function play_cb there is  comments:

/* We're risking accessing the port without holding any mutex.
* It's possible that port is disconnected then destroyed while
* we're trying to access it.
* But in the name of performance, we'll try this approach until
* someone complains when it crashes.
*/

So i think if you add some mutex, maybe it will work.

Maybe, or maybe not. The code has been like that for ages and it is
fine, as there is a certain step to follow to disconnect the port from
the sound port to avoid the race condition. Sorry I don't know what
are you trying to say here. What's the problem?

-benny

2008/4/8 hlzhangxt <hlzhangxt@163.com>: > > > > Asterisk can support any kind of codec and translate them in asterisk > server. > > And I test with eyebeam, it works fine, and eyebeam always show the codec > used is g729, no changing. > > In then function play_cb there is comments: > > /* We're risking accessing the port without holding any mutex. > * It's possible that port is disconnected then destroyed while > * we're trying to access it. > * But in the name of performance, we'll try this approach until > * someone complains when it crashes. > */ > > So i think if you add some mutex, maybe it will work. > Maybe, or maybe not. The code has been like that for ages and it is fine, as there is a certain step to follow to disconnect the port from the sound port to avoid the race condition. Sorry I don't know what are you trying to say here. What's the problem? -benny
OD
Olivier DERVYN
Tue, Apr 8, 2008 8:34 AM

Bonjour.
Je suis absent jusqu'au 11avril 2008 inclus.
Pendant cette période, merci de contacter
joseph.faure@teamlog.com si nécessaire.


Hello.
I'm on leave until April 11 included.
For this period, please contact joseph.faure@teamlog.com

Cordialement/Regards,
Olivier DERVYN

Bonjour. Je suis absent jusqu'au 11avril 2008 inclus. Pendant cette période, merci de contacter joseph.faure@teamlog.com si nécessaire. _________ Hello. I'm on leave until April 11 included. For this period, please contact joseph.faure@teamlog.com Cordialement/Regards, Olivier DERVYN