Module: sip-router Branch: master Commit: 1705424e70650ae0d173227221b04d1160c3e2c4 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1705424e...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Fri Oct 29 21:41:17 2010 +0200
dialog: added missing parameter in example
---
modules_k/dialog/README | 8 ++++---- modules_k/dialog/doc/dialog_admin.xml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/modules_k/dialog/README b/modules_k/dialog/README index 0cb0730..233e136 100644 --- a/modules_k/dialog/README +++ b/modules_k/dialog/README @@ -961,11 +961,11 @@ if (is_in_profile("caller","XX")) {
Example 1.41. get_profile_size usage ... -get_profile_size("inbound_call","$avp(size)"); -xlog("currently there are $avp(size) inbound calls\n"); +if(get_profile_size("inbound_call","$avp(size)")) + xlog("currently there are $avp(size) inbound calls\n"); ... -get_profile_size("caller","$fu"); -xlog("currently, the user %fu has $avp(size) active outgoing calls\n"); +if(get_profile_size("caller","$fu","$avp(size)")) + xlog("currently, the user $fu has $avp(size) active outgoing calls\n"); ...
6.5. dlg_isflagset(flag) diff --git a/modules_k/dialog/doc/dialog_admin.xml b/modules_k/dialog/doc/dialog_admin.xml index d6ecfe2..aaed79e 100644 --- a/modules_k/dialog/doc/dialog_admin.xml +++ b/modules_k/dialog/doc/dialog_admin.xml @@ -1117,11 +1117,11 @@ if (is_in_profile("caller","XX")) { <title><function>get_profile_size</function> usage</title> <programlisting format="linespecific"> ... -get_profile_size("inbound_call","$avp(size)"); -xlog("currently there are $avp(size) inbound calls\n"); +if(get_profile_size("inbound_call","$avp(size)")) + xlog("currently there are $avp(size) inbound calls\n"); ... -get_profile_size("caller","$fu"); -xlog("currently, the user %fu has $avp(size) active outgoing calls\n"); +if(get_profile_size("caller","$fu","$avp(size)")) + xlog("currently, the user $fu has $avp(size) active outgoing calls\n"); ... </programlisting> </example>