Skip to content

Commit

Permalink
dialog docs: Fix get_profile_size() examples
Browse files Browse the repository at this point in the history
(cherry picked from commit 9f0474c)

Conflicts:
	modules/dialog/README
  • Loading branch information
liviuchircu committed Jan 25, 2017
1 parent a148250 commit 4c625bb
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 39 deletions.
74 changes: 39 additions & 35 deletions modules/dialog/README
Expand Up @@ -6,6 +6,8 @@ Edited by

Bogdan-Andrei Iancu

Edited by

Vladut-Stefan Paiu

Copyright © 2006-2009 Voice Sistem SRL
Expand Down Expand Up @@ -1144,12 +1146,14 @@ if (is_in_profile("caller","XX")) {
REPLY_ROUTE and FAILURE_ROUTE.

Example 1.54. get_profile_size usage
modparam("dialog", "profiles_no_value", "inboundCalls")
modparam("dialog", "profiles_with_value", "caller")
...
get_profile_size("inbound_call","$avp(size)");
xlog("currently there are $avp(size) inbound calls\n");
get_profile_size("inboundCalls",,"$var(size)");
xlog("inboundCalls: $var(size)\n");
...
get_profile_size("caller","$fu");
xlog("currently, the user %fu has $avp(size) active outgoing calls\n");
get_profile_size("caller", "$fu", "$var(size)");
xlog("currently, the user $fu has $var(size) active outgoing calls\n");
...

1.7.10. set_dlg_flag(idx)
Expand Down Expand Up @@ -1689,61 +1693,61 @@ Chapter 3. Frequently Asked Questions

3.1.

What happened with “topology_hiding()” function?
What happened with “topology_hiding()” function?

The respective functionality was moved into the topology_hiding
module. Function prototype has remained the same.
The respective functionality was moved into the topology_hiding
module. Function prototype has remained the same.

3.2.

What happened with “use_tight_match” parameter?
What happened with “use_tight_match” parameter?

The parameter was removed with version 1.3 as the option of
tight matching became mandatory and not configurable. Now, the
tight matching is done all the time (when using DID matching).
The parameter was removed with version 1.3 as the option of
tight matching became mandatory and not configurable. Now, the
tight matching is done all the time (when using DID matching).

3.3.

What happened with “bye_on_timeout_flag” parameter?
What happened with “bye_on_timeout_flag” parameter?

The parameter was removed in a dialog module parameter
restructuring. To keep the bye on timeout behavior, you need to
provide a "B" string parameter to the create_dialog() function.
The parameter was removed in a dialog module parameter
restructuring. To keep the bye on timeout behavior, you need to
provide a "B" string parameter to the create_dialog() function.

3.4.

What happened with “dlg_flag” parameter?
What happened with “dlg_flag” parameter?

The parameter is considered obsolete. The only way to create a
dialog is to call the create_dialog() function
The parameter is considered obsolete. The only way to create a
dialog is to call the create_dialog() function

3.5.

Where can I find more about OpenSIPS?
Where can I find more about OpenSIPS?

Take a look at http://www.opensips.org/.
Take a look at http://www.opensips.org/.

3.6.

Where can I post a question about this module?
Where can I post a question about this module?

First at all check if your question was already answered on one
of our mailing lists:
* User Mailing List -
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
* Developer Mailing List -
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
First at all check if your question was already answered on one
of our mailing lists:
* User Mailing List -
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
* Developer Mailing List -
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

E-mails regarding any stable OpenSIPS release should be sent to
<users@lists.opensips.org> and e-mails regarding development
versions should be sent to <devel@lists.opensips.org>.
E-mails regarding any stable OpenSIPS release should be sent to
<users@lists.opensips.org> and e-mails regarding development
versions should be sent to <devel@lists.opensips.org>.

If you want to keep the mail private, send it to
<users@lists.opensips.org>.
If you want to keep the mail private, send it to
<users@lists.opensips.org>.

3.7.

How can I report a bug?
How can I report a bug?

Please follow the guidelines provided at:
https://github.com/OpenSIPS/opensips/issues.
Please follow the guidelines provided at:
https://github.com/OpenSIPS/opensips/issues.
10 changes: 6 additions & 4 deletions modules/dialog/doc/dialog_admin.xml
Expand Up @@ -1567,12 +1567,14 @@ if (is_in_profile("caller","XX")) {
<example>
<title><function>get_profile_size</function> usage</title>
<programlisting format="linespecific">
modparam("dialog", "profiles_no_value", "inboundCalls")
modparam("dialog", "profiles_with_value", "caller")
...
get_profile_size("inbound_call","$avp(size)");
xlog("currently there are $avp(size) inbound calls\n");
get_profile_size("inboundCalls",,"$var(size)");
xlog("inboundCalls: $var(size)\n");
...
get_profile_size("caller","$fu");
xlog("currently, the user %fu has $avp(size) active outgoing calls\n");
get_profile_size("caller", "$fu", "$var(size)");
xlog("currently, the user $fu has $var(size) active outgoing calls\n");
...
</programlisting>
</example>
Expand Down

0 comments on commit 4c625bb

Please sign in to comment.