* You are viewing Posts Tagged ‘result’

CDR END TIME in correct in 1.8+

Hi,

I’ve tested 1.8.6.0, 1.8.4.0 and 1.8.0

I can get proper start and answer time but not the end time of call

AGI Rx < < GET VARIABLE CDR(start)
AGI Tx >> 200 result=1 (2011-12-16 18:34:48)
AGI Rx < < GET VARIABLE CDR(end)
AGI Tx >> 200 result=1 (2011 12-16 18:34:48)
AGI Rx < < GET VARIABLE CDR(answer)
AGI Tx >> 200 result=1 (2011-12-16 18:34:50)

In 1.8.6.0, there was no end time and in the other two it’s present but
neither in correct format nor exact time.

Is it something related to system or a bug?

Regards,
Zohair Raza

Realtime Registration

[Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:821 pgsql_reconnect:
Postgresql RealTime: Everything is fine.
[Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:201 realtime_pgsql:
Postgresql RealTime: Result=0x12e4edd0 Query: SELECT * FROM sippeers
WHERE name = ’105680′ AND host = ‘dynamic’
[Dec 7 19:31:18] DEBUG[4217]: res_config_pgsql.c:209 realtime_pgsql:
Postgresql RealTime: Found 1 rows.
[Dec 7 19:31:18] ERROR[4217]: chan_sip.c:9940 register_verify: Peer
’105680′ is trying to register, but not configured as host=dynamic

Any suggestions???

Asterisk 1.4.42

asterisk bin file may change when running

Hi all,

Recently,I met a very strange phenomenon。I found that my asterisk bin file
had changed when running。I checked a lot of machines , and the result is almost
all of the bin files have taken place。

the following is the result of the calculation。

[root@callcenter beijin]# ls -l /usr/sbin/asterisk
-rwxr-xr-x 1 root root 10883387 Oct 10 17:45 /usr/sbin/asterisk
[root@callcenter asterisk-1.4.38]# ll main/asterisk
-rwxr-xr-x 1 root root 10877291 Oct 10 17:45 main/asterisk

[root@callcenter asterisk-1.4.38]# md5sum main/asterisk
1e1456aee0f094f5437da0e713755a4e main/asterisk
[root@callcenter asterisk-1.4.38]# md5sum /usr/sbin/asterisk
f620b91b486c665425be5175fdfb3810 /usr/sbin/asterisk

Thanks in advance!

device state of SIP device is stucked into NOT_INUSE, and cannto be reverted to unavailable

Hello

Have a setup of asterisk with realtime SIP devices.
Trying to organise monitoring of my SIP devices. Once device
registered, its state becomes NOT_INUSE (result of
DEVICE_STATE(SIP/device) function).
Simulating of device breakage – powerdown it.
Waiting for a while (minute or two), retrieving
DEVICE_STATE(SIP/device) again – no changes! Awaited UNAVAILABLE.

doing from CLI:
sip qualify peer device load
no result.

What I did not configured?

My sip.conf
[general]
context = default

allowguest = no
bindport = 5060
bindaddr = 0.0.0.0

allowexternaldomains = no
allowoverlap = yes
allowsubscribe = yes
allowtransfer = yes
alwaysauthreject = no
autodomain = no
callevents = no
canreinvite = no
checkmwi = 10
compactheaders = no
defaultexpiry = 120
domain=sop-korniychuk
domain=172.30.8.13
domain=172.30.8.13:5060
dumphistory = no
externrefresh = 10
g726nonstandard = no
notifyringing = yes
srvlookup = yes
t1min = 100
t38pt_udptl = no
;tos_audio = none
;tos_sip = none
;tos_video = none
trustrpid = no
useragent = Asterisk PBX
usereqphone = no
videosupport = no
disallow = all
allow = alaw
type = friend
host=dynamic
context = noop-context
dtmfmode=rfc2833
nat=no
rtcachefriends=yes
qualify=10000
deny=0.0.0.0/0.0.0.0
permit=172.30.8.0/255.255.255.0

Asterisk 1.8 Manager Perl Script Problem

Hi All,

Trying to upgrade some call servers, in the lab making sure all my
applications work, ran into an issue with some manager perl scripts
that pull and reset database info, it seems the command and result
responses have changed but I’m not sure how to resolve. My scripts
are using CPAN Asterisk::Manager; and are working fine on asterisk
1.2.32 but not on Asterisk 1.8.6.0.

Here is the abbreviated script where 1.2.32 is astman1 and 1.8.6.0 is astman2:

#!/usr/bin/perl -w
use strict;
use warnings;
use Getopt::Long;
use Asterisk::Manager;

##setup manager connections##
my $astman1 = new Asterisk::Manager;
$astman1->user(‘username’);
$astman1->secret(‘password’);
$astman1->host(’10.10.14.101′);
$astman1->connect || die $astman1->error . “n”;

my $astman2 = new Asterisk::Manager;
$astman2->user(‘username’);
$astman2->secret(‘password’);
$astman2->host(’10.10.14.102′);
$astman2->connect || die $astman2->error . “n”;

##query databases for cnam count##
$astman1->sendcommand(Action => ‘DBGet’, Family => ‘cnam’, Key => ‘count’);
my @result1 = $astman1->sendcommand(Event => ‘DBGetResponse’);
my $cnamcount1 = “0$result1[7]“;

$astman2->sendcommand(Action => ‘DBGet’, Family => ‘cnam’, Key => ‘count’);
my @result2 = $astman2->sendcommand(Event => ‘DBGetResponse’);
my $cnamcount2 = “0$result2[7]“;

##total cnam count##
my $cnamtotal = ($cnamcount1+$cnamcount2);

##reset cnam count to 0##
$astman1->sendcommand(Action => ‘DBPut’, Family => ‘cnam’, Key =>
‘count’, Val => ’0′);
my @result101 = $astman1->sendcommand(Event => ‘DBGetResponse’);
my $cnamreset1 = $result101[1];

$astman2->sendcommand(Action => ‘DBPut’, Family => ‘cnam’, Key =>
‘count’, Val => ’0′);
my @result102 = $astman2->sendcommand(Event => ‘DBGetResponse’);
my $cnamreset2 = $result102[1];

##disconnect the manager connections##
$astman1->disconnect;
$astman2->disconnect;

print “Total CNAM Count for last month is $cnamtotalnn”;