diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-04-25 20:51:58 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-04-25 20:51:58 +0000 |
commit | af39a4374e411f70bcd164275f1339654d513805 (patch) | |
tree | 0c79f726be8cff8ad7776ac47674c3aeb5af6f09 /channels/sig_pri.c | |
parent | d2ac624b877d3a4f9c47dfa85dba58f791582565 (diff) |
Make DAHDISendCallreroutingFacility wait 5 seconds for a reply before disconnecting the call.
Some switches may not handle the call-deflection/call-rerouting message if
the call is disconnected too soon after being sent. Asteisk was not
waiting for any reply before disconnecting the call.
* Added a 5 second delay before disconnecting the call to wait for a
potential response if the peer does not disconnect first.
(closes issue ASTERISK-19708)
Reported by: mehdi Shirazi
Patches:
jira_asterisk_19708_v1.8.patch (license #5621) patch uploaded by rmudgett
Tested by: rmudgett
........
Merged revisions 363730 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 363734 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@363740 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sig_pri.c')
-rw-r--r-- | channels/sig_pri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/sig_pri.c b/channels/sig_pri.c index 28bb6712f..e94f08ef5 100644 --- a/channels/sig_pri.c +++ b/channels/sig_pri.c @@ -9048,7 +9048,7 @@ int pri_send_keypad_facility_exec(struct sig_pri_chan *p, const char *digits) int pri_send_callrerouting_facility_exec(struct sig_pri_chan *p, enum ast_channel_state chanstate, const char *destination, const char *original, const char *reason) { - int res = -1; + int res; sig_pri_lock_private(p); |