[OpenSIPS-Users] WARNING:call_control:postprocess_request: dialog to trace controlled call was not created. discarding callcontrol

Nick nick_chang at ezmobo.com
Thu Nov 17 06:58:39 CET 2011


Hello

I get this error "WARNING:call_control:postprocess_request: dialog to 
trace controlled call was not created. discarding callcontrol"

In my opensips.cfg
         if (is_method("INVITE") && !has_totag()) {
                 setflag(1); # do accounting
                 $avp(caller) = $fu;
                 create_dialog();
                 call_control();
                 xlog("callcontrol returned code is $retcode\r\n");
                 switch ($retcode) {
                 case 2:
                     # Call with no limit
                 case 1:
                     # Call with a limit under callcontrol management 
(either prepaid or postpaid)
break;
                 case -1:
                     # Not enough credit (prepaid call)
                     xlog("L_INFO", "Call control: not enough credit for 
prepaid call\n");
                     sl_send_reply("402", "Not enough credit");
                     exit;
break;
                 case -2:
                     # Locked by call in progress (prepaid call)
                     xlog("L_INFO", "Call control: prepaid call locked 
by another call in progress\n");
                     sl_send_reply("403", "Call locked by another call 
in progress");
                     exit;
break;
                 case -3:
                     # Duplicated callid
                     xlog("L_INFO", "Call control: Duplicated call id\n");
                     sl_send_reply("400", "Duplicated callid");
                     exit;
break;
                 case -4:
                     # Call limit reached
                     xlog("L_INFO", "Call control: Call limit reached\n");
                     sl_send_reply("503", "Too many concurrent calls");
                     exit;
break;
                 default:
                     # Internal error (message parsing, communication, ...)
                     xlog("L_INFO", "Call control: internal server 
error\n");
                     sl_send_reply("500", "Internal server error");
                     exit;
                 }
         }


In my opensips log
INFO:presence:handle_subscribe: Missing or unsupported event header 
field value
Nov 17 13:46:54 sfs-staging /usr/local/sbin/opensips[29789]: 
INFO:presence:handle_subscribe:     event= message-summary
Nov 17 13:46:58 sfs-staging call-control[29189]: User 
sip:0911111111 at 220.130.6.180 can make unlimited concurrent calls
Nov 17 13:46:58 sfs-staging /usr/local/sbin/opensips[29790]: 
INFO:core:buf_init: initializing...
  ov 17 13:46:58 sfs-staging /usr/local/sbin/opensips[29790]: 
callcontrol returned code is 1
Nov 17 13:46:58 sfs-staging /usr/local/sbin/opensips[29790]: Call 
control: internal server error
Nov 17 13:46:58 sfs-staging /usr/local/sbin/opensips[29790]: 
WARNING:call_control:postprocess_request: dialog to trace controlled 
call was not created. discarding callcontrol.
Nov 17 13:46:59 sfs-staging call-control[29189]: Call id 
NzhkMDY4NGI2YWY1NDIxZWFiNWY4MDgwZTA1NjMxYjI. of 0911111111 at 220.130.6.180 
to sip:0939723377 at 220.130.6.180 canceled by user

in my cdrtool log
cdrtool[14013]: Normalize datasource opensips_radius, database 
DB_radius, table radacct201111
Nov 17 13:45:02 siptest-desktop cdrtool[14015]: Checking user quotas for 
data source OpenSIPS Proxy/Registrar
Nov 17 13:45:02 siptest-desktop cdrtool[14015]: Using database queries 
to block accounts
Nov 17 13:45:02 siptest-desktop cdrtool[14015]: No quota has been exceeded
Nov 17 13:45:02 siptest-desktop cdrtool[14013]: Normalize lock id 369 
aquired for opensips_radius:radacct201111
Nov 17 13:45:02 siptest-desktop cdrtool[14013]: Database error: Invalid 
SQL: select *, UNIX_TIMESTAMP(AcctStartTime) as timestamp#012        
from radacct201111 where  (1=1)  and  Normalized = '0' and AcctStopTime 
not like '0000-00-00 00:00:00%'  order by RadAcctId asc
Nov 17 13:45:02 siptest-desktop cdrtool[14013]: 63
Nov 17 13:45:02 siptest-desktop cdrtool[14013]: Unlock 
opensips_radius:radacct201111
Nov 17 13:45:02 siptest-desktop CRON[14001]: (CRON) info (No MTA 
installed, discarding output)
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: MaxSessionTime 
Duration=36000 CallId=NzhkMDY4NGI2YWY1NDIxZWFiNWY4MDgwZTA1NjMxYjI. 
From=sip:0911111111 at 220.130.6.180 Gateway=220.130.6.180 
To=sip:0939723377 at 220.130.6.180
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Increment=6 
MinDuration=6 ConnectFee=0.0000 
CallId=NGFiNzA0MDJhZDZlNWNlYmMyMzI1ZTliMjA5YTQyNjg. Span=1 
Duration=10254 DestId=886 subscriber=0911111111 at 220.130.6.180 
Profile=grn_premium Period=weekday Rate=grn_premium Interval=0-24 
Cost=0.0998/60 Price=17.0558 PriceIn=0.0000
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Active sessions 
NGFiNzA0MDJhZDZlNWNlYmMyMzI1ZTliMjA5YTQyNjg. for 
0911111111 at 220.130.6.180 to +886939723377: duration=10252, price=17.0558
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Balance for 
0911111111 at 220.130.6.180 having 1 active sessions: database=19.9999, 
due=17.0558, real=2.9441
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Remaining duration for 
active session NGFiNzA0MDJhZDZlNWNlYmMyMzI1ZTliMjA5YTQyNjg. of 
0911111111 at 220.130.6.180 to destination 886 having balance=2.9441 is 1770
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Maximum duration for new 
session NzhkMDY4NGI2YWY1NDIxZWFiNWY4MDgwZTA1NjMxYjI. of 
0911111111 at 220.130.6.180 to destination 886 having balance=2.9441 is 1770
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Maximum agregated 
duration for 0911111111 at 220.130.6.180 is 885
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: MaxSessionTime=885 
Type=prepaid CallId=NzhkMDY4NGI2YWY1NDIxZWFiNWY4MDgwZTA1NjMxYjI. 
BillingParty=0911111111 at 220.130.6.180 DestId=886 Balance=2.9441 Spans=1 
Counter=1->2
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: DebitBalance Duration=0 
CallId=NzhkMDY4NGI2YWY1NDIxZWFiNWY4MDgwZTA1NjMxYjI. 
From=sip:0911111111 at 220.130.6.180 Gateway=220.130.6.180 
To=sip:0939723377 at 220.130.6.180
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Increment=6 
MinDuration=6 ConnectFee=0.0000 
CallId=NGFiNzA0MDJhZDZlNWNlYmMyMzI1ZTliMjA5YTQyNjg. Span=1 
Duration=10254 DestId=886 subscriber=0911111111 at 220.130.6.180 
Profile=grn_premium Period=weekday Rate=grn_premium Interval=0-24 
Cost=0.0998/60 Price=17.0558 PriceIn=0.0000
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Active sessions 
NGFiNzA0MDJhZDZlNWNlYmMyMzI1ZTliMjA5YTQyNjg. for 
0911111111 at 220.130.6.180 to +886939723377: duration=10252, price=17.0558
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Balance for 
0911111111 at 220.130.6.180 having 1 active sessions: database=19.9999, 
due=17.0558, real=2.9441
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Remaining duration for 
active session NGFiNzA0MDJhZDZlNWNlYmMyMzI1ZTliMjA5YTQyNjg. of 
0911111111 at 220.130.6.180 to destination 886 having balance=2.9441 is 1770
Nov 17 13:47:37 siptest-desktop cdrtool[16332]: DebitBalance=0.0000 
Duration=0 CallId=NzhkMDY4NGI2YWY1NDIxZWFiNWY4MDgwZTA1NjMxYjI. 
BillingParty=0911111111 at 220.130.6.180 DestId=886 MaxSessionTime=1770 
Counter=2->1

When I call from 0911111111 to 0939723377, Always display internal server.
Can everyone give me a suggest??
Thanks

Nick



More information about the Users mailing list