コード例 #1
0
 def _create_ack_request(self, response):
     # 17.1.1.3 Construction of the ACK Request
     request = SIPRequest("ACK", self._request.uri)
     request.clone_headers("Route", self._request)
     request.clone_headers("To", response)
     request.clone_headers("From", self._request)
     request.clone_headers("Call-ID", self._request)
     request.clone_headers("Via", self._request) #FIXME single via
     request.add_header("CSeq", SIPCSeq(self._request.cseq.number, "ACK"))
     return request
コード例 #2
0
 def _create_ack_request(self, response):
     # 17.1.1.3 Construction of the ACK Request
     request = SIPRequest("ACK", self._request.uri)
     request.clone_headers("Route", self._request)
     request.clone_headers("To", response)
     request.clone_headers("From", self._request)
     request.clone_headers("Call-ID", self._request)
     request.clone_headers("Via", self._request)  #FIXME single via
     request.add_header("CSeq", SIPCSeq(self._request.cseq.number, "ACK"))
     return request
コード例 #3
0
ファイル: core.py プロジェクト: stlcours/emesene
 def _create_cancel_request(self, original_request):
     # 9.1 Client Behavior (Canceling a request)
     request = SIPRequest("CANCEL", original_request.uri)
     request.clone_headers("Route", original_request)
     request.clone_headers("To", original_request)
     request.clone_headers("From", original_request)
     request.clone_headers("Call-ID", original_request)
     cseq = original_request.cseq.number
     request.add_header("CSeq", SIPCSeq(cseq, "CANCEL"))
     return request
コード例 #4
0
ファイル: core.py プロジェクト: Alberto-Beralix/Beralix
 def _create_cancel_request(self, original_request):
     # 9.1 Client Behavior (Canceling a request)
     request = SIPRequest("CANCEL", original_request.uri)
     request.clone_headers("Route", original_request)
     request.clone_headers("To", original_request)
     request.clone_headers("From", original_request)
     request.clone_headers("Call-ID", original_request)
     cseq = original_request.cseq.number
     request.add_header("CSeq", SIPCSeq(cseq, "CANCEL"))
     return request