Module: kamailio
Branch: master
Commit: 91da5bd0c9d08d4a2979bab6053b417e16b51cf6
URL:
https://github.com/kamailio/kamailio/commit/91da5bd0c9d08d4a2979bab6053b417…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2022-11-10T11:47:14+01:00
dialog: add a note for early dialogs in dlg_set_var()
---
Modified: src/modules/dialog/doc/dialog_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/91da5bd0c9d08d4a2979bab6053b417…
Patch:
https://github.com/kamailio/kamailio/commit/91da5bd0c9d08d4a2979bab6053b417…
---
diff --git a/src/modules/dialog/doc/dialog_admin.xml
b/src/modules/dialog/doc/dialog_admin.xml
index 162ad965331..7a1a11c59a7 100644
--- a/src/modules/dialog/doc/dialog_admin.xml
+++ b/src/modules/dialog/doc/dialog_admin.xml
@@ -2239,7 +2239,7 @@ if(dlg_get_var("$var(ci)", "$var(ft)",
"456", "test", "$var(tmp)"))
</para>
</listitem>
<listitem>
- <para><emphasis>ttag</emphasis> - SIP To tag.
+ <para><emphasis>ttag</emphasis> - SIP To tag. Use "" value
to indicate early dialog.
</para>
</listitem>
<listitem>
@@ -2263,6 +2263,11 @@ if(dlg_set_var("$var(ci)", "$var(ft)",
"456", "test", "$var(tmp)"))
{
xdbg("set $$dlg_var(test):$var(tmp)\n");
}
+# you can set vars in early dialog too
+if(dlg_set_var("$var(ci)", "$var(ft)", "",
"test", "$var(tmp)"))
+{
+ xdbg("set $$dlg_var(test):$var(tmp)\n");
+}
...
</programlisting>
</example>