Index: chan_iax2.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v retrieving revision 1.188.2.6 diff -u -r1.188.2.6 chan_iax2.c --- chan_iax2.c 25 Nov 2004 07:24:58 -0000 1.188.2.6 +++ chan_iax2.c 3 Dec 2004 16:20:48 -0000 @@ -2709,10 +2709,10 @@ else snprintf(tmp->name, sizeof(tmp->name), "IAX2/%s/%d", i->host, i->callno); tmp->type = type; - /* We can support any format by default, until we get restricted */ + /* We cannot support any format by default, we got restricted */ tmp->nativeformats = capability; - tmp->readformat = 0; - tmp->writeformat = 0; + tmp->readformat = capability; + tmp->writeformat = capability; tmp->pvt->pvt = CALLNO_TO_PTR(i->callno); tmp->pvt->send_digit = iax2_digit; tmp->pvt->send_text = iax2_sendtext;