Ticket #4783 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

bug in DISA

Reported by: lamakob Assigned to:
Priority: minor Milestone: 2.9
Component: DISA Version: 2.8-branch
Keywords: 2.8.0.1 disa Cc:
Confirmation: Unreviewed Distro:
Backend Engine: Asterisk 1.8 Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description (Last modified by mickecarlsson)

At the first creation of rule DISA the station takes the call, at repeated creation of a rule in DISA if protection by the password is switched off, the station doesn't take the call. It dares addition of line Answer in a rule manually, but the line is erased after any change in FREEpbx. If to put PIN a code, the station normally takes the call

[disa]
include => disa-custom
exten => 2,1,Set(_DISA="disa,2,newcall")
exten => 2,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 2,n,Set(_KEEPCID=TRUE)
exten => 2,n,Set(_HANGUP=${TRUNK_OPTIONS}Hg)
im add this >>>>>> exten => 2,n,Answer
exten => 2,n,Set(TIMEOUT(digit)=3)
exten => 2,n,Set(TIMEOUT(response)=5)
exten => 2,n,Set(CALLERID(all)=+79164358535)
exten => 2,n,DISA(no-password,disa-dial)
exten => 2,n(end),Hangup
exten => 3,1,Authenticate(3578,)
exten => 3,n,Set(_DISA="disa,3,newcall")
exten => 3,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 3,n,Set(_KEEPCID=TRUE)
exten => 3,n,Set(_HANGUP=${TRUNK_OPTIONS}Hg)
exten => 3,n,Set(TIMEOUT(digit)=5)
exten => 3,n,Set(TIMEOUT(response)=10)
exten => 3,n,DISA(no-password,disa-dial)
exten => 3,n(end),Hangup

; end of [disa]

Change History

02/02/11 01:52:53 changed by mickecarlsson

  • description changed.

02/06/11 09:38:59 changed by lamakob

Fix

in file functions.inc.php find

                                if ($thisitem['hangup'] == 'CHECKED') {
                                        $ext->add('disa', $item['disa_id'], '', new ext_setvar('_HANGUP', '${TRUNK_OPTIONS}Hg'));
                                } else {
                                        $ext->add('disa', $item['disa_id'], '', new ext_setvar('_HANGUP', '${TRUNK_OPTIONS}'));
        }
                                        $ext->add('disa', $item['disa_id'], '', new ext_setvar('TIMEOUT(digit)', $thisitem['digittimeout']));

and add this string:

$ext->add('disa', $item['disa_id'], '', new ext_answer('')); //added by Lamakob

result:

                                if ($thisitem['hangup'] == 'CHECKED') {
                                        $ext->add('disa', $item['disa_id'], '', new ext_setvar('_HANGUP', '${TRUNK_OPTIONS}Hg'));
                                } else {
                                        $ext->add('disa', $item['disa_id'], '', new ext_setvar('_HANGUP', '${TRUNK_OPTIONS}'));
        }
                                $ext->add('disa', $item['disa_id'], '', new ext_answer('')); //Added by Lamakob
                                $ext->add('disa', $item['disa_id'], '', new ext_setvar('TIMEOUT(digit)', $thisitem['digittimeout']));

02/19/11 23:24:19 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

(In [11496]) fixes #4783 if no authenticate used (which answers the channel) then put in an answer()

02/23/11 15:28:28 changed by p_lindheimer

(In [11571]) Merged revisions 11496,11570 via svnmerge from http://www.freepbx.org/v2/svn/modules/branches/2.9

........

r11496 | p_lindheimer | 2011-02-19 20:24:18 -0800 (Sat, 19 Feb 2011) | 1 line

fixes #4783 if no authenticate used (which answers the channel) then put in an answer()

........

r11570 | p_lindheimer | 2011-02-23 12:22:32 -0800 (Wed, 23 Feb 2011) | 1 line

fixes #4859 decompose goto destination to deal with inconsistent Asterisk behavior between versions

........