Skip to content

Commit

Permalink
Merge pull request #1135 from snen/presence_dialog
Browse files Browse the repository at this point in the history
pua dialoginfo
  • Loading branch information
miconda committed May 23, 2017
2 parents 0a74041 + 3a6b28d commit 09b8fbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
12 changes: 7 additions & 5 deletions src/modules/pua_dialoginfo/README
Expand Up @@ -54,7 +54,7 @@ Phil Lavin
5.10. pubruri_caller_avp (int)
5.11. pubruri_callee_avp (int)
5.12. pubruri_caller_dlg_var (str)
5.13. pubruri_callee_dlg_var (int)
5.13. pubruri_callee_dlg_var (str)
5.14. callee_trying (int)

6. Functions
Expand Down Expand Up @@ -102,7 +102,7 @@ Chapter 1. Admin Guide
5.10. pubruri_caller_avp (int)
5.11. pubruri_callee_avp (int)
5.12. pubruri_caller_dlg_var (str)
5.13. pubruri_callee_dlg_var (int)
5.13. pubruri_callee_dlg_var (str)
5.14. callee_trying (int)

6. Functions
Expand Down Expand Up @@ -165,7 +165,9 @@ Chapter 1. Admin Guide
example:
<?xml version="1.0" encoding="UTF-8"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
version="1" state="full">
version="1"
state="full"
entity="sip:alice@example.com">
<dialog id="as7d900as8"
call-id="a84b4c76e66710"
local-tag="1928301774"
Expand Down Expand Up @@ -284,7 +286,7 @@ Chapter 1. Admin Guide
5.10. pubruri_caller_avp (int)
5.11. pubruri_callee_avp (int)
5.12. pubruri_caller_dlg_var (str)
5.13. pubruri_callee_dlg_var (int)
5.13. pubruri_callee_dlg_var (str)
5.14. callee_trying (int)

5.1. include_callid (int)
Expand Down Expand Up @@ -456,7 +458,7 @@ modparam("pua_dialoginfo", "pubruri_callee_avp", "$avp(s:puburis_callee)")
modparam("pua_dialoginfo", "pubruri_caller_dlg_var", "pubruri_caller")
...

5.13. pubruri_callee_dlg_var (int)
5.13. pubruri_callee_dlg_var (str)

Must be set to the name of dialog variable where to store the URI for
callee, used to send the notifications. This is needed to restored the
Expand Down
6 changes: 1 addition & 5 deletions src/modules/pua_dialoginfo/pua_dialoginfo.c
Expand Up @@ -238,10 +238,6 @@ __dialog_cbtest(struct dlg_cell *dlg, int type, struct dlg_cb_params *_params)
LM_ERR("dialog callback type 'DLGCB_RESPONSE_WITHIN' received, from=%.*s\n",
dlg->from_uri.len, dlg->from_uri.s);
break;
case DLGCB_MI_CONTEXT:
LM_ERR("dialog callback type 'DLGCB_MI_CONTEXT' received, from=%.*s\n",
dlg->from_uri.len, dlg->from_uri.s);
break;
case DLGCB_DESTROY:
LM_ERR("dialog callback type 'DLGCB_DESTROY' received, from=%.*s\n",
dlg->from_uri.len, dlg->from_uri.s);
Expand Down Expand Up @@ -605,7 +601,7 @@ struct dlginfo_cell* get_dialog_data(struct dlg_cell *dlg, int type)
DLGCB_FAILED| DLGCB_CONFIRMED_NA | DLGCB_CONFIRMED
| DLGCB_REQ_WITHIN | DLGCB_TERMINATED | DLGCB_EXPIRED
| DLGCB_EARLY | DLGCB_RESPONSE_FWDED | DLGCB_RESPONSE_WITHIN
| DLGCB_MI_CONTEXT | DLGCB_DESTROY,
| DLGCB_DESTROY,
__dialog_cbtest, NULL, NULL) != 0) {
LM_ERR("cannot register callback for all dialog types\n");
free_dlginfo_cell(dlginfo);
Expand Down

0 comments on commit 09b8fbd

Please sign in to comment.