@@ -76,6 +76,7 @@ static function add($ext){
76
76
$ ext ->add ('dial-with-exten ' ,'_X. ' ,'' , new \ext_return ());
77
77
$ ext ->add ('dial-with-exten ' , '_X ' , '' , new \ext_dial ('${ds}${CWRING}b(func-apply-sipheaders^s^1) ' , '' ));
78
78
$ ext ->add ('dial-with-exten ' ,'_X ' ,'' , new \ext_return ());
79
+ $ ext ->add ('dial-with-exten ' , 'h ' , '' , new \ext_macro ('hangupcall ' ));
79
80
/******************************************************/
80
81
$ ext ->add ($ c ,$ s ,'' , new \ext_set ('DIALSTATUS ' , '${IF($["${DIALSTATUS_CW}"!="" ]?${DIALSTATUS_CW}:${DIALSTATUS})} ' ));
81
82
$ ext ->add ($ c ,$ s ,'' , new \ext_gosubif ('$[("${SCREEN}" != "" & ("${DIALSTATUS}" = "TORTURE" | "${DIALSTATUS}" = "DONTCALL")) | "${DIALSTATUS}" = "ANSWER"] ' , '${DIALSTATUS},1 ' ));
@@ -114,6 +115,7 @@ static function add($ext){
114
115
$ ext ->add ($ c ,$ s , 'hsdialapp ' , new \ext_gosub (1 ,'${RGFMDIAL} ' ,'dial-ext-with-exten ' ));
115
116
$ ext ->add ('dial-ext-with-exten ' , '_[+-X]. ' ,'' , new \ext_dial ('${${HuntMember}}${ds}${CWRING}b(func-apply-sipheaders^s^1) ' , '' ));
116
117
$ ext ->add ('dial-ext-with-exten ' , '_[+-X]. ' ,'' , new \ext_return ());
118
+ $ ext ->add ('dial-ext-with-exten ' , 'h ' , '' , new \ext_macro ('hangupcall ' ));
117
119
/*******************************************************************/
118
120
$ ext ->add ($ c ,$ s ,'' , new \ext_gotoif ('$["${DIALSTATUS}" = "ANSWER"] ' , 'ANSWER,1 ' ));
119
121
$ ext ->add ($ c ,$ s ,'' , new \ext_set ('HuntLoop ' , '$[1 + ${HuntLoop}] ' ));
0 commit comments