You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio-config-tests/scenarios_pbx/invite_manager_2sec/0044_test.yml.tt2

71 lines
3.0 KiB

flow:
- start|DEFAULT_ONREPLY:
- start|REPLY_ROUTE_LEG_B:
- start|ROUTE_ENTRY:
- return|ROUTE_ENTRY:
- start|REPLY_ROUTE_RTPENGINE:
- return|REPLY_ROUTE_RTPENGINE:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- start|dialog:start:
- return|dialog:start:
sip_in:
- 'SIP/2.0 200 OK'
- 'From: <sip:[% invite_manager_2sec_scenarios_pbx_test.testuser1003.pbx_phone_number %]@invite-manager-2sec.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.username %]@invite-manager-2sec.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Record-Route: <sip:[% server_ip %];r2=on;lr=on;ftag=[^;]+;ngcplb=yes;socket=sip:[% server_ip %]:5060>, <sip:127.0.0.1;r2=on;lr=on;ftag=[^;]+;ngcplb=yes;socket=sip:[% server_ip %]:5060>, <sip:127.0.0.1:5062;lr=on;ftag=[^;]+;leg_b=1;did=[^;]+;ice_caller=strip;ice_callee=strip;aset=\d+;rtpprx=yes>'
- 'Contact: <sip:[% scenarios.1.responders.1.ip %]:[% scenarios.1.responders.1.port %];transport=UDP>'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
- 'P-NGCP-Src-Ip: [% scenarios.0.ip %]'
- 'P-NGCP-Src-Port: [% scenarios.1.responders.1.port %]'
- 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4'
- 'v=0'
- 'o=user1 \d+ \d+ IN IP4 [% scenarios.0.ip %]'
- 's=-'
- 'c=IN IP4 [% scenarios.0.ip %]'
- 't=0 0'
- 'm=audio [% scenarios.1.responders.1.mport %] RTP/AVP 8'
- 'a=rtpmap:8 PCMA/8000'
- 'a=ptime:50'
sip_out:
- [
'PUBLISH sip:[% scenarios.0.username %]@invite-manager-2sec.scenarios-pbx.test SIP/2.0',
'To: <sip:[% scenarios.0.username %]@invite-manager-2sec.scenarios-pbx.test>',
'From: <sip:[% scenarios.0.username %]@invite-manager-2sec.scenarios-pbx.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:[% invite_manager_2sec_scenarios_pbx_test.testuser1003.pbx_phone_number %]@invite-manager-2sec.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% scenarios.0.username %]@invite-manager-2sec.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ INVITE',
'Record-Route: <sip:[% server_ip %];r2=on;lr=on;ftag=[^;]+;ngcplb=yes;socket=sip:[% server_ip %]:5060>, <sip:127.0.0.1;r2=on;lr=on;ftag=[^;]+;ngcplb=yes;socket=sip:[% server_ip %]:5060>, <sip:127.0.0.1:5062;lr=on;ftag=[^;]+;leg_b=1;did=[^;]+;ice_caller=strip;ice_callee=strip;aset=\d+;rtpprx=yes>',
'Contact: <sip:[% scenarios.1.responders.1.ip %]:[% scenarios.1.responders.1.port %];transport=UDP>',
'Content-Type: application/sdp',
'Content-Length:\s+\d+',
'P-NGCP-Src-Ip: [% scenarios.0.ip %]',
'P-NGCP-Src-Port: [% scenarios.1.responders.1.port %]',
'P-NGCP-Src-Proto: udp',
'P-NGCP-Src-Af: 4',
'v=0',
'o=user1 \d+ \d+ IN IP4 [% server_ip %]',
's=-',
'c=IN IP4 [% server_ip %]',
't=0 0',
'm=audio \d+ RTP/AVP 8',
'a=rtpmap:8 PCMA/8000',
'a=sendrecv',
'a=rtcp:\d+',
'a=rtcp-mux',
'a=ptime:50',
]