All,
I got a weird problem for Grand Stream 486 ATA registering on my ser server.
Server in in US and ATA is registering from India. Here is ngrep trace.
Every time the device tries to register the "Register" word get some extra
characters. For example in this case REGISTER became R:50145EGISTER and ser
replies with 404 User Not found.
Anyone faced this issue, any idea how to debug/fix this problem this.
U 59.180.68.3:50145 -> XXX.XXX.XXX.211:5060
*R:50145EGISTER* sip:XXX.XXX.XXX.211 SIP/2.0..Via: SIP/2.0/UDP
59.180.68.3:50146;branch=z9hG4bKbd52be32ad52bf32..From:
<sip:1004613554@XXX.XXX.XXX.211;user=phone>
<sip:1004613554@XXX.XXX.XXX.211;user=phone>;ta
g=e5ca733921001365..To: <sip:1004613554@XXX.XXX.XXX.211;user=phone>
<sip:1004613554@XXX.XXX.XXX.211;user=phone>..Contact: *..Supported:
replaces, timer..Call-ID: 53fb73fb244b57b9@192.168.1.4..CSeq: 100 REG
ISTER..Expires: 0..User-Agent: Grandstream HT487
1.1.0.26..Max-Forwards: 70..Allow:
INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE..Content-L
ength: 0....
#
U XXX.XXX.XXX.211:5060 -> 59.180.68.3:50146
SIP/2.0 404 User Not Found..Via: SIP/2.0/UDP
59.180.68.3:50146;branch=z9hG4bKbd52be32ad52bf32..From:
<sip:1004613554@XXX.XXX.XXX.211;user=phone>
<sip:1004613554@XXX.XXX.XXX.211;user=phone>;tag=e5ca73392100
1365..To: <sip:1004613554@XXX.XXX.XXX.211;user=phone>
<sip:1004613554@XXX.XXX.XXX.211;user=phone>;tag=2d30881a84b19f18b705d17dbf895433.1f56..Call-ID:
53fb73fb244b57b9@192.168.1.4..CSeq: 100 REGISTER..Serve
r: Sip EXpress router (0.9.6 (i386/linux))..Content-Length:
0..Warning: 392 XXX.XXX.XXX.211:5060 "Noisy feedback tells: pid=7507
req_src_ip=59.180.68.3 req_src_
port=50145 in_uri=sip:XXX.XXX.XXX.211 out_uri=sip:XXX.XXX.XXX.211
via_cnt==1"....
###
U 59.180.68.3:50145 -> XXX.XXX.XXX.211:5060
R:50145EGISTER sip:XXX.XXX.XXX.211 SIP/2.0..Via: SIP/2.0/UDP
59.180.68.3:50146;branch=z9hG4bKbd52be32ad52bf32..From:
<sip:1004613554@XXX.XXX.XXX.211;user=phone>
<sip:1004613554@XXX.XXX.XXX.211;user=phone>;ta
g=e5ca733921001365..To: <sip:1004613554@XXX.XXX.XXX.211;user=phone>
<sip:1004613554@XXX.XXX.XXX.211;user=phone>..Contact: *..Supported:
replaces, timer..Call-ID: 53fb73fb244b57b9@192.168.1.4..CSeq: 100 REG
ISTER..Expires: 0..User-Agent: Grandstream HT487
1.1.0.26..Max-Forwards: 70..Allow:
INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE..Content-L
ength: 0....
#
U XXX.XXX.XXX.211:5060 -> 59.180.68.3:50146
SIP/2.0 404 User Not Found..Via: SIP/2.0/UDP
59.180.68.3:50146;branch=z9hG4bKbd52be32ad52bf32..From:
<sip:1004613554@XXX.XXX.XXX.211;user=phone>
<sip:1004613554@XXX.XXX.XXX.211;user=phone>;tag=e5ca73392100
1365..To: <sip:1004613554@XXX.XXX.XXX.211;user=phone>
<sip:1004613554@XXX.XXX.XXX.211;user=phone>;tag=2d30881a84b19f18b705d17dbf895433.1f56..Call-ID:
53fb73fb244b57b9@192.168.1.4..CSeq: 100 REGISTER..Serve
r: Sip EXpress router (0.9.6 (i386/linux))..Content-Length:
0..Warning: 392 XXX.XXX.XXX.211:5060 "Noisy feedback tells: pid=7522
req_src_ip=59.180.68.3 req_src_
port=50145 in_uri=sip:XXX.XXX.XXX.211 out_uri=sip:XXX.XXX.XXX.211
via_cnt==1"....
Yes. You will need to remove the entry when the dialog ends (on BYE).
If you don't get a BYE, you may end up with leftovers. You can clean
them up by setting a cron job to check for 'old' records into your
'dlg' table and remove them.
The hash module solution is more elegant, but you will need to wait
for the next release.
Regards,
Ovidiu Sas
On Tue, Nov 18, 2008 at 5:12 PM, Alex R. S. M <alex_rsm(a)hotmail.com> wrote:
> Then this table would have an entry for each dialog. Do we need to flush the
> table at any time?
>
>
>> Date: Tue, 18 Nov 2008 10:26:35 -0500
>> From: osas(a)voipembedded.com
>> To: alex_rsm(a)hotmail.com
>> Subject: Re: [Kamailio-Users] global variable for inter-transaction
>> CC: users(a)lists.kamailio.org
>>
>> At this point in time there are no variables that can store a value
>> across dialogs.
>> One alternative would be to store the value into a db during the first
>> transaction and then retrieve it on the second transaction belonging
>> to the same dialog. Use clid/fromtag/totag to identify the dialog.
>>
>> Regards,
>> Ovidiu Sas
>>
>> On Tue, Nov 18, 2008 at 10:22 AM, Alex R. S. M <alex_rsm(a)hotmail.com>
>> wrote:
>> > Hi,
>> >
>> > What type of variable can store a value from one Transaction to another
>> > Transaction in the same dialog, i.e. to store a value from "200
>> > response"
>> > and use it in "BYE request". I tried VAR and AVP and they both are being
>> > reset in the new Transaction.
>> >
>> > Please advice,
>> > AR
>> >
>> > ________________________________
>> > Proud to be a PC? Show the world. Download the "I'm a PC" Messenger
>> > themepack now. Download now.
>> > _______________________________________________
>> > Users mailing list
>> > Users(a)lists.kamailio.org
>> > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>> >
>> >
>
> ________________________________
> Proud to be a PC? Show the world. Download the "I'm a PC" Messenger
> themepack now. Download now.
Hi,
What type of variable can store a value from one Transaction to another Transaction in the same dialog, i.e. to store a value from "200 response" and use it in "BYE request". I tried VAR and AVP and they both are being reset in the new Transaction.
Please advice,
AR
_________________________________________________________________
Proud to be a PC? Show the world. Download the “I’m a PC” Messenger themepack now.
hthttp://clk.atdmt.com/MRT/go/119642558/direct/01/
Hi Folks,
I get out-of-memory error with openser1.3 version. As I already increase the
share memory size to 2G, looks like the only choice is to compile openser as
64-bit binary. Before I go further, I'd like to check if anyone has
experience in this. Does OPenser work with 64-bit binary?
thanks,
-Joy
Hi,
I made a simple SIP test call. The end point reply to kamailio with 180, 200 messages. The end point includes "tag=1_1555_t58918_125k" in TO field of these messages. However, kamailio reply with ACK message that includes a random tag (tag=5f08ae5f) in TO field. This tag is not the same as the one sent by the end point:
1.1.1.1 end-point ip address
2.2.2.2 kamailio ip address
INVITE
From: <sip:1.1.1.1@2.2.2.2>;tag=snl-1226930829-1404351227071264-11
To: <sip:14078789913@x.x.x.x;user=phone>
Call-ID: 9280396221-9479318750707221-11-7604239022
180
From: <sip:1.1.1.1@2.2.2.2>;tag=snl-1226930829-1404351227071264-11
To: <sip:14078789913@x.x.x.x;user=phone>;tag=1_1555_t58918_125k
Call-ID: 9280396221-9479318750707221-11-7604239022
200
From: <sip:1.1.1.1@2.2.2.2>;tag=snl-1226930829-1404351227071264-11
To: <sip:14078789913@x.x.x.x;user=phone>;tag=1_1555_t58918_125k
Call-ID: 9280396221-9479318750707221-11-7604239022
ACK
From: <sip:1.1.1.1@2.2.2.2>;tag=snl-1226930829-1404351227071264-11
To: <sip:14078789913@2.2.2.2;user=phone>;tag=5f08ae5f
Call-ID: 9280396221-9479318750707221-11-7604239022
How can I force it to send the correct tag?
Thanks,
AR
_________________________________________________________________
Windows Live Hotmail now works up to 70% faster.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_faster…
Hi,
maybe this has been discussed before and maybe I'm not too good in
reading mailinglists, but anyhow.
If you have two OpenSER proxies, no replication, and storing to the same
location table, is there a way of disregading the socket information?
I see in my logs: ERROR:usrloc:dbrow2info: non-local socket...ignoring,
and I'm not really sure the implications of this message.
Is the message ignored or is the socket information ignored?
If this is not crucial, might this message be supressed in some way?
Hello list.
I'm having some problems trying to build a counter for my kamailio.cfg
file.
This is what I have..
Th
main()
...
load avp from radius}
var(i)=0;
route(3);
...
route[1] {
t_on_failure("1");
if (!t_relay()) {
sl_reply_error();
};
xlog("L_INFO","[$ci] $rm t_relay a $ru");
exit;
}
route(3)
...
$var(nr)=$avp(s:caller_nr);
If ( var(i) < $var(nr) );
$var(i) = $var(i) + 1;
route(1);
else
exit;
failure_route[1] {
xlog("L_INFO", "[$ci] $rm:$ru failure_route\n");
if (t_was_cancelled()) {
xlog("L_INFO", "[$ci] $rm:$ru t_was_cancelled en
failure_route\n");
exit;
}
if (!next_gw()) {
xlog("L_INFO", "[$ci] No hay mas gateways para
$rm:$ou\n");
route(3);
} else {
xlog("L_INFO", "XXXXX");
}
t_on_failure("1");
t_relay();
}
After I restart the service the first time a call arrives the counter
seems to go OK, the counter goes from 0 to 2 (if the caller_nr=3). But
the second time the $var(i) at the main and route(3) it's = 0, but in
the failure_route it keeps the value = 3. What I'm doing wrong?
Can someone help me here?
Thanks
Ricardo Martinez.-
Hi,
How can I use AVP variable as a variable in a function (eg: append_branch(??)) ?
append_branch( $avp(i:10) ); // getting error message
append_branch( "$avp(i:10)" ); // takes "$avp(i:10)" as the function parameter and not its value
Thanks,
Alex
_________________________________________________________________
Color coding for safety: Windows Live Hotmail alerts you to suspicious email.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety…
Hi,
When client trying to REGISTER, kamailio responses with 401 Unauthorized.
if (is_method("REGISTER"))
{
if (!www_authorize("", "subscriber"))
{
www_challenge("", "0");
exit;
}
if (!save("location"))
sl_reply_error();
exit;
}
Here is my debug log:
Nov 10 13:52:46 kamailio: DBG:core:get_hdr_field: cseq <CSeq>: <1>
<REGISTER>
Nov 10 13:52:46 kamailio: DBG:tm:t_lookup_request: start searching:
hash=39046, isACK=0
Nov 10 13:52:46 kamailio: DBG:tm:matching_3261: RFC3261 transaction
matching failed
Nov 10 13:52:46 kamailio: DBG:tm:t_lookup_request: no transaction found
Nov 10 13:52:46 kamailio: DBG:core:grep_sock_info: checking if host==us:
14==14 && [209.16.123.160] == [209.16.123.160]
Nov 10 13:52:46 kamailio: DBG:auth:pre_auth: credentials with given realm
not found
Nov 10 13:52:46 kamailio: DBG:auth:reserve_nonce_index: second= 36,
sec_monit= -1, index= 0
Nov 10 13:52:46 kamailio: DBG:auth:build_auth_hf: nonce index= 0
Nov 10 13:52:46 kamailio: DBG:auth:build_auth_hf: 'WWW-Authenticate:
Digest realm="xx.xx.xx.xx",
nonce="4918842a00000000663ef5a903a02d6628e7e8e8b093c44b"^M '
Am I missing something in the config?
Regards,
RR