[sr-dev] [tracker] Task opened: dlg.profile_list is unable to handle numeric values properly

sip-router bugtracker at sip-router.org
Fri Jan 18 12:58:32 CET 2013


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Marco Marzetti (evan) 

Attached to Project - sip-router
Summary - dlg.profile_list is unable to handle numeric values properly
Task Type - Bug Report
Category - dialog
Status - Unconfirmed
Assigned To - 
Operating System - Linux
Severity - Low
Priority - Normal
Reported Version - 3.2
Due in Version - Undecided
Due Date - Undecided
Details - Hello, 

As per my understanding, the Dialog Module exports the "dlg.profile_list" function to the kamctl command.
According to its documentation the function accepts two values:
- profile: name of the profile to list the dialog for.
- value (optional): string value to further restrict the check;

Our routing logic looks like this:
$var( account ) = $au;
if( !is_in_profile( "inboundcalls" ) && !is_in_profile( "outboundcalls" ) ) {
  set_dlg_profile( "outboundcalls", "$var( account )" );
}

So, to get the list of the active outbound calls, we execute this bash command:
# kamctl sercmd -s /tmp/kamailio_ctl dlg.profile_list outboundcalls aut-username
Where auth-username is the _same_ value of $au .

The process described above works with no exception but when $au is a numeric string ( ie a telephone number ).
In that case, kamctl returns no calls.
We experienced no problem when $au is an alfanumeri string.

For instance:
$au=1234 -> No calls
$au=1234_p -> Active outbound calls
$au=foo.1234.bar -> Active outbound calls

You can find the software version that we're running below:
version: kamailio 3.2.0 (i386/linux) 
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled on 10:21:02 Nov  2 2011 with gcc 4.4.5

Thank You

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=265

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list