From: Richard H. <rh...@le...> - 2004-11-22 14:09:20
|
Hi, I'm new to VoIP, but I've been experimenting with iaxComm on linux. I wanted to control which codec was used without having to change my asterisk config each time, so I came up with this patch. It does two things: 1) On the display, after the remote party name, if displays the codec in use for this call.. e.g. asterisk/4567 [ULAW] 2) It adds a preference tab to enable specific codecs. This offers SPEEX, GSM, ALAW, ULAW at the moment, all enabled by default. It sets the preferred codec for a call to whichever is the first enabled one in that list. To get the codec in use, I enhanced struct iaxc_ev_call_state to include a format field. That may be a problem if changing the library interface is not allowed. If so, maybe there is some other way to get that info, or we could add a new library function to request it. Anyway, let me know what you think, (not on the list, so please cc me on replies) Thanks, Richard |