【发布时间】:2011-10-05 04:34:27
【问题描述】:
我正在尝试了解我的软电话如何发出 BYE 以挂断,以便我可以在其他地方重新创建它。下面是 ZoIPer 发送到运行 SIP 信令软件的服务器的数据包。
我正在尝试构建此字符串并成功挂断某人,但我总是收到 400、403、407、481 和 503 错误。问题是我无法确定 Route 标头中“did”的值来自哪里,也不知道 Via 标头中的“branch”值来自哪里。 Asterisk 公开了所有其他参数供我使用,而不是这两个。
如何确定“did”和“branch”?
此外,此示例使用 Proxy-Authorization,但对于短调用,ZoIPer 省略了此行。
BYE sip:user1@astHost SIP/2.0
Via: SIP/2.0/UDP 192.168.1.183:5060;branch=z9hGda4bK-d8754z-678f2d4d1e5-1---d8754z-
Max-Forwards: 70
Route: <sip:sipHost;lr;ftag=733a98721;did=c0f.22438545>
Contact: <sip:user2@192.168.1.183:5060;transport=UDP>
To: <sip:user1@mydomain;transport=UDP>;tag=as4f57c9b8a
From: <sip:user2@mydomain;transport=UDP>;tag=733a98721
Call-ID: Nzg1ZTEyYTg4NasdlkSZLK3j10.
CSeq: 3 BYE
Proxy-Authorization: Digest username="bobby",realm="TomTest.voip.snohio.net",nonce="4e8a1b1700005997e6b1d8732be4b4c01f56d27a6d2dd80b",uri="sip:103@74.115.42.220:5060",response="3dbb0f4cbb0000c7786975cf043e6898",algorithm=MD5
User-Agent: Zoiper rev.11137
Content-Length: 0
谢谢。
【问题讨论】: