extension, then consider the extension on the channel before falling back
to the default.
(closes issue #12479)
Reported by: darren1713
Patches:
exten_dial_fix_chan_iax2.c.patch uploaded by darren1713 (license 116)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114537
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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);