Skip to content

Commit f082591

Browse files
authored
Merge pull request #114 from yeoleobun/main
fix: remove remote uri setting for cancel
2 parents d771a37 + f50f2e2 commit f082591

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/dialog/dialog.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl TransactionHandle {
8989
/// * `WaitAck` - Server dialog waiting for ACK after sending 2xx response
9090
/// * `Confirmed` - Dialog is established and confirmed (2xx response received/sent and ACK sent/received)
9191
/// * `Updated` - Dialog received an UPDATE request
92-
/// * `Notify` - Dialog received a NOTIFY request
92+
/// * `Notify` - Dialog received a NOTIFY request
9393
/// * `Info` - Dialog received an INFO request
9494
/// * `Options` - Dialog received an OPTIONS request
9595
/// * `Terminated` - Dialog has been terminated
@@ -219,7 +219,7 @@ impl ReferStatus {
219219
/// // Handle server dialog
220220
/// },
221221
/// Dialog::ClientInvite(client_dialog) => {
222-
/// // Handle client dialog
222+
/// // Handle client dialog
223223
/// },
224224
/// Dialog::ServerSubscription(server_dialog) => {
225225
/// // Handle server subscription dialog
@@ -878,10 +878,6 @@ impl DialogInner {
878878
let key = TransactionKey::from_request(&request, TransactionRole::Client)?;
879879
let mut tx = Transaction::new_client(key, request, self.endpoint_inner.clone(), None);
880880

881-
if matches!(method, Method::Cancel) {
882-
tx.destination = SipAddr::try_from(self.remote_uri.lock().clone()).ok();
883-
}
884-
885881
if let Some(route) = tx.original.route_header() {
886882
if let Some(first_route) = route.typed().ok() {
887883
tx.destination = SipAddr::try_from(&first_route.uri).ok();

0 commit comments

Comments
 (0)