testtfsm-servernoninvite

来自「这是国外的resip协议栈」· 代码 · 共 105 行

TXT
105
字号
# Non-Invite from the transportinject_wire{REGISTER sip:127.0.0.1 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1234;branch=z9hG4bK0000
Max-Forwards: 70
From: sip:A@inside.com;tag=12345
To: sip:A@inside.com
Call-ID: 0123456789@pc.inside.com
CSeq: 1 REGISTER
Contact: <sip:A@pc.inside.com>
Content-Length: 0

}# See the REGISTER be passed up to the TUexpect_tu{method=REGISTERtimeout=1000}# Wait for the above to expiredelay{timeout=2000}# Inject a provisional response from the TUinject_tu{SIP/2.0 100 Trying
Via: SIP/2.0/UDP 127.0.0.1:1234;branch=z9hG4bK0000
From: sip:A@inside.com;tag=12345
To: sip:A@inside.com
Call-ID: 0123456789@pc.inside.com
CSeq: 1 REGISTER
Content-Length: 0

}# See the 100 Trying provisional response passed by the stackexpect_wire{status=100timeout=1000}# Wait for the above to expiredelay{timeout=2000}# Retransmission of the REGISTER from the transportinject_wire{REGISTER sip:127.0.0.1 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:1234;branch=z9hG4bK0000
Max-Forwards: 70
From: sip:A@inside.com;tag=12345
To: sip:A@inside.com
Call-ID: 0123456789@pc.inside.com
CSeq: 1 REGISTER
Contact: <sip:A@pc.inside.com>
Content-Length: 0

}# See the 100 Trying provisional response passed (cached by the stack)expect_wire{status=100timeout=1000}# Wait for the above to expiredelay{timeout=2000}inject_tu{SIP/2.0 200 OK
Via: SIP/2.0/UDP 127.0.0.1:1234;branch=z9hG4bK0000
From: sip:A@inside.com;tag=12345
To: sip:A@inside.com
Call-ID: 0123456789@pc.inside.com
CSeq: 1 REGISTER
Content-Length: 0

}expect_wire{status=200timeout=1000}delay{timeout=2000}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?