File tree 3 files changed +16
-0
lines changed
3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ def multi(self):
79
79
return True
80
80
elif 'will follow' in msg :
81
81
return True
82
+ elif msg == 'added interface to queue' :
83
+ return False
82
84
elif msg .startswith ('added' ) and msg .endswith ('to queue' ):
83
85
return True
84
86
elif msg .endswith ('successfully queued' ) and self ['async' ] != 'false' :
Original file line number Diff line number Diff line change
1
+ Response : Success
2
+ ActionID : action/transaction_uid/1/1
3
+ Message : Added interface to queue
4
+
5
+
Original file line number Diff line number Diff line change @@ -54,6 +54,15 @@ def test_queue_status(manager):
54
54
assert len (responses ) == 9
55
55
56
56
57
+ def test_queue_add (manager ):
58
+ manager = manager (stream = 'queue_add.yaml' )
59
+ future = manager .send_action ({'Action' : 'QueueAdd' ,
60
+ 'Queue' : 'xxxxxxxxxxxxxxxx-tous' ,
61
+ 'Interface' : 'SIP/000000' })
62
+ responses = future .result ()
63
+ assert len (responses ) == 4
64
+
65
+
57
66
def test_pjsip_show_endpoint (manager ):
58
67
manager = manager (stream = 'pjsip_show_endpoint.yaml' )
59
68
future = manager .send_action ({'Action' : 'PJSIPShowEndpoint' ,
You can’t perform that action at this time.
0 commit comments