Hi, I just ran into a situation where I had playback and recording audio device with different IDs, but with the same string in the name. When I set my application to use this device for both recording and playback, using pjmedia_aud_dev_lookup() only returned the first match, meaning that the returned device was inappropriate for either recording or playback. I resolved it by manually iterating through all the audio devices and checking the input_count or output_count. However, you guys may want to consider adding a flag to pjmedia_aud_dev_lookup() to specify if we are looking for a recording or playback device. For the record, this problem occurred on OS-X. Ruud Klaver AG Projects