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:[email protected] 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 [email protected] to sip:[email protected] 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:[email protected] Gateway=220.130.6.180 To=sip:[email protected] Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Increment=6 MinDuration=6 ConnectFee=0.0000 CallId=NGFiNzA0MDJhZDZlNWNlYmMyMzI1ZTliMjA5YTQyNjg. Span=1 Duration=10254 DestId=886 [email protected] 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 [email protected] to +886939723377: duration=10252, price=17.0558 Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Balance for [email protected] 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 [email protected] 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 [email protected] to destination 886 having balance=2.9441 is 1770 Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Maximum agregated duration for [email protected] is 885 Nov 17 13:47:37 siptest-desktop cdrtool[16332]: MaxSessionTime=885 Type=prepaid CallId=NzhkMDY4NGI2YWY1NDIxZWFiNWY4MDgwZTA1NjMxYjI. [email protected] 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:[email protected] Gateway=220.130.6.180 To=sip:[email protected] Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Increment=6 MinDuration=6 ConnectFee=0.0000 CallId=NGFiNzA0MDJhZDZlNWNlYmMyMzI1ZTliMjA5YTQyNjg. Span=1 Duration=10254 DestId=886 [email protected] 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 [email protected] to +886939723377: duration=10252, price=17.0558 Nov 17 13:47:37 siptest-desktop cdrtool[16332]: Balance for [email protected] 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 [email protected] 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. [email protected] 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

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to