Index: chan_iax2.c =================================================================== --- chan_iax2.c (revision 103738) +++ chan_iax2.c (working copy) @@ -3112,8 +3150,12 @@ return -1; } - if (!pds.exten) - pds.exten = defaultrdest; + if (!pds.exten) { + if (!ast_strlen_zero(c->exten)) + pds.exten = c->exten; + else + pds.exten = defaultrdest; + } if (create_addr(pds.peer, c, &sin, &cai)) { ast_log(LOG_WARNING, "No address associated with '%s'\n", pds.peer);