Fix the flash/*0 when incoming call comes on FXO -> FXS
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1044 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
1af98a0812
commit
f3d0fe862d
|
@ -2884,8 +2884,9 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
|
|||
case SIG_SF_FEATDMF:
|
||||
case SIG_SF_FEATB:
|
||||
/* FGD MF *Must* wait for wink */
|
||||
res = ioctl(p->subs[SUB_REAL].zfd, ZT_DIAL, &p->dop);
|
||||
if (res < 0) {
|
||||
if (strlen(p->dop.dialstr)) {
|
||||
res = ioctl(p->subs[SUB_REAL].zfd, ZT_DIAL, &p->dop);
|
||||
else if (res < 0) {
|
||||
ast_log(LOG_WARNING, "Unable to initiate dialing on trunk channel %d\n", p->channel);
|
||||
p->dop.dialstr[0] = '\0';
|
||||
return NULL;
|
||||
|
|
Reference in New Issue