Browse Source

mediaproxy: handle DLGCB_CONFIRMED event

- ACKs may have SDP
- patch by Jasmin Schnatterbeck (FS195)
Daniel-Constantin Mierla 13 years ago
parent
commit
e5ae5137ce
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/mediaproxy/mediaproxy.c

+ 1 - 1
modules/mediaproxy/mediaproxy.c

@@ -1952,7 +1952,7 @@ __dialog_created(struct dlg_cell *dlg, int type, struct dlg_cb_params *_params)
     ice_data->priority = get_ice_candidate_priority(get_ice_candidate());
     ice_data->skip_next_reply = False;
 
-    if (dlg_api.register_dlgcb(dlg, DLGCB_REQ_WITHIN, __dialog_requests, (void*)ice_data, __free_dialog_data) != 0)
+    if (dlg_api.register_dlgcb(dlg, DLGCB_REQ_WITHIN | DLGCB_CONFIRMED, __dialog_requests, (void*)ice_data, __free_dialog_data) != 0)
         LM_ERR("cannot register callback for in-dialog requests\n");
     if (dlg_api.register_dlgcb(dlg, DLGCB_RESPONSE_FWDED | DLGCB_RESPONSE_WITHIN, __dialog_replies, (void*)ice_data, NULL) != 0)
         LM_ERR("cannot register callback for dialog and in-dialog replies\n");