@@ -17,19 +17,34 @@ public function __construct($to, $from = null)
1717 parent ::__construct ("Dial " , $ attrib );
1818 }
1919
20- public function onAnswer ($ tag , $ attribs = [])
20+ public function onAnswer ($ tag , $ attribs = [], $ isSequential = false )
2121 {
22- return $ this ->setAttribute ('onanswer ' , $ this ->append ($ tag , $ attribs ), true );
22+ if ($ isSequential ){
23+ $ this ->attributes ['onanswer ' ] = array_merge ($ this ->attributes ['onanswer ' ], array ($ this ->append ($ tag , $ attribs )) );
24+ return $ this ->attributes ;
25+ }else {
26+ return $ this ->setAttribute ('onanswer ' , array ($ this ->append ($ tag , $ attribs )), true );
27+ }
2328 }
2429
25- public function onNoAnswer ($ tag , $ attribs = [])
30+ public function onNoAnswer ($ tag , $ attribs = [], $ isSequential = false )
2631 {
27- return $ this ->setAttribute ('onnoanswer ' , $ this ->append ($ tag , $ attribs ), true );
32+ if ($ isSequential ){
33+ $ this ->attributes ['onnoanswer ' ] = array_merge ($ this ->attributes ['onnoanswer ' ], array ($ this ->append ($ tag , $ attribs )) );
34+ return $ this ->attributes ;
35+ }else {
36+ return $ this ->setAttribute ('onnoanswer ' , array ($ this ->append ($ tag , $ attribs )), true );
37+ }
2838 }
2939
30- public function noAnswer ($ tag , $ attribs = [])
40+ public function noAnswer ($ tag , $ attribs = [], $ isSequential = false )
3141 {
32- return $ this ->setAttribute ('onnoanswer ' , $ this ->append ($ tag , $ attribs ), true );
42+ if ($ isSequential ){
43+ $ this ->attributes ['onnoanswer ' ] = array_merge ($ this ->attributes ['onnoanswer ' ], array ($ this ->append ($ tag , $ attribs )) );
44+ return $ this ->attributes ;
45+ }else {
46+ return $ this ->setAttribute ('onnoanswer ' , array ($ this ->append ($ tag , $ attribs )), true );
47+ }
3348 }
3449
3550 public function getDefaultAttributes ()
0 commit comments