TT#84599 scenarios_pbx: add more test to avoid nightly errors

* trying to reorganize the flow since nightly checks always fails

Change-Id: I58f6ea100e2a2aabd7871a72ecf6e3e26ac3af63
changes/81/41581/4
Victor Seva 6 years ago
parent 25f2e51c05
commit 76e4ef2367

@ -1,50 +1,11 @@
flow:
- start|DEFAULT_ONREPLY:
- start|REPLY_ROUTE_NAT:
- start|ROUTE_ENTRY:
- return|ROUTE_ENTRY:
- start|ROUTE_APPLY_HEADER_RULES:
- return|ROUTE_APPLY_HEADER_RULES:
- start|REPLY_SCA_UPDATE:
- return|REPLY_SCA_UPDATE:
- start|ROUTE_PREPARE_UA:
- return|ROUTE_PREPARE_UA:
- start|ROUTE_FIX_PBX_STOP_RECORDS:
- return|ROUTE_FIX_PBX_STOP_RECORDS:
- start|REPLY_ROUTE_RTPENGINE:
- return|REPLY_ROUTE_RTPENGINE:
- start|REPLY_ROUTE_NAT_CONTINUE:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- start|dialog:start:
- return|dialog:start:
- return|dialog:start:
- return|DEFAULT_ONREPLY:
sip_in:
- '^SIP/2.0 200 OK'
- 'From: <sip:testuser1003@spce.test>;tag='
- 'To: <sip:1002@spce.test>;tag='
- 'CSeq: 2 INVITE'
- 'Call-Info: <sip:spce\.test>;appearance-index=1'
- 'Contact: <sip:127.0.0.1:508[5|8];transport=udp>'
- 'Content-Type: application/sdp'
- 'Content-Length: \d+'
sip_out:
- [
'^PUBLISH sip:testuser1003@spce.test SIP/2.0',
'From: <sip:testuser1003@spce.test>',
'To: <sip:testuser1003@spce.test>',
'Event: dialog',
'Content-Type: application/dialog-info\+xml',
]
- [
'^SIP/2.0 200 OK',
'From: <sip:testuser1003@spce.test>;tag=',
'To: <sip:1002@spce.test>;tag=',
'CSeq: 2 INVITE',
'Contact: <sip:127.0.0.1:508[5|8];transport=udp>',
'Content-Type: application/sdp',
'Content-Length: \d+',
'P-COLP-Identity: \"1002\" <sip:1002@spce.test>',
'P-Out-Socket: udp:127.0.0.1:5060',
]
- 'SIP/2.0 200 OK'
- 'From: <sip:43110021003@spce.test>;tag=[\w-]+'
- 'To: <sip:1002@spce.test>;tag=[\w-]+'
- 'CSeq: \d+ CANCEL'
- 'Server: Sipwise NGCP Application'
- 'Content-Length: 0'
sip_out: []

@ -0,0 +1,29 @@
flow:
- start|DEFAULT_ONREPLY:
- start|REPLY_ROUTE_NAT:
- start|ROUTE_ENTRY:
- return|ROUTE_ENTRY:
- start|ROUTE_APPLY_HEADER_RULES:
- return|ROUTE_APPLY_HEADER_RULES:
- start|ROUTE_PREPARE_UA:
- return|ROUTE_PREPARE_UA:
- start|REPLY_ROUTE_NAT_CONTINUE:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'SIP/2.0 487 Request terminated'
- 'From: <sip:43110021003@spce.test>;tag=[\w-]+'
- 'To: <sip:1002@spce.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Server: Sipwise NGCP Application'
- 'Content-Length: 0'
sip_out:
- [
'ACK sip:testuser1002@127.1.0.3:\d+ SIP/2.0',
'From: <sip:43110021003@spce.test>;tag=[\w-]+',
'To: <sip:1002@spce.test>;tag=[\w-]+',
'CSeq: \d+ ACK',
'Content-Length: 0',
]

@ -0,0 +1,40 @@
flow:
- start|DEFAULT_ONREPLY:
- start|REPLY_ROUTE_NAT:
- start|ROUTE_ENTRY:
- return|ROUTE_ENTRY:
- start|ROUTE_APPLY_HEADER_RULES:
- return|ROUTE_APPLY_HEADER_RULES:
- start|ROUTE_PREPARE_UA:
- return|ROUTE_PREPARE_UA:
- start|REPLY_ROUTE_NAT_CONTINUE:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'SIP/2.0 180 Ringing'
- 'From: <sip:4311002@spce.test>;tag=[\w-]+'
- 'To: <sip:1010@spce.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
- 'Content-Length: 0'
sip_out:
- [
'PUBLISH sip:testuser1004@spce.test SIP/2.0',
'To: <sip:testuser1004@spce.test>',
'From: <sip:testuser1004@spce.test>;tag=[\w-]+',
'CSeq: \d+ PUBLISH',
'Content-Length:\s+\d+',
'User-Agent: Sipwise NGCP Proxy',
'Event: dialog',
'Content-Type: application/dialog\-info\+xml',
]
- [
'SIP/2.0 180 Ringing',
'From: <sip:4311002@spce.test>;tag=[\w-]+',
'To: <sip:1010@spce.test>;tag=[\w-]+',
'CSeq: \d+ INVITE',
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
'Content-Length: 0',
]

@ -143,51 +143,68 @@ flow:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'INVITE sip:testuser1003@'
- 'From: <sip:testuser1002@'
- 'To: <sip:1003@'
- 'INVITE sip:testuser1003@spce.test SIP/2.0'
- 'From: <sip:testuser1002@spce.test>;tag=[\w-]+'
- 'To: <sip:1003@spce.test>'
- 'CSeq: \d+ INVITE'
- 'Max-Forwards: 70'
- 'P-NGCP-Lookup-Type: ext'
- 'P-NGCP-Src-Ip: 127.126.0.1'
- 'P-NGCP-Src-Port: \d+'
- 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4'
- 'P-LB-Uptime: \d+'
- 'P-NGCP-Src-Nat: 0'
- 'P-Caller-CLIR: 0'
- 'P-NGCP-Orig-User: 43110021003'
- 'P-NGCP-Orig-Domain: spce.test'
- 'P-NGCP-Orig-Dialed: 1003'
- 'P-NGCP-Orig-PBX-Ext: 1003'
- 'P-First-Caller-Cloud-PBX: [% customerpbx_test.id %]'
- 'P-AA-Caller-CLIR: 0'
- 'P-NGCP-Lookup-Type: ext'
- 'P-NGCP-BlockOut-Override: 0'
- 'P-NGCP-AdmBlockOut-Override: 0'
- 'P-NGCP-ContBlockOut-Override: 0'
- 'P-NGCP-ContAdmBlockOut-Override: 0'
- 'P-Caller-CLIR: 0'
- 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]'
- 'P-Callee-UUID: [% spce_test.testuser1003.uuid %]'
- 'P-NGCP-Caller-Info: <sip:testuser1002@'
- 'P-NGCP-Callee-Info: <sip:43110021003@spce.test>;ip=127.0.0.1;port=508[5|8];'
- 'P-NGCP-Acc-Src-Leg: .+'
- 'P-NGCP-Acc-Dst-Leg: .+'
- 'P-NGCP-Sems-Instance: pbx'
- 'P-Proxy-Uri: 127.0.0.1:5062'
- 'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002'
- 'P-NGCP-Callee-Info: <sip:43110021003@spce.test>;ip=127.0.0.1;port=508[58];primary=43110021003'
- 'P-To-Device: 1'
- 'Content-Type: application/sdp'
- 'Contact: <sip:127.0.0.1:508[5|8];transport=udp>'
- 'Content-Length:\s+\d+'
- 'Contact: <sip:127.0.0.1:508[58];transport=udp>'
sip_out:
- [
'SIP/2.0 100 Trying',
'Via: SIP/2.0/UDP 127.0.0.1:508[5|8];branch=',
'From: <sip:testuser1002@',
'To: <sip:1003@',
'From: <sip:testuser1002@spce.test>;tag=[\w-]+',
'To: <sip:1003@spce.test>',
'CSeq: \d+ INVITE',
'Content-Length: 0'
]
'Server: Sipwise NGCP Proxy',
'Content-Length: 0',
]
- [
'INVITE sip:127.3.0.5:',
'From: <sip:4311002@',
'To: <sip:1003@',
'CSeq: \d+ INVITE',
'Max-Forwards: 69',
'Content-Type: application/sdp',
'Contact: <sip:127.0.0.1:508[5|8];transport=udp>',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
'P-Callee-UUID: [% spce_test.testuser1003.uuid %]',
'P-Asserted-Identity: <sip:4311002@',
'P-Called-Party-ID: <sip:1003@',
'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no;hold_alter_b2b_bleg=no;hold_alter_b2b_aleg=no;fast_ack=no',
'P-App-Name: sbc',
'P-NGCP-Caller-Info: <sip:testuser1002@.+;primary=4311002',
'P-NGCP-Callee-Info: <sip:43110021003@.+;primary=43110021003',
'P-D-Uri: sip:lb@127.0.0.1:5060;lr;socket=sip:127.3.0.1:5074'
'INVITE sip:127.3.0.5:\d+;transport=tcp SIP/2.0',
'From: <sip:4311002@spce.test>;tag=[\w-]+',
'To: <sip:1003@spce.test>',
'CSeq: \d+ INVITE',
'P-LB-Uptime: \d+',
'P-NGCP-Orig-PBX-Ext: 1003',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
'P-Callee-UUID: [% spce_test.testuser1003.uuid %]',
'P-NGCP-Acc-Src-Leg: .+',
'P-NGCP-Acc-Dst-Leg: .+',
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002',
'P-NGCP-Callee-Info: <sip:43110021003@spce.test>;ip=127.0.0.1;port=5060;primary=43110021003',
'Content-Type: application/sdp',
'Content-Length:\s+\d+',
'Contact: <sip:127.0.0.1:508[58];transport=udp>',
'P-Asserted-Identity: <sip:4311002@spce.test>',
'P-Called-Party-ID: <sip:1003@spce.test>',
'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no;hold_alter_b2b_bleg=no;hold_alter_b2b_aleg=no;fast_ack=no',
'P-App-Name: sbc',
'P-D-Uri: sip:lb@127.0.0.1:5060;lr;socket=tcp:127.3.0.1:5074',
]

@ -0,0 +1,22 @@
flow:
- start|DEFAULT_ONREPLY:
- start|REPLY_ROUTE_NAT:
- start|ROUTE_ENTRY:
- return|ROUTE_ENTRY:
- start|ROUTE_APPLY_HEADER_RULES:
- return|ROUTE_APPLY_HEADER_RULES:
- start|ROUTE_PREPARE_UA:
- return|ROUTE_PREPARE_UA:
- start|REPLY_ROUTE_NAT_CONTINUE:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'SIP/2.0 100 Trying'
- 'From: <sip:testuser1002@spce.test>;tag=[\w-]+'
- 'To: <sip:1003@spce.test>'
- 'CSeq: \d+ INVITE'
- 'Server: Sipwise NGCP PBX'
- 'Content-Length: 0'
sip_out: []

@ -0,0 +1,22 @@
flow:
- start|DEFAULT_ONREPLY:
- start|REPLY_ROUTE_NAT:
- start|ROUTE_ENTRY:
- return|ROUTE_ENTRY:
- start|ROUTE_APPLY_HEADER_RULES:
- return|ROUTE_APPLY_HEADER_RULES:
- start|ROUTE_PREPARE_UA:
- return|ROUTE_PREPARE_UA:
- start|REPLY_ROUTE_NAT_CONTINUE:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'SIP/2.0 100 Trying'
- 'From: <sip:4311002@spce.test>;tag=[\w-]+'
- 'To: <sip:1003@spce.test>'
- 'CSeq: \d+ INVITE'
- 'Server: Sipwise NGCP Application'
- 'Content-Length: 0'
sip_out: []

@ -1,39 +0,0 @@
flow:
- start|DEFAULT_ONREPLY:
- start|REPLY_ROUTE_NAT:
- start|ROUTE_ENTRY:
- return|ROUTE_ENTRY:
- start|ROUTE_APPLY_HEADER_RULES:
- return|ROUTE_APPLY_HEADER_RULES:
- start|ROUTE_PREPARE_UA:
- return|ROUTE_PREPARE_UA:
- start|REPLY_ROUTE_RTPENGINE:
- return|REPLY_ROUTE_RTPENGINE:
- start|REPLY_ROUTE_NAT_CONTINUE:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- start|dialog:start:
- return|dialog:start:
- return|dialog:start:
sip_in:
- '^SIP/2.0 200 OK'
- 'From: <sip:4311002@'
- 'To: sip:testuser1003@'
- 'CSeq: \d+ INVITE'
- 'Content-Type: application/sdp'
sip_out:
- [
'PUBLISH sip:testuser1003@',
'To: <sip:testuser1003@',
'From: <sip:testuser1003@',
'CSeq: \d+ PUBLISH',
'Event: dialog',
'Content-Type: application/dialog-info\+xml',
]
- [
'^SIP/2.0 200 OK',
'CSeq: \d+ INVITE',
'From: <sip:4311002@',
'To: sip:testuser1003@'
]

@ -0,0 +1,45 @@
flow:
- start|DEFAULT_ONREPLY:
- start|REPLY_ROUTE_NAT:
- start|ROUTE_ENTRY:
- return|ROUTE_ENTRY:
- start|ROUTE_APPLY_HEADER_RULES:
- return|ROUTE_APPLY_HEADER_RULES:
- start|REPLY_SCA_UPDATE:
- return|REPLY_SCA_UPDATE:
- start|ROUTE_PREPARE_UA:
- return|ROUTE_PREPARE_UA:
- start|REPLY_ROUTE_NAT_CONTINUE:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'SIP/2.0 180 Ringing'
- 'From: <sip:testuser1002@spce.test>;tag=[\w-]+'
- 'To: <sip:1003@spce.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Contact: <sip:127.0.0.1:508[58];transport=udp>'
- 'Content-Length: 0'
sip_out:
- [
'PUBLISH sip:testuser1002@spce.test SIP/2.0',
'To: <sip:testuser1002@spce.test>',
'From: <sip:testuser1002@spce.test>;tag=[\w-]+',
'CSeq: \d+ PUBLISH',
'Content-Length:\s+\d+',
'User-Agent: Sipwise NGCP Proxy',
'Event: dialog',
'SIP-If-Match: .+',
'Content-Type: application/dialog\-info\+xml',
]
- [
'SIP/2.0 180 Ringing',
'From: <sip:testuser1002@spce.test>;tag=[\w-]+',
'To: <sip:1003@spce.test>;tag=[\w-]+',
'CSeq: \d+ INVITE',
'Contact: <sip:127.0.0.1:508[58];transport=udp>',
'Content-Length: 0',
'P-COLP-Identity: "1003" <sip:1003@spce.test>',
'P-Out-Socket: udp:127.0.0.1:5060',
]

@ -0,0 +1,47 @@
flow:
- start|DEFAULT_ONREPLY:
- start|REPLY_ROUTE_NAT:
- start|ROUTE_ENTRY:
- return|ROUTE_ENTRY:
- start|ROUTE_APPLY_HEADER_RULES:
- return|ROUTE_APPLY_HEADER_RULES:
- start|ROUTE_PREPARE_UA:
- return|ROUTE_PREPARE_UA:
- start|REPLY_ROUTE_RTPENGINE:
- return|REPLY_ROUTE_RTPENGINE:
- start|REPLY_ROUTE_NAT_CONTINUE:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- start|dialog:start:
- return|dialog:start:
- return|dialog:start:
sip_in:
- 'SIP/2.0 200 OK'
- 'From: <sip:4311002@spce.test>;tag=[\w-]+'
- 'To: sip:testuser1003@spce.test;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
sip_out:
- [
'PUBLISH sip:testuser1003@spce.test SIP/2.0',
'To: <sip:testuser1003@spce.test>',
'From: <sip:testuser1003@spce.test>;tag=[\w-]+',
'CSeq: \d+ PUBLISH',
'Content-Length:\s+\d+',
'User-Agent: Sipwise NGCP Proxy',
'Event: dialog',
'SIP-If-Match: .+',
'Content-Type: application/dialog\-info\+xml',
]
- [
'SIP/2.0 200 OK',
'From: <sip:4311002@spce.test>;tag=[\w-]+',
'To: sip:testuser1003@spce.test;tag=[\w-]+',
'CSeq: \d+ INVITE',
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
'Content-Type: application/sdp',
'Content-Length:\s+\d+',
]
Loading…
Cancel
Save