TT#4856 scenarios_pbx: add counters info

* update flow with ROUTE_SCA_UPDATE
* sems-pbx CSeq is random, use regex

Change-Id: I384852f18991380e78012a2f2a9f97920ebb6825
changes/51/9451/1
Victor Seva 10 years ago
parent ea2ff64b4c
commit 3ed5d82776

@ -47,6 +47,11 @@ flow:
- return|ROUTE_LOAD_CALLEE_CONTRACT_PREF:
- start|ROUTE_SET_CALLEE_DIALOG:
- return|ROUTE_SET_CALLEE_DIALOG:
$avp(lua_dlg_profile): [
"totalaccount:[% customerpbx_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"total"
]
- start|ROUTE_BLOCK_IN:
- return|ROUTE_BLOCK_IN:
- start|ROUTE_ORDER_CF_MAP_ID:
@ -68,10 +73,21 @@ flow:
- start|ROUTE_OUTBOUND:
- start|ROUTE_SET_CALLER_DIALOG:
- return|ROUTE_SET_CALLER_DIALOG:
$avp(lua_dlg_profile): [
"totalaccountout:[% customerpbx_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totalaccount:[% customerpbx_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totalaccount:[% customerpbx_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"total"
]
- start|ROUTE_ACC_CALLER:
- return|ROUTE_ACC_CALLER:
- start|ROUTE_ACC_CALLEE:
- return|ROUTE_ACC_CALLEE:
- start|ROUTE_SCA_UPDATE:
- return|ROUTE_SCA_UPDATE:
- start|BRANCH_ROUTE_NO_SBC:
- start|ROUTE_BRANCH_ACC_RTP:
- return|ROUTE_BRANCH_ACC_RTP:
@ -88,7 +104,15 @@ flow:
- return|BRANCH_ROUTE_NO_SBC:
- return|BRANCH_ROUTE_NO_SBC:
- exit|ROUTE_OUTBOUND:
$avp(lua_dlg_profile): [
"totalaccountout:[% customerpbx_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totalaccount:[% customerpbx_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totalaccount:[% customerpbx_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"total"
]
sip_in:
- '^INVITE sip:1003'
- 'Contact: sip:testuser1002@'
@ -108,7 +132,7 @@ sip_out:
'CSeq: 2 INVITE',
'From: <sip:testuser1002@',
'To: <sip:1003@',
'P-Caller-UUID: \w+',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
'P-NGCP-Caller-Info: <sip:testuser1002@'
]
- [
@ -117,8 +141,8 @@ sip_out:
'From: <sip:testuser1002@',
'To: <sip:testuser1003@',
'Content-Type: application/sdp',
'P-Caller-UUID: \w+',
'P-Callee-UUID: \w+',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
'P-Callee-UUID: [% spce_test.testuser1003.uuid %]',
'P-NGCP-Lookup-Ext: 1003',
'P-NGCP-Orig-User: 43110021003',
'P-NGCP-Orig-Dialed: 1003',

@ -1,5 +1,14 @@
flow:
- start|REPLY_ROUTE_NAT:
$avp(lua_dlg_profile): [
"totalaccountout:[% customerpbx_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totalaccount:[% customerpbx_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totalaccount:[% customerpbx_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"total"
]
- exit|REPLY_ROUTE_NAT:
sip_in:
- 'SIP/2.0 100 Trying'

@ -36,6 +36,9 @@ flow:
- return|ROUTE_LOAD_CALLEE_CONTRACT_PREF:
- start|ROUTE_SET_CALLEE_DIALOG:
- return|ROUTE_SET_CALLEE_DIALOG:
$avp(lua_dlg_profile): [
"total"
]
- start|ROUTE_BLOCK_IN:
- return|ROUTE_BLOCK_IN:
- start|ROUTE_ORDER_CF_MAP_ID:
@ -45,6 +48,10 @@ flow:
- return|ROUTE_CHECK_PBX:
- start|ROUTE_INVITE_TO_INT:
- start|ROUTE_OUTBOUND:
$avp(lua_dlg_profile): [
"local",
"total"
]
- start|ROUTE_SET_CALLER_DIALOG:
- return|ROUTE_SET_CALLER_DIALOG:
- start|BRANCH_ROUTE_SBC:
@ -81,11 +88,15 @@ flow:
- return|BRANCH_ROUTE_SBC:
- return|BRANCH_ROUTE_SBC:
- exit|ROUTE_OUTBOUND:
$avp(lua_dlg_profile): [
"local",
"total"
]
sip_in:
- 'INVITE sip:testuser1003@'
- 'From: <sip:testuser1002@'
- 'To: <sip:testuser1003@'
- 'CSeq: 10 INVITE'
- 'CSeq: \d+ INVITE'
- 'Max-Forwards: 70'
- 'P-NGCP-Lookup-Ext: 1003'
- 'P-NGCP-Orig-User: 43110021003'
@ -96,8 +107,8 @@ sip_in:
- 'P-NGCP-ContBlockOut-Override: 0'
- 'P-NGCP-ContAdmBlockOut-Override: 0'
- 'P-Caller-CLIR: 0'
- 'P-Caller-UUID: \w+'
- 'P-Callee-UUID: \w+'
- '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=5085;'
- 'P-To-Device: 1'
@ -109,21 +120,21 @@ sip_out:
'Via: SIP/2.0/UDP 127.0.0.1:5085;branch=',
'From: <sip:testuser1002@',
'To: <sip:testuser1003@',
'CSeq: 10 INVITE',
'CSeq: \d+ INVITE',
'Content-Length: 0'
]
- [
'INVITE sip:testuser1003@',
'From: <sip:4311002@',
'To: <sip:testuser1003@',
'CSeq: 10 INVITE',
'CSeq: \d+ INVITE',
'Max-Forwards: 69',
'P-NGCP-Lookup-Ext: 1003',
'Content-Type: application/sdp',
'Contact: <sip:127.0.0.1:5085;transport=udp>',
'Call-Info: <sip:spce.test>;appearance-index=1',
'P-Caller-UUID: \w+',
'P-Callee-UUID: \w+',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
'P-Callee-UUID: [% spce_test.testuser1003.uuid %]',
'P-Asserted-Identity: <sip:4311002@',
'P-Called-Party-ID: <sip:testuser1003@',
'P-App-Param: ;aleg_sst_enable=no;sst_enable=no',

@ -1,11 +1,15 @@
flow:
- start|REPLY_ROUTE_NAT:
$avp(lua_dlg_profile): [
"local",
"total"
]
- exit|REPLY_ROUTE_NAT:
sip_in:
- '^SIP/2.0 180 Ringing'
- 'CSeq: 10 INVITE'
- 'CSeq: \d+ INVITE'
sip_out:
- [
'^SIP/2.0 180 Ringing',
'CSeq: 10 INVITE',
'CSeq: \d+ INVITE',
]

@ -1,5 +1,14 @@
flow:
- start|REPLY_ROUTE_NAT:
$avp(lua_dlg_profile): [
"totalaccountout:[% customerpbx_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totalaccount:[% customerpbx_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totalaccount:[% customerpbx_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"total"
]
- exit|REPLY_ROUTE_NAT:
sip_in:
- '^SIP/2.0 180 Ringing'

@ -2,15 +2,18 @@ flow:
- start|REPLY_ROUTE_NAT:
- 'start|dialog:start':
- 'return|dialog:start':
# branch ??
$avp(lua_dlg_profile): [
"local",
"total"
]
- 'return|dialog:start':
sip_in:
- '^SIP/2.0 200 OK'
- 'CSeq: 10 INVITE'
- 'CSeq: \d+ INVITE'
sip_out:
- [
'^SIP/2.0 200 OK',
'CSeq: 10 INVITE',
'CSeq: \d+ INVITE',
'From: <sip:testuser1002@',
'To: <sip:testuser1003@'
]

@ -2,7 +2,15 @@ flow:
- start|REPLY_ROUTE_NAT:
- 'start|dialog:start':
- 'return|dialog:start':
# branch ??
$avp(lua_dlg_profile): [
"totalaccountout:[% customerpbx_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totalaccount:[% customerpbx_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totalaccount:[% customerpbx_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"total"
]
- 'return|dialog:start':
sip_in:
- '^SIP/2.0 200 OK'

@ -9,13 +9,13 @@ flow:
- return|ROUTE_OUTBOUND:
sip_in:
- '^ACK sip:testuser1003@127.0.0.1:5080(;prxroute=1)? SIP/2.0'
- 'CSeq: 10 ACK'
- 'CSeq: \d+ ACK'
- 'From: <sip:testuser1002@'
- 'To: <sip:testuser1003@'
sip_out:
- [
'^ACK sip:testuser1003@127.0.0.1:5080(;prxroute=1)? SIP/2.0',
'CSeq: 10 ACK',
'CSeq: \d+ ACK',
'From: <sip:4311002@',
'To: <sip:testuser1003@'
]

@ -7,11 +7,14 @@ flow:
- return|ROUTE_INITVARS:
- 'start|dialog:end':
- 'return|dialog:end':
$avp(lua_dlg_profile): None
- 'return|dialog:end':
- start|ROUTE_STOP_RTPPROXY:
- start|ROUTE_RESTORE_CLUSTERSET:
- return|ROUTE_RESTORE_CLUSTERSET:
- return|ROUTE_STOP_RTPPROXY:
- start|ROUTE_SCA_UPDATE:
- return|ROUTE_SCA_UPDATE:
- start|ROUTE_OUTBOUND:
- exit|ROUTE_OUTBOUND:
sip_in:

@ -7,6 +7,7 @@ flow:
- return|ROUTE_INITVARS:
- 'start|dialog:end':
- 'return|dialog:end':
$avp(lua_dlg_profile): None
- 'return|dialog:end':
- start|ROUTE_STOP_RTPPROXY:
- start|ROUTE_RESTORE_CLUSTERSET:
@ -16,7 +17,7 @@ flow:
- exit|ROUTE_OUTBOUND:
sip_in:
- '^BYE sip:testuser1003@127.0.0.1:5080(;prxroute=1)? SIP/2.0'
- 'CSeq: 11 BYE'
- 'CSeq: \d+ BYE'
- 'Max-Forwards: 70'
- 'Content-Length: 0'
- 'From: <sip:testuser1002@'
@ -26,14 +27,14 @@ sip_in:
sip_out:
- [
'^SIP/2.0 100 Trying',
'CSeq: 11 BYE',
'CSeq: \d+ BYE',
'Content-Length: 0',
'From: <sip:testuser1002@',
'To: <sip:testuser1003@'
]
- [
'^BYE sip:testuser1003@127.0.0.1:5080(;prxroute=1)? SIP/2.0',
'CSeq: 11 BYE',
'CSeq: \d+ BYE',
'Max-Forwards: 69',
'Content-Length: 0',
'From: <sip:4311002@',

@ -3,14 +3,14 @@ flow:
- exit|REPLY_ROUTE_NAT:
sip_in:
- '^SIP/2.0 200 OK'
- 'CSeq: 11 BYE'
- 'CSeq: \d+ BYE'
- 'Content-Length: 0'
- 'From: <sip:4311002@'
- 'To: <sip:testuser1003@'
sip_out:
- [
'^SIP/2.0 200 OK',
'CSeq: 11 BYE',
'CSeq: \d+ BYE',
'Content-Length: 0',
'From: <sip:testuser1002@',
'To: <sip:testuser1003@'

Loading…
Cancel
Save