Adding some delay on responders to fix the SIP flow Change-Id: I6be71348baf257ea107d3bd53010e7cceb8fe2f6mr9.1.1
parent
8c78ded4bf
commit
173a45d16d
@ -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_NAT_CONTINUE:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- '^SIP/2.0 180 Ringing'
|
||||
- 'From: <sip:43110021003@spce.test>;tag='
|
||||
- 'To: <sip:1002@spce.test>;tag='
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Call-Info: <sip:spce\.test>;appearance-index=1'
|
||||
- 'Contact: <sip:127.0.0.1:5080;transport=udp>'
|
||||
- 'Content-Length: 0'
|
||||
sip_out:
|
||||
- [
|
||||
'^PUBLISH sip:testuser1002@spce.test SIP/2.0',
|
||||
'From: <sip:testuser1002@spce.test>',
|
||||
'To: <sip:testuser1002@spce.test>',
|
||||
'Event: dialog',
|
||||
'Content-Type: application/dialog-info\+xml',
|
||||
]
|
||||
- [
|
||||
'^SIP/2.0 180 Ringing',
|
||||
'From: <sip:testuser1003@spce.test>;tag=',
|
||||
'To: <sip:1002@spce.test>;tag=',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Call-Info: <sip:spce.test>;appearance-index=1',
|
||||
'Contact: <sip:127.0.0.1:5080;transport=udp>',
|
||||
'Content-Length: 0',
|
||||
]
|
||||
@ -1,39 +1,50 @@
|
||||
flow:
|
||||
- start|DEFAULT_ONREPLY:
|
||||
- start|REPLY_ROUTE_NAT:
|
||||
- start|DEFAULT_ROUTE:
|
||||
- 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_LEG_B:
|
||||
- start|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- '^SIP/2.0 180 Ringing'
|
||||
- 'From: <sip:43110021003@spce.test>;tag='
|
||||
- 'To: <sip:1002@spce.test>;tag='
|
||||
- 'INVITE sip:testuser1002@127.1.0.4:\d+ SIP/2.0'
|
||||
- 'From: <sip:43110021003@spce.test>;tag=[\w-]+'
|
||||
- 'To: <sip:testuser1002@spce.test>'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Call-Info: <sip:spce\.test>;appearance-index=1'
|
||||
- 'Contact: <sip:127.0.0.1:5080;transport=udp>'
|
||||
- 'Content-Length: 0'
|
||||
- 'P-LB-Uptime: \d+'
|
||||
- 'P-Caller-UUID: [% spce_test.testuser1003.uuid %]'
|
||||
- 'P-NGCP-Caller-Info: <sip:testuser1003@spce.test>;ip=127.126.0.3;port=\d+;primary=43110021003'
|
||||
- 'P-NGCP-Callee-Info: <sip:4311002@spce.test>;ip=127.0.0.1;port=5060;primary=4311002'
|
||||
- 'P-Asserted-Identity: <sip:43110021003@spce.test>'
|
||||
- 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Content-Length:\s+\d+'
|
||||
- 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
|
||||
sip_out:
|
||||
- [
|
||||
'^PUBLISH sip:testuser1002@spce.test SIP/2.0',
|
||||
'From: <sip:testuser1002@spce.test>',
|
||||
'SIP/2.0 100 Trying',
|
||||
'From: <sip:43110021003@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:testuser1002@spce.test>',
|
||||
'Event: dialog',
|
||||
'Content-Type: application/dialog-info\+xml',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Server: Sipwise NGCP Proxy',
|
||||
'Content-Length: 0',
|
||||
]
|
||||
- [
|
||||
'^SIP/2.0 180 Ringing',
|
||||
'From: <sip:testuser1003@spce.test>;tag=',
|
||||
'To: <sip:1002@spce.test>;tag=',
|
||||
'INVITE sip:testuser1002@127.1.0.4:\d+ SIP/2.0',
|
||||
'From: <sip:43110021003@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:testuser1002@spce.test>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Call-Info: <sip:spce\.test>;appearance-index=1',
|
||||
'Contact: <sip:127.0.0.1:5080;transport=udp>',
|
||||
'Content-Length: 0',
|
||||
'P-LB-Uptime: \d+',
|
||||
'P-Caller-UUID: [% spce_test.testuser1003.uuid %]',
|
||||
'P-NGCP-Caller-Info: <sip:testuser1003@spce.test>;ip=127.126.0.3;port=\d+;primary=43110021003',
|
||||
'P-NGCP-Callee-Info: <sip:4311002@spce.test>;ip=127.0.0.1;port=5060;primary=4311002',
|
||||
'P-Asserted-Identity: <sip:43110021003@spce.test>',
|
||||
'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060',
|
||||
'Content-Type: application/sdp',
|
||||
'Content-Length:\s+\d+',
|
||||
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
|
||||
]
|
||||
|
||||
@ -0,0 +1,33 @@
|
||||
flow:
|
||||
- start|DEFAULT_ONREPLY:
|
||||
- return|DEFAULT_ONREPLY:
|
||||
sip_in:
|
||||
- 'SIP/2.0 180 Ringing'
|
||||
- 'From: <sip:43110021003@spce.test>;tag=[\w-]+'
|
||||
- 'To: <sip:testuser1002@spce.test>;tag=[\w-]+'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Allow: INVITE, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE'
|
||||
- 'Call-Info: <sip:spce.test>;appearance-index=1'
|
||||
- 'Allow-Events: talk,hold,conference,refer,check-sync'
|
||||
- 'Contact: <sip:127.1.0.3:\d+;transport=UDP>'
|
||||
- 'Content-Length: 0'
|
||||
- 'P-NGCP-Src-Ip: 127.1.0.3'
|
||||
- 'P-NGCP-Src-Port: \d+'
|
||||
- 'P-NGCP-Src-Proto: udp'
|
||||
- 'P-NGCP-Src-Af: 4'
|
||||
sip_out:
|
||||
- [
|
||||
'SIP/2.0 180 Ringing',
|
||||
'From: <sip:43110021003@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:testuser1002@spce.test>;tag=[\w-]+',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Allow: INVITE, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE',
|
||||
'Call-Info: <sip:spce.test>;appearance-index=1',
|
||||
'Allow-Events: talk,hold,conference,refer,check-sync',
|
||||
'Contact: <sip:127.1.0.3:\d+;transport=UDP>',
|
||||
'Content-Length: 0',
|
||||
'P-NGCP-Src-Ip: 127.1.0.3',
|
||||
'P-NGCP-Src-Port: \d+',
|
||||
'P-NGCP-Src-Proto: udp',
|
||||
'P-NGCP-Src-Af: 4',
|
||||
]
|
||||
@ -0,0 +1,48 @@
|
||||
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:testuser1003@spce.test>;tag=[\w-]+'
|
||||
- 'To: <sip:1002@spce.test>;tag=[\w-]+'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Allow: INVITE, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE'
|
||||
- 'Call-Info: <sip:spce.test>;appearance-index=1'
|
||||
- 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
|
||||
- 'Content-Length: 0'
|
||||
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 180 Ringing',
|
||||
'From: <sip:testuser1003@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:1002@spce.test>;tag=[\w-]+',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Allow: INVITE, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE',
|
||||
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
|
||||
'Content-Length: 0',
|
||||
'P-COLP-Identity: "1002" <sip:1002@spce.test>',
|
||||
'P-Out-Socket: udp:127.0.0.1:5060',
|
||||
]
|
||||
@ -0,0 +1,50 @@
|
||||
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:
|
||||
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:5080;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:5080;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',
|
||||
]
|
||||
@ -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:5080;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:5080;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 canceling'
|
||||
- 'From: <sip:43110021003@spce.test>;tag=[\w-]+'
|
||||
- 'To: <sip:testuser1002@spce.test>;tag=[\w-]+'
|
||||
- 'CSeq: \d+ CANCEL'
|
||||
- 'Server: Sipwise NGCP LB 9.X'
|
||||
- 'Content-Length: 0'
|
||||
sip_out: []
|
||||
|
||||
Loading…
Reference in new issue