diff options
author | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-11 16:01:27 +0000 |
---|---|---|
committer | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-11 16:01:27 +0000 |
commit | c1930df5f5bed4c6be7f22af566ad617dc3e4a38 (patch) | |
tree | a74f8a519cacba962bbab03630cf7050b78285d4 /channels/chan_misdn.c | |
parent | 6f23eea0dc09e316a628accf403cf1de3f59c227 (diff) |
fixed a hold/retrieve issue.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82249 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r-- | channels/chan_misdn.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index f4faa2bab..339cec0d9 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -4687,7 +4687,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data) ret=write(ch->pipe[1], bc->bframe, bc->bframe_len); if (ret<=0) { - chan_misdn_log(-1, bc->port, "Write returned <=0 (err=%s) --> hanging up channel\n",strerror(errno)); + chan_misdn_log(0, bc->port, "Write returned <=0 (err=%s) --> hanging up channel\n",strerror(errno)); stop_bc_tones(ch); hangup_chan(ch); @@ -4754,7 +4754,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data) { struct ast_channel *hold_ast; if (!ch) { - chan_misdn_log(4, bc->port, " --> no CH, searching in holded"); + chan_misdn_log(4, bc->port, " --> no CH, searching in holded\n"); ch=find_holded_l3(cl_te, bc->l3_id,1); } @@ -4777,8 +4777,10 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data) ast_moh_stop(hold_ast); } - if ( misdn_lib_send_event(bc, EVENT_RETRIEVE_ACKNOWLEDGE) < 0) + if ( misdn_lib_send_event(bc, EVENT_RETRIEVE_ACKNOWLEDGE) < 0) { + chan_misdn_log(4, bc->port, " --> RETRIEVE_ACK failed\n"); misdn_lib_send_event(bc, EVENT_RETRIEVE_REJECT); + } } break; |