[SR-Users] Kamailio best performance

2011-11-22 Thread Ricardo Martinez
2.0 (x86_64/linux) 639f0a

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: 639f0a

compiled on 11:35:43 Oct 28 2011 with gcc 4.5.1



I’m using pike to check flood alerts, but I have a white list stored in the
“user_preference” table :

I’m using it like this :

route[REQINIT]  {

# flood dection from same IP and traffic ban for a while

# be sure you exclude checking trusted peers, such as pstn gateways

# - local host excluded (e.g., loop to self)

if( !(avp_db_load("pike", "$avp(ip_origen)") &&
avp_check("$avp(ip_origen)", "eq/$src_ip/gi")) )



#+-+--++---++--+-+

#| uuid| username | domain | attribute | value  | type |
modified|

#+-+--++---++--+-+

#| pike|  || ip_origen | 10.0.0.44  |0 |
2008-01-04 13:24:14 |

#| pike|  || ip_origen | 10.0.0.66  |0 |
2008-01-04 17:28:59 |

{

if($sht(ipban=>$si)!=$null)

{

# ip is already blocked

xdbg("request from blocked IP - $rm from $fu
(IP:$si:$sp)\n");

exit;

}

if (!pike_check_req())

{

xlog("L_ALERT","ALERT: pike blocking $rm from $fu
(IP:$si:$sp)\n");

xlog("L_INFO","ALERT: pike blocking from $si\n");

$sht(ipban=>$si) = 1;

exit;

}

}



Is this check method too slow? Or intensive in mysql access request??



Hope someone can help me here.

Thanks in advance..

Regards,



*Ricardo Martinez.-*
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] SIP Attack

2012-04-17 Thread Ricardo Martinez
Hello.

I was wondering if someone could help me here.  From time to time I stat to
receive from the internet this SIP message :



U 190.22.140.170:51316 -> 64.76.154.110:5060

SIP/2.0 400 BadRequest.

Via: .

From: .

To: .

Call-ID: .

CSeq: .

User-Agent: AddPac SIP Gateway.

Content-Length: 0.

.



At burst rate of 124 pps (packets per second), this meesage is entering to
Kamailio routine and generating a lot of ERROR logs lie these :

Apr  1 03:32:19 kmborde /usr/local/sbin/kamailio[2311]: ERROR: 
[parser/msg_parser.c:179]: ERROR: get_hdr_field: bad to header

Apr  1 03:32:19 kmborde /usr/local/sbin/kamailio[2311]: INFO: 
[parser/msg_parser.c:353]: ERROR: bad header field [To: 5]

Apr  1 03:32:19 kmborde /usr/local/sbin/kamailio[2311]: ERROR: 
[parser/msg_parser.c:179]: ERROR: get_hdr_field: bad to header

Apr  1 03:32:19 kmborde /usr/local/sbin/kamailio[2311]: INFO: 
[parser/msg_parser.c:353]: ERROR: bad header field [To: 5]

Apr  1 03:32:19 kmborde /usr/local/sbin/kamailio[2311]: ERROR: 
[parser/msg_parser.c:179]: ERROR: get_hdr_field: bad to header

Apr  1 03:32:19 kmborde /usr/local/sbin/kamailio[2311]: INFO: 
[parser/msg_parser.c:353]: ERROR: bad header field [To: 5]

Apr  1 03:32:19 kmborde /usr/local/sbin/kamailio[2311]: ERROR: 
[msg_translator.c:1943]: ERROR: build_res_buf_from_sip_req: al

as, parse_headers failed

Apr  1 03:32:19 kmborde /usr/local/sbin/kamailio[2311]: WARNING: sanity
[sanity.c:254]: sanity_check(): check_required_headers(): fa

iled to send 400 via sl reply

Apr  1 03:32:20 kmborde /usr/local/sbin/kamailio[2301]: ERROR: 
[parser/msg_parser.c:179]: ERROR: get_hdr_field: bad to header

Apr  1 03:32:20 kmborde /usr/local/sbin/kamailio[2301]: INFO: 
[parser/msg_parser.c:353]: ERROR: bad header field [To: 5]

Apr  1 03:32:20 kmborde /usr/local/sbin/kamailio[2301]: ERROR: 
[parser/msg_parser.c:179]: ERROR: get_hdr_field: bad to header

Apr  1 03:32:20 kmborde /usr/local/sbin/kamailio[2301]: INFO: 
[parser/msg_parser.c:353]: ERROR: bad header field [To: 5]

Apr  1 03:32:20 kmborde /usr/local/sbin/kamailio[2301]: ERROR: 
[parser/msg_parser.c:179]: ERROR: get_hdr_field: bad to header

Apr  1 03:32:20 kmborde /usr/local/sbin/kamailio[2301]: INFO: 
[parser/msg_parser.c:353]: ERROR: bad header field [To: 5]

Apr  1 03:32:20 kmborde /usr/local/sbin/kamailio[2301]: ERROR: 
[msg_translator.c:1943]: ERROR: build_res_buf_from_sip_req: al

as, parse_headers failed

Apr  1 03:32:20 kmborde /usr/local/sbin/kamailio[2301]: WARNING: sanity
[sanity.c:254]: sanity_check(): check_required_headers(): fa

iled to send 400 via sl reply

Apr  1 03:32:23 kmborde /usr/local/sbin/kamailio[2320]: ERROR: 
[parser/msg_parser.c:179]: ERROR: get_hdr_field: bad to header

Apr  1 03:32:23 kmborde /usr/local/sbin/kamailio[2320]: INFO: 
[parser/msg_parser.c:353]: ERROR: bad header field [To: 5]

Apr  1 03:32:23 kmborde /usr/local/sbin/kamailio[2320]: ERROR: 
[parser/msg_parser.c:179]: ERROR: get_hdr_field: bad to header

Apr  1 03:32:23 kmborde /usr/local/sbin/kamailio[2320]: INFO: 
[parser/msg_parser.c:353]: ERROR: bad header field [To: 5]

Apr  1 03:32:23 kmborde /usr/local/sbin/kamailio[2320]: ERROR: 
[parser/msg_parser.c:179]: ERROR: get_hdr_field: bad to header

Apr  1 03:32:23 kmborde /usr/local/sbin/kamailio[2320]: INFO: 
[parser/msg_parser.c:353]: ERROR: bad header field [To: 5]

Apr  1 03:32:23 kmborde /usr/local/sbin/kamailio[2320]: ERROR: 
[msg_translator.c:1943]: ERROR: build_res_buf_from_sip_req: al

as, parse_headers failed

Apr  1 03:32:23 kmborde /usr/local/sbin/kamailio[2320]: WARNING: sanity
[sanity.c:254]: sanity_check(): check_required_headers(): fa

iled to send 400 via sl reply





The only way that I have now for blocking this packet to hit the Kamailio
server is via iptables :

iptables -A INPUT -s 190.22.140.170 -p udp --dport 5060 --jump REJECT



Is there a better way to do this?!

Thanks in advance,

* *

*Ricardo Martinez.-*
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Problem with radius_www_authorize

2012-05-08 Thread Ricardo Martinez
Hello.

We have detected a behavior not specified in the docs.  I ask for support
to solve this issue.

We are using a Radius system to authorize our clients, so, for REGISTER we
use the command



radius_www_authorize(“mydomain.com”)

According to the documentation the possible answers are :



Negative result codes may be interpreted as follows:



-7 (internal error) - some internal error occurred (see syslog);

-6 (nonce reused) - nonce is used more than once;

-5 (no credentials) - credentials were not found in request;

-4 (stale nonce) - stale nonce;

-3 (authorization failed) - RADIUS responded with Access Reject which may
be, for example, due to user not found or wrong password;

-1 (error) - some error occured during authorization (see syslog);



Despite of this, for BadPassword or UserNotExist from the radius answer the
radius_www_authorize command return  “-2” as a retcode.

So, is the documentation missing something?

Or I’m doing something wrong?



Thanks

Ricardo Martinez.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Problem with radius_www_authorize

2012-05-09 Thread Ricardo Martinez
Thanks Juha.!

Regards,


-Mensaje original-
De: sr-users-boun...@lists.sip-router.org
[mailto:sr-users-boun...@lists.sip-router.org] En nombre de Juha Heinanen
Enviado el: miércoles, 09 de mayo de 2012 0:39
Para: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List
Asunto: [SR-Users] Problem with radius_www_authorize

Ricardo Martinez writes:

> Despite of this, for BadPassword or UserNotExist from the radius
> answer the radius_www_authorize command return  “-2” as a retcode.
>
> So, is the documentation missing something?

looks like bug in readme file.  in those cases AUTH_INVALID_PASSWORD is
returned, which is -2.  i'll fix it.

-- juha

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Question about dialog module (state 1)

2012-05-09 Thread Ricardo Martinez
Hello.

I’m using the dialog module to keep control of simultaneous calls.  In some
cases, and I’m still trying to find why this happens, the dialog stays in
“STATE:: 1”, which according to the docs is a dialog which no provisional
response has been sent yet.

Is there a way to eliminate this kind of dialogs???



When I list the dialogs I can see :



dialog::  hash=2523:2040584107

state:: 1

ref_count:: 1

timestart:: 0

timeout:: 0

callid:: 25b8e5354ca0850a4d0bd9c43eeb6...@pxext.redvoiss.net

from_uri:: sip:557100052...@pxext.redvoiss.net

from_tag:: as10dc7c85

caller_contact:: sip:557100052213@200.68.19.44:5060

caller_cseq:: 103

caller_route_set::

caller_bind_addr:: udp:64.76.154.110:5060

callee_bind_addr::

to_uri:: sip:0981985...@pxext.redvoiss.net

to_tag::

callee_contact::

callee_cseq::

callee_route_set::





when I try to eliminate this dialog :

kamctl fifo dlg_terminate_dlg
25b8e5354ca0850a4d0bd9c43eeb6...@pxext.redvoiss.net

500 command 'dlg_terminate_dlg' failed





Thanks in advance,

Regards,

Ricardo Martinez.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Question about dialog module (state 1)

2012-05-14 Thread Ricardo Martinez
Hello.

Thanks Daniel for your answer.

Finally we discover the problem why the calls were stalled in state::1, we
do several checks before an INVITE is t_relayed(), this seems to be too
much for certain clients and then they send a INVITE with the same call-id,
this was generating “state::1” dialogs.  We solve this issue by sending a
“100 – Trying” right after the INVITE arrives to the proxy, in this way the
caller don’t send a new INVITE… it worked like a charm.

Now we’re trying to see how we can handle certain situations where
“state::3” dialogs are kept in memory.  This happened with this type of
calls :



CallerProxyCallee

INVITE   --->

 INVITE   --->

<-- 100 Trying 

   < Ringing --

< Ringing --

   < OK --

< OK -

   < OK --

< OK -

   < OK --

< OK -

   < OK --

< OK -

   < OK --

< OK -





And then the call is out into state::3.



Is there a way to detect this behavior and clear the dialog before it turns
to state 3



Hope someone can help me.



Regards,

Ricardo.-





*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* viernes, 11 de mayo de 2012 3:35
*Para:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
Users Mailing List
*CC:* Ricardo Martinez
*Asunto:* Re: [SR-Users] Question about dialog module (state 1)



Hello,

what version are you using? Can it be that you initiate the dialog in
config (e.g., via dlg_manage()) and then you reply stateless?

Cheers,
Daniel

On 5/9/12 9:53 PM, Ricardo Martinez wrote:

Hello.

I’m using the dialog module to keep control of simultaneous calls.  In some
cases, and I’m still trying to find why this happens, the dialog stays in
“STATE:: 1”, which according to the docs is a dialog which no provisional
response has been sent yet.

Is there a way to eliminate this kind of dialogs???



When I list the dialogs I can see :



dialog::  hash=2523:2040584107

state:: 1

ref_count:: 1

timestart:: 0

timeout:: 0

callid:: 25b8e5354ca0850a4d0bd9c43eeb6...@pxext.redvoiss.net

from_uri:: sip:557100052...@pxext.redvoiss.net

from_tag:: as10dc7c85

caller_contact:: sip:557100052213@200.68.19.44:5060

caller_cseq:: 103

caller_route_set::

caller_bind_addr:: udp:64.76.154.110:5060

callee_bind_addr::

to_uri:: sip:0981985...@pxext.redvoiss.net

to_tag::

callee_contact::

callee_cseq::

callee_route_set::





when I try to eliminate this dialog :

kamctl fifo dlg_terminate_dlg
25b8e5354ca0850a4d0bd9c43eeb6...@pxext.redvoiss.net

500 command 'dlg_terminate_dlg' failed





Thanks in advance,

Regards,

Ricardo Martinez.-






___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



-- 

Daniel-Constantin Mierla - http://www.asipto.com

http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Question about dialog module (state 1)

2012-05-15 Thread Ricardo Martinez
Hello Daniel.

Yes.. finally all resumes to a missing ACK.  The problem is that I can
force the client to repair this…. Is possible to detect this kind of
dialogs in the script?.  I know that I can delete these kind of dialogs via
MI commands, but’s not the idea…….

Hope someone can help me here.



Thanks in advance,



Regards,

Ricardo.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* martes, 15 de mayo de 2012 3:53
*Para:* Ricardo Martinez
*CC:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List
*Asunto:* Re: [SR-Users] Question about dialog module (state 1)



Hello,

so what's the situation now, a missing ACK?

I think such dialogs can be terminated via mi command.

Cheers,
Daniel

On 5/15/12 12:25 AM, Ricardo Martinez wrote:

Hello.

Thanks Daniel for your answer.

Finally we discover the problem why the calls were stalled in state::1, we
do several checks before an INVITE is t_relayed(), this seems to be too
much for certain clients and then they send a INVITE with the same call-id,
this was generating “state::1” dialogs.  We solve this issue by sending a
“100 – Trying” right after the INVITE arrives to the proxy, in this way the
caller don’t send a new INVITE… it worked like a charm.

Now we’re trying to see how we can handle certain situations where
“state::3” dialogs are kept in memory.  This happened with this type of
calls :



CallerProxyCallee

INVITE   --->

 INVITE   --->

<-- 100 Trying 

   < Ringing --

< Ringing --

   < OK --

< OK -

   < OK --

< OK -

   < OK --

< OK -

   < OK --

< OK -

   < OK --

< OK -





And then the call is out into state::3.



Is there a way to detect this behavior and clear the dialog before it turns
to state 3



Hope someone can help me.



Regards,

Ricardo.-





*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* viernes, 11 de mayo de 2012 3:35
*Para:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
Users Mailing List
*CC:* Ricardo Martinez
*Asunto:* Re: [SR-Users] Question about dialog module (state 1)



Hello,

what version are you using? Can it be that you initiate the dialog in
config (e.g., via dlg_manage()) and then you reply stateless?

Cheers,
Daniel

On 5/9/12 9:53 PM, Ricardo Martinez wrote:

Hello.

I’m using the dialog module to keep control of simultaneous calls.  In some
cases, and I’m still trying to find why this happens, the dialog stays in
“STATE:: 1”, which according to the docs is a dialog which no provisional
response has been sent yet.

Is there a way to eliminate this kind of dialogs???



When I list the dialogs I can see :



dialog::  hash=2523:2040584107

state:: 1

ref_count:: 1

timestart:: 0

timeout:: 0

callid:: 25b8e5354ca0850a4d0bd9c43eeb6...@pxext.redvoiss.net

from_uri:: sip:557100052...@pxext.redvoiss.net

from_tag:: as10dc7c85

caller_contact:: sip:557100052213@200.68.19.44:5060

caller_cseq:: 103

caller_route_set::

caller_bind_addr:: udp:64.76.154.110:5060

callee_bind_addr::

to_uri:: sip:0981985...@pxext.redvoiss.net

to_tag::

callee_contact::

callee_cseq::

callee_route_set::





when I try to eliminate this dialog :

kamctl fifo dlg_terminate_dlg
25b8e5354ca0850a4d0bd9c43eeb6...@pxext.redvoiss.net

500 command 'dlg_terminate_dlg' failed





Thanks in advance,

Regards,

Ricardo Martinez.-





___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



-- 

Daniel-Constantin Mierla - http://www.asipto.com

http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda



-- 

Daniel-Constantin Mierla - http://www.asipto.com

http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] EOF Error in pass_fd

2012-06-25 Thread Ricardo Martinez
Hello List.

The last weekend our kamailio process crashed with this error :



 Jun 24 06:55:08 pxh /usr/local/sbin/kamailio[10661]: : 
[pass_fd.c:293]: ERROR: receive_fd: EOF on 29

Jun 24 06:55:08 pxh /usr/local/sbin/kamailio[10542]: ALERT: 
[main.c:751]: child process 10601 exited by a signal 11

Jun 24 06:55:08 pxh /usr/local/sbin/kamailio[10542]: ALERT: 
[main.c:754]: core was generated

Jun 24 06:55:08 pxh /usr/local/sbin/kamailio[10542]: INFO: 
[main.c:766]: INFO: terminating due to SIGCHLD



Can someone tell me what seems to be the problem here?

We’re using  :



version: kamailio 3.2.2 (x86_64/linux) 98ba92-dirty

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: 98ba92 -dirty

compiled on 12:45:36 Feb  2 2012 with gcc 4.4.6



And this is the bt full from gdb



Core was generated by `/usr/local/sbin/kamailio -m 1024'.

Program terminated with signal 11, Segmentation fault.

#0  mi_profile_list (cmd_tree=, param=) at dlg_profile.c:789

789 if ( mi_print_dlg( rpl,
ph->dlg, 0)!=0 )

Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64 nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64

(gdb) bt full

#0  mi_profile_list (cmd_tree=, param=) at dlg_profile.c:789

node = 

rpl_tree = 0x20a6790

rpl = 0x20a67b0

profile = 0x7fe99a2dda00

ph = 0x0

profile_name = 

value = 

i = 

#1  0x7fe9dce287b1 in run_mi_cmd (fifo_stream=) at
../../lib/kmi/mi.h:77

No locals.

#2  mi_fifo_server (fifo_stream=) at fifo_fnc.c:509

mi_cmd = 0x208f8f0

mi_rpl = 

hdl = 0x0

line_len = 41

file_sep = 0x2039017 ""

command = 0x7fe9dfdbdef9 "profile_list_dlgs"

file = 0x7fe9dfd98d78 "/tmp/openser_receiver_27809"

f = 0x2039018

reply_stream = 0x20b0980

#3  0x7fe9dce2a640 in fifo_process (rank=) at
mi_fifo.c:247

fifo_stream = 0x209a0b0

#4  0x7fe9dce2a9de in mi_child_init (rank=0) at mi_fifo.c:211

pid = 

#5  0x004dba41 in init_mod_child (m=0x7fe9dfc6ba10, rank=0) at
sr_module.c:886

No locals.

#6  0x004db9c4 in init_mod_child (m=0x7fe9dfc6bd08, rank=0) at
sr_module.c:883

No locals.

#7  0x004db9c4 in init_mod_child (m=0x7fe9dfc6c248, rank=0) at
sr_module.c:883

No locals.

#8  0x004db9c4 in init_mod_child (m=0x7fe9dfc6c748, rank=0) at
sr_module.c:883

No locals.

#9  0x004db9c4 in init_mod_child (m=0x7fe9dfc6d288, rank=0) at
sr_module.c:883

No locals.

#10 0x004db9c4 in init_mod_child (m=0x7fe9dfc6d928, rank=0) at
sr_module.c:883

No locals.

#11 0x004db9c4 in init_mod_child (m=0x7fe9dfc6dee0, rank=0) at
sr_module.c:883

No locals.

#12 0x004db9c4 in init_mod_child (m=0x7fe9dfc6e1f0, rank=0) at
sr_module.c:883

No locals.

#13 0x004db9c4 in init_mod_child (m=0x7fe9dfc6e5d0, rank=0) at
sr_module.c:883

No locals.

#14 0x004db9c4 in init_mod_child (m=0x7fe9dfc6e830, rank=0) at
sr_module.c:883

No locals.

#15 0x004db9c4 in init_mod_child (m=0x7fe9dfc6ebd0, rank=0) at
sr_module.c:883

No locals.

#16 0x004db9c4 in init_mod_child (m=0x7fe9dfc6f220, rank=0) at
sr_module.c:883

No locals.

#17 0x004db9c4 in init_mod_child (m=0x7fe9dfc6f648, rank=0) at
sr_module.c:883

No locals.

#18 0x004db9c4 in init_mod_child (m=0x7fe9dfc6fa60, rank=0) at
sr_module.c:883

No locals.

#19 0x004db9c4 in init_mod_child (m=0x7fe9dfc6fe40, rank=0) at
sr_module.c:883

No locals.

#20 0x004db9c4 in init_mod_child (m=0x7fe9dfc702c0, rank=0) at
sr_module.c:883

No locals.

#21 0x004db9c4 in init_mod_child (m=0x7fe9dfc70ae8, rank=0) at
sr_module.c:883

No locals.

---Type  to continue, or q  to quit---

#22 0x004db9c4 in init_mod_child (m=0x7fe9dfc70e18, rank=0) at
sr_module.c:883

No locals.

#23 0x004db9c4 in init_mod_child (m=0x7fe9dfc71100, rank=0) at
sr_module.c:883

No locals.

#24 0x004db9c4 in init_mod_child (m=0x7fe9dfc716c0, rank=0) at
sr_module.c:883

No locals.

#25 0x004db9c4 in init_mod_child (m=0x7fe9dfc71df0, rank=0) at
sr_module.c:883

No locals.

#26 0x004db9c4 in init_mod_child (m=0x7fe9dfc723c0, rank=0) at
sr_module.c:883

No locals.

#27 0x

Re: [SR-Users] EOF Error in pass_fd

2012-06-25 Thread Ricardo Martinez
Thanks Daniel.

We are going to do some test with the new patch, but before can you guide
me on how to download only the modification via git ¿



Thanks!!.



Best Regards,

Ricardo Martinez.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* lunes, 25 de junio de 2012 12:43
*Para:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
Users Mailing List
*CC:* Ricardo Martinez
*Asunto:* Re: [SR-Users] EOF Error in pass_fd



Hello,

there was a wrong unlocking of the profile while printing its content via
MI, that could caused a race and eventually this kind of crash (in the case
a dlg was added/removed in/from profile while the mi command was run).

I committed a patch, you have to use latest branch 3.2. Let us know if all
goes fine now.

Cheers,
Daniel

On 6/25/12 4:45 PM, Ricardo Martinez wrote:

Hello List.

The last weekend our kamailio process crashed with this error :



 Jun 24 06:55:08 pxh /usr/local/sbin/kamailio[10661]: : 
[pass_fd.c:293]: ERROR: receive_fd: EOF on 29

Jun 24 06:55:08 pxh /usr/local/sbin/kamailio[10542]: ALERT: 
[main.c:751]: child process 10601 exited by a signal 11

Jun 24 06:55:08 pxh /usr/local/sbin/kamailio[10542]: ALERT: 
[main.c:754]: core was generated

Jun 24 06:55:08 pxh /usr/local/sbin/kamailio[10542]: INFO: 
[main.c:766]: INFO: terminating due to SIGCHLD



Can someone tell me what seems to be the problem here?

We’re using  :



version: kamailio 3.2.2 (x86_64/linux) 98ba92-dirty

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: 98ba92 -dirty

compiled on 12:45:36 Feb  2 2012 with gcc 4.4.6



And this is the bt full from gdb



Core was generated by `/usr/local/sbin/kamailio -m 1024'.

Program terminated with signal 11, Segmentation fault.

#0  mi_profile_list (cmd_tree=, param=) at dlg_profile.c:789

789 if ( mi_print_dlg( rpl,
ph->dlg, 0)!=0 )

Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64 nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64

(gdb) bt full

#0  mi_profile_list (cmd_tree=, param=) at dlg_profile.c:789

node = 

rpl_tree = 0x20a6790

rpl = 0x20a67b0

profile = 0x7fe99a2dda00

ph = 0x0

profile_name = 

value = 

i = 

#1  0x7fe9dce287b1 in run_mi_cmd (fifo_stream=) at
../../lib/kmi/mi.h:77

No locals.

#2  mi_fifo_server (fifo_stream=) at fifo_fnc.c:509

mi_cmd = 0x208f8f0

mi_rpl = 

hdl = 0x0

line_len = 41

file_sep = 0x2039017 ""

command = 0x7fe9dfdbdef9 "profile_list_dlgs"

file = 0x7fe9dfd98d78 "/tmp/openser_receiver_27809"

f = 0x2039018

reply_stream = 0x20b0980

#3  0x7fe9dce2a640 in fifo_process (rank=) at
mi_fifo.c:247

fifo_stream = 0x209a0b0

#4  0x7fe9dce2a9de in mi_child_init (rank=0) at mi_fifo.c:211

pid = 

#5  0x004dba41 in init_mod_child (m=0x7fe9dfc6ba10, rank=0) at
sr_module.c:886

No locals.

#6  0x004db9c4 in init_mod_child (m=0x7fe9dfc6bd08, rank=0) at
sr_module.c:883

No locals.

#7  0x004db9c4 in init_mod_child (m=0x7fe9dfc6c248, rank=0) at
sr_module.c:883

No locals.

#8  0x004db9c4 in init_mod_child (m=0x7fe9dfc6c748, rank=0) at
sr_module.c:883

No locals.

#9  0x004db9c4 in init_mod_child (m=0x7fe9dfc6d288, rank=0) at
sr_module.c:883

No locals.

#10 0x004db9c4 in init_mod_child (m=0x7fe9dfc6d928, rank=0) at
sr_module.c:883

No locals.

#11 0x004db9c4 in init_mod_child (m=0x7fe9dfc6dee0, rank=0) at
sr_module.c:883

No locals.

#12 0x004db9c4 in init_mod_child (m=0x7fe9dfc6e1f0, rank=0) at
sr_module.c:883

No locals.

#13 0x004db9c4 in init_mod_child (m=0x7fe9dfc6e5d0, rank=0) at
sr_module.c:883

No locals.

#14 0x004db9c4 in init_mod_child (m=0x7fe9dfc6e830, rank=0) at
sr_module.c:883

No locals.

#15 0x004db9c4 in init_mod_child (m=0x7fe9dfc6ebd0, rank=0) at
sr_module.c:883

No locals.

#16 0x004db9c4 in init_mod_child (m=0x7fe9dfc6f220, rank=0) at
sr_module.c:883

No locals.

#17 0x004db9c4 in init_mod_child (m=0x7fe9dfc6f648, rank=0) at
sr_module.c:883

No locals.

#18 0x004db9c4 in init_mod_child (m=0x7fe9dfc6fa60, rank=

[SR-Users] Question about git update

2012-06-26 Thread Ricardo Martinez
Hello.

Can someone help me on how to update a module patch using GIT?

I need to update the module dialog…..

Currently I have the directory



/usr/local/src/kamailio-3.2



And under  this I have



kamailio/



all this was created using :



git clone --depth 1 git://git.sip-router.org/sip-router kamailio

  cd kamailio

  git checkout -b 3.2 origin/3.2



I’ll appreciate any help.



Thanks in advance,

Ricardo Martinez.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] avp_radius load time high

2012-09-12 Thread Ricardo Martinez
 3700/14974727/10746/18446744073709546022/4047.223514]
>
> Sep 12 18:39:44  benchmark (timer timer-tranum [1]): 165921 [
> msgs/total/min/max/avg - LR:
> 100/5153736/15749/18446744073708657622/51537.36 | GB:
> 3800/20128463/10746/18446744073709546022/5296.963947]
>
> Sep 12 18:40:31  benchmark (timer timer-tranum [1]): 127615 [
> msgs/total/min/max/avg - LR:
> 100/18446744073709161716/20690/18446744073708793559/184467440737091616.00
> | GB: 3900/19738563/10746/18446744073709546022/5061.17]
>
> Sep 12 18:41:21  benchmark (timer timer-tranum [1]): 47762 [
> msgs/total/min/max/avg - LR:
> 100/9001175/18909/18446744073708632234/90011.75 | GB:
> 4000/28739738/10746/18446744073709546022/7184.934500]
>
> Sep 12 18:42:11  benchmark (timer timer-tranum [1]): 62944 [
> msgs/total/min/max/avg - LR:
> 100/18446744073708163674/17934/18446744073708825788/184467440737081632.00
> | GB: 4100/27351796/10746/18446744073709546022/6671.169756]
>
>
>
>
>
> If the output is in microseconds and I have from time to time (for the
> last 100 messages) values like 184467440737081632.00 microsecs
>
> IS THIS NORMAL?
>
> Then it backs to a more rational value : 90011.75 microsecs.
>
> I also made measures in my Radius Server and is answering with average
> time around 0.01 secs.
>
> So… what could it be the problem?.. Could be the RadiusClient-ng ?
>
> In my attempt to solve the issue I increased the childrens for the
> kamailio server from 16 to 60, but the problem persists.
>
> Can someone help me here?
>
>
>
> Best Regards,
>
> Ricardo Martinez.-
>
>
>
>
>
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] avp_radius load time high

2012-09-13 Thread Ricardo Martinez
Hello.

Could it be that this number maybe represent a failed connection to the
radius server?



Any help please?



Regards,

Ricardo.-





*De:* Ricardo Martinez [mailto:rmarti...@redvoiss.net]
*Enviado el:* miércoles, 12 de septiembre de 2012 22:43
*Para:* sr-users@lists.sip-router.org
*Asunto:* avp_radius load time high





Hello List.

I’m having the next issue.  I have a kamailio v3.2  working with a Radius
server as a backend.  All the INVITE’s coming to the kamailio server are
challenged against the Radius server and then avp_load is called from
Radius server too.   I’m having excessive delay times when I have near 10
call per second.  So I find it very weird.  I have made a benchmark for the
avp_load :

bm_start_timer("timer-tranum");

if( !radius_load_caller_avps("$fU@$fd")) {

sl_send_reply("403","Forbidden - Estamos experimentando problemas");

exit;

} else {

xlog("L_INFO", "[$ci]:[AUTH_REQUEST]: ok");

 };

bm_log_timer("timer-tranum");



and this is the output :



Sep 12 18:26:07  benchmark (timer timer-tranum [1]): 112441 [
msgs/total/min/max/avg - LR:
100/18446744073695545751/23297/18446744073709236247/184467440736955456.00
| GB:
2100/18446744073708471097/10746/18446744073709542058/8784163844623081.00]

Sep 12 18:26:55  benchmark (timer timer-tranum [1]): 280543 [
msgs/total/min/max/avg - LR:
100/10238598/21317/18446744073708596212/102385.98 | GB:
2200/9158079/10746/18446744073709542058/4162.763182]

Sep 12 18:28:20  benchmark (timer timer-tranum [1]): 312902 [
msgs/total/min/max/avg - LR:
100/5048656/15491/18446744073709546022/50486.56 | GB:
2300/14206735/10746/18446744073709546022/6176.841304]

Sep 12 18:28:31  benchmark (timer timer-tranum [1]): 301818 [
msgs/total/min/max/avg - LR:
100/5622716/43785/18446744073708810522/56227.16 | GB:
2400/19829451/10746/18446744073709546022/8262.271250]

Sep 12 18:28:44  benchmark (timer timer-tranum [1]): 18446744073708689124 [
msgs/total/min/max/avg - LR:
100/1329199/59661/18446744073709167366/13291.99 | GB:
2500/21158650/10746/18446744073709546022/8463.46]

Sep 12 18:29:26  benchmark (timer timer-tranum [1]): 44160 [
msgs/total/min/max/avg - LR:
100/18446744073701320457/19576/18446744073708922050/184467440737013216.00
| GB: 2600/12927491/10746/18446744073709546022/4972.111923]

Sep 12 18:30:18  benchmark (timer timer-tranum [1]): 218573 [
msgs/total/min/max/avg - LR:
100/18446744073707306935/17459/18446744073708876520/184467440737073056.00
| GB: 2700/10682810/10746/18446744073709546022/3956.596296]

Sep 12 18:31:06  benchmark (timer timer-tranum [1]): 132751 [
msgs/total/min/max/avg - LR:
100/9611955/17057/18446744073708726431/96119.55 | GB:
2800/20294765/10746/18446744073709546022/7248.130357]

Sep 12 18:31:55  benchmark (timer timer-tranum [1]): 18859 [
msgs/total/min/max/avg - LR:
100/18446744073705270953/18859/18446744073708747515/184467440737052704.00
| GB: 2900/16014102/10746/18446744073709546022/5522.104138]

Sep 12 18:32:48  benchmark (timer timer-tranum [1]): 61954 [
msgs/total/min/max/avg - LR:
100/7124234/18036/18446744073708596768/71242.34 | GB:
3000/23138336/10746/18446744073709546022/7712.778667]

Sep 12 18:33:39  benchmark (timer timer-tranum [1]): 53489 [
msgs/total/min/max/avg - LR:
100/18446744073707180114/18177/18446744073708790040/184467440737071808.00
| GB: 3100/20766834/10746/18446744073709546022/6698.978710]

Sep 12 18:34:35  benchmark (timer timer-tranum [1]): 60604 [
msgs/total/min/max/avg - LR:
100/18446744073701108277/33983/18446744073708839351/184467440737011072.00
| GB: 3200/12323495/10746/18446744073709546022/3851.092187]

Sep 12 18:35:24  benchmark (timer timer-tranum [1]): 54705 [
msgs/total/min/max/avg - LR:
100/7185862/15880/18446744073708608536/71858.62 | GB:
3300/19509357/10746/18446744073709546022/5911.926364]

Sep 12 18:36:21  benchmark (timer timer-tranum [1]): 60356 [
msgs/total/min/max/avg - LR:
100/18446744073705699677/19466/18446744073708844524/184467440737056992.00
| GB: 3400/15657418/10746/18446744073709546022/4605.122941]

Sep 12 18:37:14  benchmark (timer timer-tranum [1]): 18446744073708679441 [
msgs/total/min/max/avg - LR:
100/3506212/16102/18446744073708791471/35062.12 | GB:
3500/19163630/10746/18446744073709546022/5475.322857]

Sep 12 18:38:07  benchmark (timer timer-tranum [1]): 93933 [
msgs/total/min/max/avg - LR:
100/18446744073704680760/17569/18446744073708741284/184467440737046816.00
| GB: 3600/14292774/10746/18446744073709546022/3970.215000]

Sep 12 18:38:58  benchmark (timer timer-tranum [1]): 142777 [
msgs/total/min/max/avg - LR:
100/681953/15933/18446744073708708694/6819.53 | GB:
3700/14974727/10746/18446744073709546022/4047.223514]

Sep 12 18:39:44  benchmark (timer timer-tranum [1]): 165921 [
msgs/total/min/max/avg - LR:
100/5153736/15749/18446744073708657622/51537.36 | GB:
3800/20128463/10746/1844

Re: [SR-Users] avp_radius load time high

2012-09-14 Thread Ricardo Martinez
Hi Daniel.

THanks for your answer.  Can you guide where to patch the radius module.
I’ve been looking the module misc_radius but I can’t find where to put more
debug…..

Thanks again.



Ricardo.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* jueves, 13 de septiembre de 2012 16:19
*Para:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
Users Mailing List
*CC:* Ricardo Martinez
*Asunto:* Re: [SR-Users] avp_radius load time high



Hello,

On 9/13/12 9:22 PM, Ricardo Martinez wrote:

Hello.

Could it be that this number maybe represent a failed connection to the
radius server?

I am not using radius myself, but I would try some generic troubleshooting:
- watch the network traffic between with the radius server to see if there
are delays between the requests and responses
- if you do also user authentication with radius, do you notice same
problems?
- if you run with debug 3, can you spot the delays in debug messages? Maybe
you can patch the radius module to print more log messages around the code
that sends the radius requests and waits for response

Cheers,
Daniel



Any help please?



Regards,

Ricardo.-





*De:* Ricardo Martinez [mailto:rmarti...@redvoiss.net]
*Enviado el:* miércoles, 12 de septiembre de 2012 22:43
*Para:* sr-users@lists.sip-router.org
*Asunto:* avp_radius load time high





Hello List.

I’m having the next issue.  I have a kamailio v3.2  working with a Radius
server as a backend.  All the INVITE’s coming to the kamailio server are
challenged against the Radius server and then avp_load is called from
Radius server too.   I’m having excessive delay times when I have near 10
call per second.  So I find it very weird.  I have made a benchmark for the
avp_load :

bm_start_timer("timer-tranum");

if( !radius_load_caller_avps("$fU@$fd")) {

sl_send_reply("403","Forbidden - Estamos experimentando problemas");

exit;

} else {

xlog("L_INFO", "[$ci]:[AUTH_REQUEST]: ok");

 };

bm_log_timer("timer-tranum");



and this is the output :



Sep 12 18:26:07  benchmark (timer timer-tranum [1]): 112441 [
msgs/total/min/max/avg - LR:
100/18446744073695545751/23297/18446744073709236247/184467440736955456.00
| GB:
2100/18446744073708471097/10746/18446744073709542058/8784163844623081.00]

Sep 12 18:26:55  benchmark (timer timer-tranum [1]): 280543 [
msgs/total/min/max/avg - LR:
100/10238598/21317/18446744073708596212/102385.98 | GB:
2200/9158079/10746/18446744073709542058/4162.763182]

Sep 12 18:28:20  benchmark (timer timer-tranum [1]): 312902 [
msgs/total/min/max/avg - LR:
100/5048656/15491/18446744073709546022/50486.56 | GB:
2300/14206735/10746/18446744073709546022/6176.841304]

Sep 12 18:28:31  benchmark (timer timer-tranum [1]): 301818 [
msgs/total/min/max/avg - LR:
100/5622716/43785/18446744073708810522/56227.16 | GB:
2400/19829451/10746/18446744073709546022/8262.271250]

Sep 12 18:28:44  benchmark (timer timer-tranum [1]): 18446744073708689124 [
msgs/total/min/max/avg - LR:
100/1329199/59661/18446744073709167366/13291.99 | GB:
2500/21158650/10746/18446744073709546022/8463.46]

Sep 12 18:29:26  benchmark (timer timer-tranum [1]): 44160 [
msgs/total/min/max/avg - LR:
100/18446744073701320457/19576/18446744073708922050/184467440737013216.00
| GB: 2600/12927491/10746/18446744073709546022/4972.111923]

Sep 12 18:30:18  benchmark (timer timer-tranum [1]): 218573 [
msgs/total/min/max/avg - LR:
100/18446744073707306935/17459/18446744073708876520/184467440737073056.00
| GB: 2700/10682810/10746/18446744073709546022/3956.596296]

Sep 12 18:31:06  benchmark (timer timer-tranum [1]): 132751 [
msgs/total/min/max/avg - LR:
100/9611955/17057/18446744073708726431/96119.55 | GB:
2800/20294765/10746/18446744073709546022/7248.130357]

Sep 12 18:31:55  benchmark (timer timer-tranum [1]): 18859 [
msgs/total/min/max/avg - LR:
100/18446744073705270953/18859/18446744073708747515/184467440737052704.00
| GB: 2900/16014102/10746/18446744073709546022/5522.104138]

Sep 12 18:32:48  benchmark (timer timer-tranum [1]): 61954 [
msgs/total/min/max/avg - LR:
100/7124234/18036/18446744073708596768/71242.34 | GB:
3000/23138336/10746/18446744073709546022/7712.778667]

Sep 12 18:33:39  benchmark (timer timer-tranum [1]): 53489 [
msgs/total/min/max/avg - LR:
100/18446744073707180114/18177/18446744073708790040/184467440737071808.00
| GB: 3100/20766834/10746/18446744073709546022/6698.978710]

Sep 12 18:34:35  benchmark (timer timer-tranum [1]): 60604 [
msgs/total/min/max/avg - LR:
100/18446744073701108277/33983/18446744073708839351/184467440737011072.00
| GB: 3200/12323495/10746/18446744073709546022/3851.092187]

Sep 12 18:35:24  benchmark (timer timer-tranum [1]): 54705 [
msgs/total/min/max/avg - LR:
100/7185862/15880/18446744073708608536/71858.62 | GB:
3300/19509357/10746/18446744073709546022/5911.926364]

Sep 12 18:36:21  benchm

Re: [SR-Users] avp_radius load time high

2012-09-14 Thread Ricardo Martinez
Hi Juha.
I'm using another Radius server (Radiator) with a ORACLE database.
Is there a way to add debug or information in the radiusclient-ng to see
if this is the bottleneck?

Thanks.
Ricardo.-


-Mensaje original-
De: sr-users-boun...@lists.sip-router.org
[mailto:sr-users-boun...@lists.sip-router.org] En nombre de Juha Heinanen
Enviado el: viernes, 14 de septiembre de 2012 10:09
Para: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List
Asunto: Re: [SR-Users] avp_radius load time high

if you are using freeradius server, then check that your sql module
configurations have enough sql connections to server:

# number of sql connections to make to server
num_sql_socks = xx

-- juha

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Dialog Module : "inconsitent dlg timer data"

2012-09-20 Thread Ricardo Martinez
Hello.

Can someone explain to me why i’m getting this error :



WARNING: dialog [dlg_req_within.c:173]: inconsitent dlg timer data on dlg
0xb565c500 [2166:2082643875] with clid '
5ed68b60-fdbe-4aa7-819e-0002a400e27c@64.76.155.86' and tags '5e604a9ea4'
'ed505c1da4'



This is the output for dlg_list_ctx



kamctl fifo dlg_list_ctx

dialog::  hash=2995:55475986

state:: 4

ref_count:: 2

timestart:: 1348177242

timeout:: 15084496

callid:: 33d68b60-a09a-b1dc-8198-0002a400e27c@64.76.155.86

from_uri:: sip:557100050994@64.76.155.86

from_tag:: 3360b198a4

caller_contact:: sip:557100050994@64.76.155.86

caller_cseq:: 226

caller_route_set::

caller_bind_addr:: udp:64.76.155.82:5060

callee_bind_addr:: udp:64.76.155.82:5060

to_uri:: sip:0267005622408596@64.76.155.82

to_tag:: ba507815a4

callee_contact:: sip:0267005622408596@64.76.155.130

callee_cseq:: 226

callee_route_set::

context::



I can’t find the problem.

I’m using this dialog params :

#  dialog params --

modparam("dialog", "dlg_flag", 31)

modparam("dialog", "profiles_with_value","gwid" )

modparam("dialog", "default_timeout",7200)

modparam("dialog", "timeout_avp", "$avp(i:10)")

modparam("dialog", "dlg_match_mode", 1)



$avp(i:10)=10



  $dlg_ctx(timeout_bye) = 4;

dlg_manage();







Regards,

Ricardo
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Dialog Module : "inconsitent dlg timer data"

2012-09-21 Thread Ricardo Martinez
Daniel.

Hi.  Thanks for your answer.  Yes, could it be like you mention.  I’m
copying part of my event-route :

route {



….



$sht(b=>$ci::check)=0;

..

}



event_route[tm:local-request] {

xlog("L_INFO", "[$ci] [LOCAL REQUEST] :: Routing locally generated
$rm to <$ru>");



if (is_method("BYE") && $sht(b=>$ci::check)==0) {

$var(dur)=$Ts-$dlg(start_ts);

xlog("L_INFO", "[$ci] [LOCAL REQUEST] :: Tiempo inicial:
$(dlg(start_ts){s.ftime,%a %b %d %H:%M:%S %Y})");

xlog("L_INFO", "[$ci] [LOCAL REQUEST] :: Tiempo final:
$Tf");

xlog("L_INFO", "[$ci] [LOCAL REQUEST] :: Duracion:
$var(dur)");

}



if($sht(b=>$ci::timeout)==0){

xlog("L_INFO", "[$ci] [LOCAL REQUEST] :: Append Hint: call
too long");

append_hf("Hint: Call too long\r\n");

}else{

xlog("L_INFO", "[$ci] [LOCAL REQUEST] :: Append Hint:
credit expired");

append_hf("Hint: credit expired\r\n");

}



if($sht(b=>$ci::check)==1){

xlog("L_INFO", "[$ci] [LOCAL REQUEST] :: Remove hash");

sht_rm_name_re("b=>$ci::timeout");

sht_rm_name_re("b=>$ci::check");

} else {

$sht(b=>$ci::check)=1;

}



}



As you said, we have two BYEs when the timeout expires, for the first one,
we print some debug with initial and final times for the call, and then for
the second we try to avoid this debug information, so we have a variable
“check” to do this.  So, if you think this is a WARNING message causing no
problem, that is ok for us.  Beside this the call goes fine.



Regards,

Ricardo



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* viernes, 21 de septiembre de 2012 4:43
*Para:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
Users Mailing List
*CC:* Ricardo Martinez
*Asunto:* Re: [SR-Users] Dialog Module : "inconsitent dlg timer data"



Hello,

that message is printed when the 200ok for a self-generated BYE is
received. Since there are two BYEs and the 200ok responses came at the same
time, it might be a race to remove the dialog from timer list, which should
be safe if the dialog is already removed. Perhaps this warning should be
printed just as debug message or try to synchronize  for this operation.

I will analyze a bit more and see the best option.

But otherwise, apart of the warning message, all goes fine, right?

Cheers,
Daniel

On 9/20/12 11:48 PM, Ricardo Martinez wrote:

Hello.

Can someone explain to me why i’m getting this error :



WARNING: dialog [dlg_req_within.c:173]: inconsitent dlg timer data on dlg
0xb565c500 [2166:2082643875] with clid '
5ed68b60-fdbe-4aa7-819e-0002a400e27c@64.76.155.86' and tags '5e604a9ea4'
'ed505c1da4'



This is the output for dlg_list_ctx



kamctl fifo dlg_list_ctx

dialog::  hash=2995:55475986

state:: 4

ref_count:: 2

timestart:: 1348177242

timeout:: 15084496

callid:: 33d68b60-a09a-b1dc-8198-0002a400e27c@64.76.155.86

from_uri:: sip:557100050994@64.76.155.86

from_tag:: 3360b198a4

caller_contact:: sip:557100050994@64.76.155.86

caller_cseq:: 226

caller_route_set::

caller_bind_addr:: udp:64.76.155.82:5060

callee_bind_addr:: udp:64.76.155.82:5060

to_uri:: sip:0267005622408596@64.76.155.82

to_tag:: ba507815a4

callee_contact:: sip:0267005622408596@64.76.155.130

callee_cseq:: 226

callee_route_set::

context::



I can’t find the problem.

I’m using this dialog params :

#  dialog params --

modparam("dialog", "dlg_flag", 31)

modparam("dialog", "profiles_with_value","gwid" )

modparam("dialog", "default_timeout",7200)

modparam("dialog", "timeout_avp", "$avp(i:10)")

modparam("dialog", "dlg_match_mode", 1)



$avp(i:10)=10



  $dlg_ctx(timeout_bye) = 4;

dlg_manage();







Regards,

Ricardo






___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



-- 

Daniel-Constantin Mierla - http://www.asipto.com

http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat

Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 -
http://asipto.com/u/katu
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Question about CPU

2012-09-25 Thread Ricardo Martinez
Hello.

Is normal this output from the “top” command?!

I have a kamailio with 16 children receiving calls at rate of 30cps and
using the dialog module to timeout the calls :



This is the top command :

Tasks: 168 total,   2 running, 166 sleeping,   0 stopped,   0 zombie

Cpu0  : 56.0%us,  0.7%sy,  0.0%ni, 43.4%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st

Cpu1  :  6.3%us,  3.0%sy,  0.0%ni, 87.8%id,  0.0%wa,  0.7%hi,  2.3%si,
0.0%st

Cpu2  :  0.3%us,  0.3%sy,  0.0%ni, 99.3%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st

Cpu3  :  0.7%us,  0.3%sy,  0.0%ni, 99.0%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st

Mem:   3924912k total,   535700k used,  3389212k free,20236k buffers

Swap:  6291448k total,0k used,  6291448k free,   226120k cached



  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+
COMMAND

 *2566 root  20   0 1163m  27m  23m R 56.2  0.7   2:08.32
kamailio   *

 1103 root  20   0  249m 1656  924 S  2.7  0.0   1:32.89
rsyslogd

 2525 root  20   0 1163m  27m  23m S  0.7  0.7   0:02.93
kamailio

 2527 root  20   0 1163m  27m  23m S  0.7  0.7   0:03.11
kamailio

 2528 root  20   0 1163m  27m  23m S  0.7  0.7   0:02.89
kamailio

 2529 root  20   0 1163m  27m  23m S  0.7  0.7   0:03.13
kamailio

 2535 root  20   0 1163m  27m  23m S  0.7  0.7   0:02.86
kamailio

 2537 root  20   0 1163m  27m  23m S  0.7  0.7   0:02.85
kamailio

 2538 root  20   0 1163m  27m  23m S  0.7  0.7   0:03.17
kamailio

 2541 root  20   0 1163m  27m  23m S  0.7  0.7   0:02.91
kamailio

 2542 root  20   0 1163m  27m  23m S  0.7  0.7   0:03.07
kamailio

 2543 root  20   0 1163m  27m  23m S  0.7  0.7   0:03.12
kamailio

 2544 root  20   0 1163m  27m  23m S  0.7  0.7   0:02.64
kamailio

 2549 root  20   0 1163m  27m  23m S  0.7  0.7   0:03.10
kamailio

 2551 root  20   0 1163m  27m  23m S  0.7  0.7   0:03.14 kamailio


 2552 root  20   0 1163m  27m  23m S  0.7  0.7   0:03.00
kamailio

 2495 root  20   0 15088 1240  900 R  0.3  0.0   0:04.10
top

 2526 root  20   0 1163m  27m  23m S  0.3  0.7   0:02.83
kamailio

 2532 root  20   0 1163m  27m  23m S  0.3  0.7   0:02.87
kamailio

1 root  20   0 19396 1500 1192 S  0.0  0.0   0:02.86
init

2 root  20   0 000 S  0.0  0.0   0:00.01
kthreadd

3 root  RT   0 000 S  0.0  0.0   0:00.00
migration/0

4 root  20   0 000 S  0.0  0.0   0:00.00
ksoftirqd/0

5 root  RT   0 000 S  0.0  0.0   0:00.00
migration/0

6 root  RT   0 000 S  0.0  0.0   0:00.00 watchdog/0



The question is : I always see the process PID : 2566 using more CPU than
the rest of the childrens.

Is this normal?



Regards,

Ricardo Martinez-.
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Question about CPU

2012-09-26 Thread Ricardo Martinez
Hi Daniel.

This is the output for TOP



top - 09:08:50 up 16:19,  3 users,  load average: 0.23, 0.12, 0.06

Tasks: 160 total,   1 running, 159 sleeping,   0 stopped,   0 zombie

Cpu0  : 45.1%us,  1.0%sy,  0.0%ni, 53.9%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st

Cpu1  :  8.9%us,  4.6%sy,  0.0%ni, 83.8%id,  0.0%wa,  0.7%hi,  2.0%si,
0.0%st

Cpu2  :  1.9%us,  1.9%sy,  0.0%ni, 96.1%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st

Cpu3  :  1.3%us,  1.3%sy,  0.0%ni, 97.4%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st

Mem:   3924912k total,   706492k used,  3218420k free,59448k buffers

Swap:  6291448k total,0k used,  6291448k free,   348716k cached



  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+
COMMAND

 *3804 root  20   0 1163m  25m  20m S 44.2  0.7   0:40.66
kamailio   *

 1103 root  20   0  249m 1704  968 S  5.9  0.0   5:27.39
rsyslogd

 3789 root  20   0 1163m  26m  21m S  2.3  0.7   0:04.59
kamailio

 3796 root  20   0 1163m  26m  21m S  2.3  0.7   0:04.38
kamailio

 3802 root  20   0 1163m  26m  21m S  2.3  0.7   0:04.31
kamailio

 3794 root  20   0 1163m  26m  21m S  2.0  0.7   0:04.45
kamailio

 3803 root  20   0 1163m  26m  21m S  2.0  0.7   0:04.60
kamailio

 3790 root  20   0 1163m  26m  21m S  1.6  0.7   0:04.48
kamailio

 3792 root  20   0 1163m  26m  21m S  1.6  0.7   0:04.50
kamailio

 3799 root  20   0 1163m  26m  21m S  1.6  0.7   0:04.68
kamailio

 3649 root  20   0 15088 1232  900 R  1.3  0.0   0:07.83
top

 3805 root  20   0 1163m  24m  20m S  0.3  0.6   0:00.61 kamailio



And this is the output for “kamctl ps”



[root@vLCR kamailio]# kamctl ps

Process::  ID=0 PID=3781 Type=attendant

Process::  ID=1 PID=3789 Type=udp receiver child=0 sock=64.76.154.210:5060

Process::  ID=2 PID=3790 Type=udp receiver child=1 sock=64.76.154.210:5060

Process::  ID=3 PID=3792 Type=udp receiver child=2 sock=64.76.154.210:5060

Process::  ID=4 PID=3794 Type=udp receiver child=3 sock=64.76.154.210:5060

Process::  ID=5 PID=3796 Type=udp receiver child=4 sock=64.76.154.210:5060

Process::  ID=6 PID=3799 Type=udp receiver child=5 sock=64.76.154.210:5060

Process::  ID=7 PID=3802 Type=udp receiver child=6 sock=64.76.154.210:5060

Process::  ID=8 PID=3803 Type=udp receiver child=7 sock=64.76.154.210:5060

*Process::  ID=9 PID=3804 Type=slow timer*

Process::  ID=10 PID=3805 Type=timer

Process::  ID=11 PID=3807 Type=MI FIFO

Process::  ID=12 PID=3810 Type=TIMER RT

Process::  ID=13 PID=3811 Type=MI DATAGRAM

Process::  ID=14 PID=3812 Type=ctl handler



Seems that the “Slow timer” is taking too much CPU.  Is this normal?.  I’m
managing all the calls coming through the server with the dialog module
(dlg_manage ), as I mention I have a rate of 30cps and sometimes I have
4500 active calls….

Could be some way to release some of the CPU use by this process?



Thanks again.

Regards,

Ricardo.-







*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* martes, 25 de septiembre de 2012 19:21
*Para:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
Users Mailing List
*CC:* Ricardo Martinez
*Asunto:* Re: [SR-Users] Question about CPU



Hello,

what is the type of the process? Run 'kamctl ps' and see the description
for that pid.

Cheers,
Daniel

On 9/25/12 11:49 PM, Ricardo Martinez wrote:

Hello.

Is normal this output from the “top” command?!

I have a kamailio with 16 children receiving calls at rate of 30cps and
using the dialog module to timeout the calls :



This is the top command :

Tasks: 168 total,   2 running, 166 sleeping,   0 stopped,   0 zombie

Cpu0  : 56.0%us,  0.7%sy,  0.0%ni, 43.4%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st

Cpu1  :  6.3%us,  3.0%sy,  0.0%ni, 87.8%id,  0.0%wa,  0.7%hi,  2.3%si,
0.0%st

Cpu2  :  0.3%us,  0.3%sy,  0.0%ni, 99.3%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st

Cpu3  :  0.7%us,  0.3%sy,  0.0%ni, 99.0%id,  0.0%wa,  0.0%hi,  0.0%si,
0.0%st

Mem:   3924912k total,   535700k used,  3389212k free,20236k buffers

Swap:  6291448k total,0k used,  6291448k free,   226120k cached



  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+
COMMAND

 *2566 root  20   0 1163m  27m  23m R 56.2  0.7   2:08.32
kamailio   *

 1103 root  20   0  249m 1656  924 S  2.7  0.0   1:32.89
rsyslogd

 2525 root  20   0 1163m  27m  23m S  0.7  0.7   0:02.93
kamailio

 2527 root  20   0 1163m  27m  23m S  0.7  0.7   0:03.11
kamailio

 2528 root  20   0 1163m  27m  23m S  0.7  0.7   0:02.89
kamailio

 2529 root  20   0 1163m  27m  23m S  0.7  0.7   0:03.13
kamailio

 2535 root  20   0 1163m  27m  23m S  0.7  0.7   0:02.86
kamailio

 2537 root  20   0 1163m  27m  23m S  0.7  0.7   0:02.85
kamailio

 2538 root  20   0 1163m  27m  23m S  0.7  0.7   0:03.17
kamailio

 2541 root  20   0 1163m  27m  23m S  0.7  0.7   0:02.91
kamailio

 2542 root  20

[SR-Users] Kamailio crash

2012-11-21 Thread Ricardo Martinez
Hello

In the last three days my kamailio process has  crashed two times.  I
obtained the core file and see it, this is the output.  Can someone check
what is the problem?



Core was generated by `/usr/local/sbin/kamailio -m 1024'.

Program terminated with signal 11, Segmentation fault.

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

56  v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];

Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64 nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64

(gdb) bt

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

#1  process_mi_params (cmd_tree=, param=) at dlg_hash.c:1057

#2  mi_terminate_dlgs (cmd_tree=, param=) at dlg_hash.c:1165

#3  0x7fc789996370 in run_mi_cmd (rx_sock=11, tx_sock=12) at
../../lib/kmi/mi.h:77

#4  mi_datagram_server (rx_sock=11, tx_sock=12) at datagram_fnc.c:525

#5  0x7fc789998509 in datagram_process (rank=) at
mi_datagram.c:346

#6  0x7fc78999a09c in mi_child_init (rank=) at
mi_datagram.c:296

#7  0x004dbd61 in ?? ()

#8  0x7fc78d99aab8 in ?? ()

#9  0x7fc78d0181cd in pkg_proc_update_real_used (data=) at pkg_stats.c:141

#10 0x0052b423 in ?? ()

#11 0x7fc78d8a2830 in ?? ()

#12 0x in ?? ()

(gdb)



I’m using kamailio

[root@pxh ~]# kamailio -V

version: kamailio 3.2.3 (x86_64/linux) 2a00c6-dirty



with dialog module, hash tables, radius authorization.



Hope someone could help me.



Regards,

Ricardo.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio crash

2012-11-21 Thread Ricardo Martinez
Yes.

Every 5 minutes we run a script to drop calls in state “3”.

Could be this the problem?



Regards,

Ricardo.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* miércoles, 21 de noviembre de 2012 18:36
*Para:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
Users Mailing List
*CC:* Ricardo Martinez
*Asunto:* Re: [SR-Users] Kamailio crash



Hello,

do you have any external application sending MI commands to terminate
active calls?

Just checking to be sure it is not a core file overwrite situation.

Cheers,
Daniel

On 11/21/12 10:20 PM, Ricardo Martinez wrote:

Hello

In the last three days my kamailio process has  crashed two times.  I
obtained the core file and see it, this is the output.  Can someone check
what is the problem?



Core was generated by `/usr/local/sbin/kamailio -m 1024'.

Program terminated with signal 11, Segmentation fault.

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

56  v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];

Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64 nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64

(gdb) bt

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

#1  process_mi_params (cmd_tree=, param=) at dlg_hash.c:1057

#2  mi_terminate_dlgs (cmd_tree=, param=) at dlg_hash.c:1165

#3  0x7fc789996370 in run_mi_cmd (rx_sock=11, tx_sock=12) at
../../lib/kmi/mi.h:77

#4  mi_datagram_server (rx_sock=11, tx_sock=12) at datagram_fnc.c:525

#5  0x7fc789998509 in datagram_process (rank=) at
mi_datagram.c:346

#6  0x7fc78999a09c in mi_child_init (rank=) at
mi_datagram.c:296

#7  0x004dbd61 in ?? ()

#8  0x7fc78d99aab8 in ?? ()

#9  0x7fc78d0181cd in pkg_proc_update_real_used (data=) at pkg_stats.c:141

#10 0x0052b423 in ?? ()

#11 0x7fc78d8a2830 in ?? ()

#12 0x in ?? ()

(gdb)



I’m using kamailio

[root@pxh ~]# kamailio -V

version: kamailio 3.2.3 (x86_64/linux) 2a00c6-dirty



with dialog module, hash tables, radius authorization.



Hope someone could help me.



Regards,

Ricardo.-






___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



-- 

Daniel-Constantin Mierla - http://www.asipto.com

http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio crash

2012-11-22 Thread Ricardo Martinez
Hi Daniel.

This is the output :

Core was generated by `/usr/local/sbin/kamailio -m 1024'.

Program terminated with signal 11, Segmentation fault.

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

56  v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];

Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64 nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64

(gdb) bt

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

#1  process_mi_params (cmd_tree=, param=) at dlg_hash.c:1057

#2  mi_terminate_dlgs (cmd_tree=, param=) at dlg_hash.c:1165

#3  0x7fc789996370 in run_mi_cmd (rx_sock=11, tx_sock=12) at
../../lib/kmi/mi.h:77

#4  mi_datagram_server (rx_sock=11, tx_sock=12) at datagram_fnc.c:525

#5  0x7fc789998509 in datagram_process (rank=) at
mi_datagram.c:346

#6  0x7fc78999a09c in mi_child_init (rank=) at
mi_datagram.c:296

#7  0x004dbd61 in ?? ()

#8  0x7fc78d99aab8 in ?? ()

#9  0x7fc78d0181cd in pkg_proc_update_real_used (data=) at pkg_stats.c:141

#10 0x0052b423 in ?? ()

#11 0x7fc78d8a2830 in ?? ()

#12 0x in ?? ()

(gdb) frame 2

#2  mi_terminate_dlgs (cmd_tree=, param=) at dlg_hash.c:1165

1165rpl_tree = process_mi_params( cmd_tree, &dlg);

(gdb) p callid

No symbol "callid" in current context.

(gdb) p *callid

No symbol "callid" in current context.

(gdb)



Regards,

Ricardo.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* miércoles, 21 de noviembre de 2012 19:01
*Para:* Ricardo Martinez
*CC:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List
*Asunto:* Re: [SR-Users] Kamailio crash





On 11/21/12 10:40 PM, Ricardo Martinez wrote:

Yes.

Every 5 minutes we run a script to drop calls in state “3”.

Could be this the problem?


Could be cause, but should not be a problem.

In gdb, can you do:

frame 2
p callid
p *callid

and send the output?

The crash seem to happen when processing the callid value given via MI
command.

Cheers,
Daniel




Regards,

Ricardo.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* miércoles, 21 de noviembre de 2012 18:36
*Para:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
Users Mailing List
*CC:* Ricardo Martinez
*Asunto:* Re: [SR-Users] Kamailio crash



Hello,

do you have any external application sending MI commands to terminate
active calls?

Just checking to be sure it is not a core file overwrite situation.

Cheers,
Daniel

On 11/21/12 10:20 PM, Ricardo Martinez wrote:

Hello

In the last three days my kamailio process has  crashed two times.  I
obtained the core file and see it, this is the output.  Can someone check
what is the problem?



Core was generated by `/usr/local/sbin/kamailio -m 1024'.

Program terminated with signal 11, Segmentation fault.

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

56  v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];

Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64 nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64

(gdb) bt

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

#1  process_mi_params (cmd_tree=, param=) at dlg_hash.c:1057

#2  mi_terminate_dlgs (cmd_tree=, param=) at dlg_hash.c:1165

#3  0x7fc789996370 in run_mi_cmd (rx_sock=11, tx_sock=12) at
../../lib/kmi/mi.h:77

#4  mi_datagram_server (rx_sock=11, tx_sock=12) at datagram_fnc.c:525

#5  0x7fc789998509 in datagram_process (rank=) at
mi_datagram.c:346

#6  0x7fc78999a09c in mi_child_init (rank=) at
mi_datagram.c:296

#7  0x004dbd61 in ?? ()

#8  0x7fc78d99aab8 in ?? ()

#9  0x7fc78d0181cd in pkg_proc_update_real_used (data=) at pkg_stats.c:141

#10 0x0052b423 in ?? ()

#11 0x7fc78d8a2830 in ?? ()

#12 0x in ?? ()

(gdb)



I’m using kamailio

[root@pxh ~]# kamailio -V

version: kamailio 3.2.3 (x86_64/linux) 2a00c6-dirty



with dialog module, hash tables, radius authorization.



Hope someone could help me.



Regards,

Ricardo.-





___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



-- 

Daniel-Constantin Mierla - http://www.

Re: [SR-Users] Kamailio crash

2012-11-22 Thread Ricardo Martinez
Daniel.

The information :



Core was generated by `/usr/local/sbin/kamailio -m 1024'.

Program terminated with signal 11, Segmentation fault.

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

56  v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];

Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64 nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64

(gdb) frame 1

#1  process_mi_params (cmd_tree=, param=) at dlg_hash.c:1057

1057h_entry = core_hash( callid, 0, d_table->size);

(gdb) p callid

$1 = (str *) 0x28afc20

(gdb) p *callid

$2 = {s = 0x0, len = 0}

(gdb)



Thanks

Ricardo.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* jueves, 22 de noviembre de 2012 11:57
*Para:* Ricardo Martinez
*CC:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List
*Asunto:* Re: [SR-Users] Kamailio crash



Hello,

ahh, my mistake - the frame number is 1, do:

frame 1
p callid
p *callid

Cheers,
Daniel

On 11/22/12 3:06 PM, Ricardo Martinez wrote:

Hi Daniel.

This is the output :

Core was generated by `/usr/local/sbin/kamailio -m 1024'.

Program terminated with signal 11, Segmentation fault.

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

56  v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];

Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64 nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64

(gdb) bt

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

#1  process_mi_params (cmd_tree=, param=) at dlg_hash.c:1057

#2  mi_terminate_dlgs (cmd_tree=, param=) at dlg_hash.c:1165

#3  0x7fc789996370 in run_mi_cmd (rx_sock=11, tx_sock=12) at
../../lib/kmi/mi.h:77

#4  mi_datagram_server (rx_sock=11, tx_sock=12) at datagram_fnc.c:525

#5  0x7fc789998509 in datagram_process (rank=) at
mi_datagram.c:346

#6  0x7fc78999a09c in mi_child_init (rank=) at
mi_datagram.c:296

#7  0x004dbd61 in ?? ()

#8  0x7fc78d99aab8 in ?? ()

#9  0x7fc78d0181cd in pkg_proc_update_real_used (data=) at pkg_stats.c:141

#10 0x0052b423 in ?? ()

#11 0x7fc78d8a2830 in ?? ()

#12 0x in ?? ()

(gdb) frame 2

#2  mi_terminate_dlgs (cmd_tree=, param=) at dlg_hash.c:1165

1165rpl_tree = process_mi_params( cmd_tree, &dlg);

(gdb) p callid

No symbol "callid" in current context.

(gdb) p *callid

No symbol "callid" in current context.

(gdb)



Regards,

Ricardo.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* miércoles, 21 de noviembre de 2012 19:01
*Para:* Ricardo Martinez
*CC:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List
*Asunto:* Re: [SR-Users] Kamailio crash





On 11/21/12 10:40 PM, Ricardo Martinez wrote:

Yes.

Every 5 minutes we run a script to drop calls in state “3”.

Could be this the problem?


Could be cause, but should not be a problem.

In gdb, can you do:

frame 2
p callid
p *callid

and send the output?

The crash seem to happen when processing the callid value given via MI
command.

Cheers,
Daniel



Regards,

Ricardo.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* miércoles, 21 de noviembre de 2012 18:36
*Para:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
Users Mailing List
*CC:* Ricardo Martinez
*Asunto:* Re: [SR-Users] Kamailio crash



Hello,

do you have any external application sending MI commands to terminate
active calls?

Just checking to be sure it is not a core file overwrite situation.

Cheers,
Daniel

On 11/21/12 10:20 PM, Ricardo Martinez wrote:

Hello

In the last three days my kamailio process has  crashed two times.  I
obtained the core file and see it, this is the output.  Can someone check
what is the problem?



Core was generated by `/usr/local/sbin/kamailio -m 1024'.

Program terminated with signal 11, Segmentation fault.

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

56  v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];

Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64 

Re: [SR-Users] Kamailio crash

2012-11-27 Thread Ricardo Martinez
Hello Daniel.

Thanks for the patch, we’re going to pull the patch and see how it Works.

I did’t see anything else I the syslog.  That was my first part to look for.



I will have updated about this issue.

Thanks!



Ricardo.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* domingo, 25 de noviembre de 2012 18:02
*Para:* Ricardo Martinez
*CC:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List
*Asunto:* Re: [SR-Users] Kamailio crash



Hello,

it seems that either callid parameter was not provided or couldn't be read
from the mi command? Have you got any error message in syslog before the
crash?

I pushed a patch that does a safety check in order to be sure that callid
parameter has a value. You have to take the latest version of the branch.

Cheers,
Daniel

On 11/22/12 5:01 PM, Ricardo Martinez wrote:

Daniel.

The information :



Core was generated by `/usr/local/sbin/kamailio -m 1024'.

Program terminated with signal 11, Segmentation fault.

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

56  v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];

Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64 nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64

(gdb) frame 1

#1  process_mi_params (cmd_tree=, param=) at dlg_hash.c:1057

1057h_entry = core_hash( callid, 0, d_table->size);

(gdb) p callid

$1 = (str *) 0x28afc20

(gdb) p *callid

$2 = {s = 0x0, len = 0}

(gdb)



Thanks

Ricardo.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* jueves, 22 de noviembre de 2012 11:57
*Para:* Ricardo Martinez
*CC:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List
*Asunto:* Re: [SR-Users] Kamailio crash



Hello,

ahh, my mistake - the frame number is 1, do:

frame 1
p callid
p *callid

Cheers,
Daniel

On 11/22/12 3:06 PM, Ricardo Martinez wrote:

Hi Daniel.

This is the output :

Core was generated by `/usr/local/sbin/kamailio -m 1024'.

Program terminated with signal 11, Segmentation fault.

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

56  v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];

Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64 nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64

(gdb) bt

#0  core_hash (cmd_tree=, param=)
at ../../lib/kcore/hash_func.h:56

#1  process_mi_params (cmd_tree=, param=) at dlg_hash.c:1057

#2  mi_terminate_dlgs (cmd_tree=, param=) at dlg_hash.c:1165

#3  0x7fc789996370 in run_mi_cmd (rx_sock=11, tx_sock=12) at
../../lib/kmi/mi.h:77

#4  mi_datagram_server (rx_sock=11, tx_sock=12) at datagram_fnc.c:525

#5  0x7fc789998509 in datagram_process (rank=) at
mi_datagram.c:346

#6  0x7fc78999a09c in mi_child_init (rank=) at
mi_datagram.c:296

#7  0x004dbd61 in ?? ()

#8  0x7fc78d99aab8 in ?? ()

#9  0x7fc78d0181cd in pkg_proc_update_real_used (data=) at pkg_stats.c:141

#10 0x0052b423 in ?? ()

#11 0x7fc78d8a2830 in ?? ()

#12 0x in ?? ()

(gdb) frame 2

#2  mi_terminate_dlgs (cmd_tree=, param=) at dlg_hash.c:1165

1165rpl_tree = process_mi_params( cmd_tree, &dlg);

(gdb) p callid

No symbol "callid" in current context.

(gdb) p *callid

No symbol "callid" in current context.

(gdb)



Regards,

Ricardo.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* miércoles, 21 de noviembre de 2012 19:01
*Para:* Ricardo Martinez
*CC:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List
*Asunto:* Re: [SR-Users] Kamailio crash





On 11/21/12 10:40 PM, Ricardo Martinez wrote:

Yes.

Every 5 minutes we run a script to drop calls in state “3”.

Could be this the problem?


Could be cause, but should not be a problem.

In gdb, can you do:

frame 2
p callid
p *callid

and send the output?

The crash seem to happen when processing the callid value given via MI
command.

Cheers,
Daniel



Regards,

Ricardo.-



*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* miércoles, 21 de noviembre de 2012 18:36
*Para:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
Users Mailing List
*CC:* Ricardo Martinez
*Asunto:* Re: [SR-Users] Kamailio crash



Hello,

do you have any external application sending MI comma

[SR-Users] websocket and SIP

2014-10-29 Thread Ricardo Martinez
Hello.

I’m having some problems using websocket to communicate a webRTC client
with the SIP world.

I have a Kamailio with a websocket port running on 5062, from that socket
I’m receiving a SIP INVITE from a sipML5 client with 2531 bytes of length.
When I made the capture on the other leg (the pure SIP side) I only see a
SIP INVITE with 1500 bytes.  Seems that something is fragmenting the packet
but not putting all the parts together.  Could this be a problem with
Kamailio?.  Does someone has the same problem?

Hope that someone could help me.



Best Regards,

Ricardo Martinez.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] websocket and SIP

2014-10-29 Thread Ricardo Martinez
Hello.

I’m having some problems using websocket to communicate a webRTC client
with the SIP world.

I have a Kamailio with a websocket port running on 5062, from that socket
I’m receiving a SIP INVITE from a sipML5 client with 2531 bytes of length.
When I made the capture on the other leg (the pure SIP side) I only see a
SIP INVITE with 1500 bytes.  Seems that something is fragmenting the packet
but not putting all the parts together.  Could this be a problem with
Kamailio?.  Does someone has the same problem?

Hope that someone could help me.



Best Regards,

Ricardo Martinez.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] websocket and SIP

2014-10-30 Thread Ricardo Martinez
Hello Daniel.

I have printed the $mb in the kamailio debug and the $ml :

The SIP message in the client side has 2759 bytes.

This is what I get from the kamailio at the entrance leg :

Oct 29 17:27:24 webrtc /usr/local/sbin/kamailio[846]: DEBUG: 

[SR-Users] Kamailio as a UAC

2010-05-17 Thread Ricardo Martinez
Hello.

Is possible use some module in kamailio to authenticate against a
Asterisk Box for example?.  What I need is to have a Sip Client
Registered in Kamailio, but when this client is called I need to send
the call to Asterisk which will ask for authentication (user/pass).  Is
possible to do this with kamailio?.  If so, can someone give an example?

 

Thanks in advance,

Regards,

Ricardo Martinez.-

 

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio as a UAC

2010-05-17 Thread Ricardo Martinez
Hello Alex.
Thanks for your answer.
I was reading the documentation, but I'm still not getting the idea on
how to use it.
Can you give me an example...

I'm sending the INVITE to the asterisk box.. the asterisk responds a
"SIP/2.0 401 Unauthorized."
>From where do I get the user/pass to authenticate the user?

Hope you can guide me here.

Thanks in advance
Regards,
Ricardo.-




-Mensaje original-
De: sr-users-boun...@lists.sip-router.org
[mailto:sr-users-boun...@lists.sip-router.org] En nombre de Alex
Balashov
Enviado el: lunes, 17 de mayo de 2010 16:13
Para: sr-users@lists.sip-router.org
Asunto: Re: [SR-Users] Kamailio as a UAC

On 05/17/2010 04:10 PM, Ricardo Martinez wrote:

> Is possible use some module in kamailio to authenticate against a
> Asterisk Box for example?. What I need is to have a Sip Client
> Registered in Kamailio, but when this client is called I need to send
> the call to Asterisk which will ask for authentication (user/pass). Is
> possible to do this with kamailio?. If so, can someone give an
example?

http://www.kamailio.org/docs/modules/3.0.x/modules_k/uac.html#id2885303

-- 
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio as a UAC

2010-05-18 Thread Ricardo Martinez
I'm using the exact same script.. I even have a log line in the
uac_auth(). So is catching the 401.
But Kamailio is not sending the new INVITE with the credentials..
What else I'm missing...??

I also have defined :

modparam("uac","credential","username:domain:password")
modparam("uac","auth_realm_avp","$avp(i:10)")
modparam("uac","auth_username_avp","$avp(i:11)")
modparam("uac","auth_password_avp","$avp(i:12)")


This is the debug..
10.0.0.207 : GW
10.0.0.212 : Kamailio
10.0.0.197 : Asterisk

U 10.0.0.207:5060 -> 10.0.0.212:5060
INVITE sip:5501234...@10.0.0.212 SIP/2.0.
Via: SIP/2.0/UDP 10.0.0.207:5060;branch=z9hG4bKd24b5e47a416.
From: ;tag=d24b5e47a4.
To: .
Call-ID: d291f24b-58b6-5e54-8047-0002a4005...@10.0.0.207.
CSeq: 16 INVITE.
Supported: timer, replaces.
Min-SE: 1800.
Date: Tue, 18 May 2010 13:10:42 GMT.
User-Agent: AddPac AP2520 8.30V.
Contact: .
Accept: application/sdp.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE, REFER, NOTIFY, INFO.
Content-Type: application/sdp.
Content-Length: 286.
Max-Forwards: 70.
.
v=0.
o=2408100 1274188242 1274188242 IN IP4 10.0.0.207.
s=AddPac Gateway SDP.
c=IN IP4 10.0.0.207.
t=1274188242 0.
m=audio 23032 RTP/AVP 0 8 18 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:20.


U 10.0.0.212:5060 -> 10.0.0.207:5060
SIP/2.0 100 trying -- your call is important to us.
Via: SIP/2.0/UDP 10.0.0.207:5060;branch=z9hG4bKd24b5e47a416.
From: ;tag=d24b5e47a4.
To: .
Call-ID: d291f24b-58b6-5e54-8047-0002a4005...@10.0.0.207.
CSeq: 16 INVITE.
Server: kamailio (3.0.1 (i386/linux)).
Content-Length: 0.
.


U 10.0.0.212:5060 -> 10.0.0.197:5060
INVITE sip:5501234...@10.0.0.197 SIP/2.0.
Record-Route: .
Via: SIP/2.0/UDP 10.0.0.212;branch=z9hG4bK8a9d.47d682e.0.
Via: SIP/2.0/UDP 10.0.0.207:5060;branch=z9hG4bKd24b5e47a416.
From: ;tag=d24b5e47a4.
To: .
Call-ID: d291f24b-58b6-5e54-8047-0002a4005...@10.0.0.207.
CSeq: 16 INVITE.
Supported: timer, replaces.
Min-SE: 1800.
Date: Tue, 18 May 2010 13:10:42 GMT.
User-Agent: AddPac AP2520 8.30V.
Contact: .
Accept: application/sdp.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE, REFER, NOTIFY, INFO.
Content-Type: application/sdp.
Content-Length: 286.
Max-Forwards: 69.
P-hint: outbound->inbound .
.
v=0.
o=2408100 1274188242 1274188242 IN IP4 10.0.0.207.
s=AddPac Gateway SDP.
c=IN IP4 10.0.0.207.
t=1274188242 0.
m=audio 23032 RTP/AVP 0 8 18 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=ptime:20.


U 10.0.0.197:5060 -> 10.0.0.212:5060
SIP/2.0 401 Unauthorized.
Via: SIP/2.0/UDP
10.0.0.212;branch=z9hG4bK8a9d.47d682e.0;received=10.0.0.212.
Via: SIP/2.0/UDP 10.0.0.207:5060;branch=z9hG4bKd24b5e47a416.
From: ;tag=d24b5e47a4.
To: ;tag=as6f2d46d3.
Call-ID: d291f24b-58b6-5e54-8047-0002a4005...@10.0.0.207.
CSeq: 16 INVITE.
Server: Asterisk PBX 1.6.1.19.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO.
Supported: replaces, timer.
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk",
nonce="66243944".
Content-Length: 0.
.


U 10.0.0.212:5060 -> 10.0.0.197:5060
ACK sip:5501234...@10.0.0.197 SIP/2.0.
Via: SIP/2.0/UDP 10.0.0.212;branch=z9hG4bK8a9d.47d682e.0.
From: ;tag=d24b5e47a4.
To: ;tag=as6f2d46d3.
Call-ID: d291f24b-58b6-5e54-8047-0002a4005...@10.0.0.207.
CSeq: 16 ACK.
Content-Length: 0.
Max-Forwards: 69.
.


U 10.0.0.212:5060 -> 10.0.0.207:5060
SIP/2.0 401 Unauthorized.
Via: SIP/2.0/UDP 10.0.0.207:5060;branch=z9hG4bKd24b5e47a416.
From: ;tag=d24b5e47a4.
To: ;tag=as6f2d46d3.
Call-ID: d291f24b-58b6-5e54-8047-0002a4005...@10.0.0.207.
CSeq: 16 INVITE.
Server: Asterisk PBX 1.6.1.19.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO.
Supported: replaces, timer.
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk",
nonce="66243944".
Content-Length: 0.
.


U 10.0.0.207:5060 -> 10.0.0.212:5060
ACK sip:5501234...@10.0.0.212 SIP/2.0.
Via: SIP/2.0/UDP 10.0.0.207:5060;branch=z9hG4bKd24b5e47a416.
From: ;tag=d24b5e47a4.
To: ;tag=as6f2d46d3.
Call-ID: d291f24b-58b6-5e54-8047-0002a4005...@10.0.0.207.
CSeq: 16 ACK.
Content-Length: 0.
Max-Forwards: 70.
.

Ricardo.-

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] memcached compile problems

2010-06-23 Thread Ricardo Martinez
Hello list.

I'm using the GIT versión of Kamailio 3.0.

When I add memcached in the compilation I got the next error :

 

make[1]: Entering directory `/usr/src/kamailio/modules_k/memcached'

gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m32 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=athlon64 -Wall
-DNAME='"kamailio"' -DVERSION='"3.0.2"' -DARCH='"i386"' -DOS='linux_' 
-DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.4.4"' -D__CPU_i386 -D__OS_linux 
-DSER_VER=302 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM 
-DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE 
-DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST 
-DUSE_NAPTR -DF_MALLOC -DUSE_TLS -DTLS_HOOKS -DSTATISTICS -DMALLOC_STATS 
-DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM 
-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL 
-DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM 
-DHAVE_SCHED_SETSCHEDULER -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND 
-DUSE_FUTEX -DHAVE_SELECT  -DOPENSER_MOD_INTERFACE -I/usr/local/include 
-I/include -DMOD_NAME='"memcached"' -c mcd_var.c -o mcd_var.o -MMD -MP

In file included from mcd_var.c:29:

memcached.h:27:22: warning: memcache.h: No such file or directory

 

What could be the problem.

I have installed

 

memcached , memcached-devel , libmemcached and libmemcached-devel

 

Thanks

 

Ricardo.-

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] memcached compile problems

2010-06-23 Thread Ricardo Martinez
Hi.
I'm using Fedora Core 13.
With 

[r...@ser mysql]# uname -a
Linux ser 2.6.33.5-124.fc13.i686.PAE #1 SMP Fri Jun 11 09:42:24 UTC 2010 i686 
i686 i386 GNU/Linux

Regards,
Ricardo.-

-Mensaje original-
De: sr-users-boun...@lists.sip-router.org 
[mailto:sr-users-boun...@lists.sip-router.org] En nombre de Jon Bonilla (Manwe)
Enviado el: miércoles, 23 de junio de 2010 12:51
CC: SR-Users
Asunto: Re: [SR-Users] memcached compile problems

El Wed, 23 Jun 2010 12:24:53 -0400
"Ricardo Martinez"  escribió:

> Hello list.
> 
> I'm using the GIT versión of Kamailio 3.0.
> 
> When I add memcached in the compilation I got the next error :
> 

>  
> 
> memcached , memcached-devel , libmemcached and libmemcached-devel
> 


Could you please tell us which distribution and version you're using?


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] LCR "weight" column question

2010-09-22 Thread Ricardo Martinez
Hello.

I’m wondering how the “Weight” column in the LCR ‘gw’ table Works.

I have 5 gateways defined with different weights.



gw_name grp_id  ip_addr   hostnameport  uri_scheme
transport   strip   tagweightping  flags

GW0258  10.0.0.715060 1
140258  100   0

GW0358  10.0.0.725060 1
140258  100   0

GW0558  10.0.0.132   5060 1
140258  200   0

GW0658  10.0.0.133   5060 1
140258  200   0

GW0958  10.0.0.705060 1   1
   40258  2000

GW1058  10.0.0.695060 1
140258  2000



If I have 100 calls, I was expecting was to have 20 to GW05, 20 to GW06, 20
to GW09 and 20 to GW10

Finalle 10 to GW02 and 10 to GW02.



Is this the correct interpretation of this parameter?



Thanks in advance.



Regards,



Ricardo Martinez.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR "weight" column question

2010-09-23 Thread Ricardo Martinez
Hello Juha.

I’m observing something like this : (these are “Simmultaneous calls” graphs)









As you can see the GW05, Gw06, Gw09 and GW10 seems to share the load
equally, as expected.. but I was also expecting a little more load in the
GW02 ad Gw03.

They seems to me very underloaded (according to the LCR weight column).

Is this normal?...



What can you see from the graphs?

Thanks in advance,



Regards,

Ricardo.-



-Mensaje original-
De: sr-users-boun...@lists.sip-router.org [mailto:
sr-users-boun...@lists.sip-router.org] En nombre de Juha Heinanen
Enviado el: jueves, 23 de septiembre de 2010 11:17
Para: Ricardo Martinez
CC: us...@lists.kamailio.org
Asunto: [SR-Users] LCR "weight" column question



Ricardo Martinez writes:



> I’m wondering how the “Weight” column in the LCR ‘gw’ table Works.



weight is probabilistic weight of the gateway that applies when

priorities of the gateways are the same.



> If I have 100 calls, I was expecting was to have 20 to GW05, 20 to GW06,
20

> to GW09 and 20 to GW10

>

> Finalle 10 to GW02 and 10 to GW02.

>

> Is this the correct interpretation of this parameter?



you don't get exactly those numbers.  what did you observe?



-- juha



___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
<>___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR "weight" column question

2010-09-27 Thread Ricardo Martinez
Hello Juha.
Thanks for your help.
The script works fine.  We made a test using the values "20 20 20 20 10
10" and it gave us the exact values that I calculated for the actual
gateways.

Device  Calls   %
GW02520 1,04
GW03502 1,01
GW0512148   24,44
GW0612276   24,70
GW0912174   24,49
GW1012074   24,29

Total   49694


So, we created another "weight" values and gave us the percentage we were
looking for.

18 18 18 18 16 16

That gaves us 20% 20% 20% 20% 10% and 10%.

So, we think it should be very useful if you can include this script in
the "utils", and maybe give more information in the REDME file of LCR
about the weight "column", until now we believe this column represents the
percentage of each gateway.

Thanks again,

Regards,
Ricardo.-



-Mensaje original-
De: Juha Heinanen [mailto:j...@tutpro.com]
Enviado el: domingo, 26 de septiembre de 2010 2:03
Para: Ricardo Martinez; us...@lists.kamailio.org
Asunto: Re: [SR-Users] LCR "weight" column question

ricardo,

i studied the weight problem a bit more and came to the conclusion that
implementing a fair weighting algorithm would be too complicated.

below is a script that can be used to find weight values matching
desired probabilities for lcr gateways.  i don't know if it would be
appropriate to include it in utils or scripts directory.

-- juha

#!/usr/bin/php
\n";
  exit;
 }

$iters = 1;

$rands = array();
for ($i = 1; $i <= $iters; $i++) {
  $elem = array();
  for ($j = 1; $j < $argc; $j++) {
$elem["$j"] = $argv[$j] * (rand() >> 8);
  }
  $rands[] = $elem;
 }

$sorted = array();
foreach ($rands as $rand) {
  asort($rand);
  $sorted[] = $rand;
 }

$counts = array();
for ($j = 1; $j < $argc; $j++) {
  $counts["$j"] = 0;
 }

foreach ($sorted as $rand) {
  end($rand);
  $counts[key($rand)]++;
 }

for ($j = 1; $j < $argc; $j++) {
  echo "weight " . $argv[$j] . " probability " . $counts["$j"]/$iters .
"\n";
 }

?>

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Source IP address in Failure_route

2010-12-17 Thread Ricardo Martinez
Hello.

I’m trying to obtain the source IP address from a reply message.

This is part of the configuration file :



failure_route[1] {

if (t_was_cancelled()) {

xlog("L_INFO", "[$ci] $rm:$ru t_was_cancelled in
failure_route\n");

exit;

}



if ( ($T_rpl($si) != "10.0.0.4") || ($T_rpl($si) != "10.0.0.3")  ) {

if ( t_check_status("48[0-9]") ) {

xlog("L_INFO","[$ci] 48X Received\n");

exit;

}

}



…





But it seems not to be working.

Is there a way to do what I want?



Thanks in advance,



Regards,

Ricardo.-

* *
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Source IP address in Failure_route

2010-12-22 Thread Ricardo Martinez
Hello.
Thanks for your answer.
It was my mistake (as usual :) ).  I wanted to match two IP's in the reply
message, but I was having a problem with the logic sentence.
I had : ( ($T_rpl($si) != "10.0.0.4") || ($T_rpl($si) != "10.0.0.3")  ) {

And I wanted : ( ($T_rpl($si) != "10.0.0.4") && ($T_rpl($si) !=
"10.0.0.3")  ) {

Now is working like a charm.

Thanks again,

Regards,
Ricardo.-


-Mensaje original-
De: Daniel-Constantin Mierla [mailto:mico...@gmail.com]
Enviado el: martes, 21 de diciembre de 2010 6:43
Para: Klaus Darilion
CC: Ricardo Martinez; sr-users@lists.sip-router.org
Asunto: Re: [SR-Users] Source IP address in Failure_route



On 12/21/10 10:26 AM, Klaus Darilion wrote:
>
>
> Am 17.12.2010 14:19, schrieb Ricardo Martinez:
>> Hello.
>>
>> I'm trying to obtain the source IP address from a reply message.
>
> AFAIK the failure_route is executed in the context of the request. If
> you want to analyze a reply you have to do it in a reply_route.
tmx module exports some pseudo-variables that allows you to access the
request from reply route and reply from failure route. Mainly you can
get any pv strictly related to the sip message itself (being it request
or reply, when processing the other type of message in a transaction).
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x#tmx_module
_pseudo-variables

Cheers,
Daniel

>
> regards
> Klaus
>
>>
>> This is part of the configuration file :
>>
>> failure_route[1] {
>>
>>  if (t_was_cancelled()) {
>>
>>  xlog("L_INFO", "[$ci] $rm:$ru t_was_cancelled in
>> failure_route\n");
>>
>>  exit;
>>
>>  }
>>
>> if ( ($T_rpl($si) != "10.0.0.4") || ($T_rpl($si) != "10.0.0.3")  ) {
>>
>>  if ( t_check_status("48[0-9]") ) {
>>
>>  xlog("L_INFO","[$ci] 48X Received\n");
>>
>>  exit;
>>
>>  }
>>
>>  }
>>
>> .
>>
>> But it seems not to be working.
>>
>> Is there a way to do what I want?
>>
>> Thanks in advance,
>>
>> Regards,
>>
>> Ricardo.-
>>
>> **
>>
>>
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
http://www.asipto.com

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] LCR and gateways resource.

2010-12-28 Thread Ricardo Martinez
Hello.

I’m looking for a way to mix the features of LCR and a counter to keep track
of the used resource of a gateway.  Let me explain.

Let’s suppose that I’m using LCR module to route the calls to all my
gateways, in particular I have the calls with prefix 55 routed to the group
“55” which are 3 gateways :

GW1, GW2 and GW3. Let’s suppose also that each gateway is connected to
digital E1 with 30 channels.  At certain time of the day one of the gateways
is at full capacity using the 30 channels. This is what I wanted to do : can
I have  a variable with the maximum channels available for a certain
gateway, and for each call going to that gateway a counter?.  When the
counter reach the maximum, can I remove the gateway from the LCR choosing
algorithm until it has capacity again?

Can I have some thoughts about this idea?

Is there a way to achieve this ?



Thanks in advance.



Regards,

Ricardo.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR and gateways resource.

2010-12-28 Thread Ricardo Martinez
Hello Juha.
Thanks for your answer.  I will try something like that.
Question.  The defunct_gw() function works with the gateway selected with
the next_gw() function??

Another question.  How would be the logic to mark a gateway down
automatically in the LCR?.  I mean trying to emulate the "ping" function
from the 1.5 version.

Thanks
Regards,
Ricardo.-



-Mensaje original-
De: sr-users-boun...@lists.sip-router.org
[mailto:sr-users-boun...@lists.sip-router.org] En nombre de Juha Heinanen
Enviado el: martes, 28 de diciembre de 2010 12:53
Para: Ricardo Martinez
CC: sr-users@lists.sip-router.org
Asunto: [SR-Users] LCR and gateways resource.

Ricardo Martinez writes:

> GW1, GW2 and GW3. Let’s suppose also that each gateway is connected to
> digital E1 with 30 channels.  At certain time of the day one of the
> gateways
> is at full capacity using the 30 channels. This is what I wanted to do :
> can
> I have  a variable with the maximum channels available for a certain
> gateway, and for each call going to that gateway a counter?.  When the
> counter reach the maximum, can I remove the gateway from the LCR choosing
> algorithm until it has capacity again?

there is function defunct_gw(period) that you can use to defunct a full
gateway for some period of time.

for what you propose, you would need to use dialog module to keep track
of dialogs to each gateway and that way manage your counters.  then
after calling next_gw(), you could check if its counter allows you to
actually use it.

i'm not myself a believer of dialogs in sip proxy.

-- juha

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] SIREMIS logging problem.

2011-01-05 Thread Ricardo Martinez
Hello.

I have Siremis 2.0 installed from scratch, but I’m unable to logging.  This
is the error that I’m getting from the logs :

'01/05/2011','12:41:36','ERR','DATAOBJ','Query Error: SQLSTATE[42S02]: Base
table or view not found: 1146 Table 'siremis.contact' doesn't exist','n/a'



I was checking the SIREMIS db and I can’t found the table “contact”.

Is this a bug?.. can someone help me?



Thanks

Regards,

* *

*Ricardo Martinez.-*
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SIREMIS logging problem.

2011-01-06 Thread Ricardo Martinez
Hi Ramona.

Yes… i forgot to mention that the database is created.  But for some reason
the “contact” table is not present.



mysql> use siremis;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A



Database changed

mysql> show tables;

+---+

| Tables_in_siremis |

+---+

| acl_action|

| acl_role_action   |

| group |

| menu  |

| meta_do   |

| meta_form |

| meta_view |

| module|

| pass_token|

| role  |

| user  |

| user_group|

| user_role |

+---+

13 rows in set (0.00 sec)



mysql>





What could be happening?



Regards,

Ricardo.-



*De:* sr-users-boun...@lists.sip-router.org [mailto:
sr-users-boun...@lists.sip-router.org] *En nombre de *Elena-Ramona Modroiu
*Enviado el:* miércoles, 05 de enero de 2011 19:07
*Para:* Ricardo Martinez
*CC:* sr-users@lists.sip-router.org
*Asunto:* Re: [SR-Users] SIREMIS logging problem.



Hi,

have you created siremis database? You have a checkbox at step 2 in the
installation wizard:

http://kb.asipto.com/siremis:install20:main#step_2

Regards,
Ramona

On 01/05/2011 09:48 PM, Ricardo Martinez wrote:

Hello.

I have Siremis 2.0 installed from scratch, but I’m unable to logging.  This
is the error that I’m getting from the logs :

'01/05/2011','12:41:36','ERR','DATAOBJ','Query Error: SQLSTATE[42S02]: Base
table or view not found: 1146 Table 'siremis.contact' doesn't exist','n/a'



I was checking the SIREMIS db and I can’t found the table “contact”.

Is this a bug?.. can someone help me?



Thanks

Regards,

* *

*Ricardo Martinez.-*





___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SIREMIS logging problem.

2011-01-06 Thread Ricardo Martinez
Hi.

I just found the problem.

It was a permissions problem.  I was using chmod 777 only to the directory..
but I need to give permission to all the subdirectories and files.

Maybe would be helpful if someone can include a TIP or HINT in the install
page indicating the “good” way to do a chmod.



Thanks anyway!

Regards,

Ricardo.-



*De:* Ricardo Martinez [mailto:rmarti...@redvoiss.net]
*Enviado el:* jueves, 06 de enero de 2011 9:43
*Para:* 'ram...@asipto.com'
*CC:* 'sr-users@lists.sip-router.org'
*Asunto:* RE: [SR-Users] SIREMIS logging problem.



Hi Ramona.

Yes… i forgot to mention that the database is created.  But for some reason
the “contact” table is not present.



mysql> use siremis;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A



Database changed

mysql> show tables;

+---+

| Tables_in_siremis |

+---+

| acl_action|

| acl_role_action   |

| group |

| menu  |

| meta_do   |

| meta_form |

| meta_view |

| module|

| pass_token|

| role  |

| user  |

| user_group|

| user_role |

+---+

13 rows in set (0.00 sec)



mysql>





What could be happening?



Regards,

Ricardo.-



*De:* sr-users-boun...@lists.sip-router.org [mailto:
sr-users-boun...@lists.sip-router.org] *En nombre de *Elena-Ramona Modroiu
*Enviado el:* miércoles, 05 de enero de 2011 19:07
*Para:* Ricardo Martinez
*CC:* sr-users@lists.sip-router.org
*Asunto:* Re: [SR-Users] SIREMIS logging problem.



Hi,

have you created siremis database? You have a checkbox at step 2 in the
installation wizard:

http://kb.asipto.com/siremis:install20:main#step_2

Regards,
Ramona

On 01/05/2011 09:48 PM, Ricardo Martinez wrote:

Hello.

I have Siremis 2.0 installed from scratch, but I’m unable to logging.  This
is the error that I’m getting from the logs :

'01/05/2011','12:41:36','ERR','DATAOBJ','Query Error: SQLSTATE[42S02]: Base
table or view not found: 1146 Table 'siremis.contact' doesn't exist','n/a'



I was checking the SIREMIS db and I can’t found the table “contact”.

Is this a bug?.. can someone help me?



Thanks

Regards,

* *

*Ricardo Martinez.-*





___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] mi_fifo question

2011-01-11 Thread Ricardo Martinez
Hello.

I’m trying to use the kamctl command to get information about dialogs.  I’m
using the next line :



kamctl fifo profile_get_size:kamailio_fifo





and I’m getting the next output in the log file :



Jan 11 12:34:38 /usr/local/sbin/kamailio[15051]: ERROR: mi_fifo
[fifo_fnc.c:223]: open error (/tmp/kamailio_fifo:openser_receiver_15073): No
such file or directory

Jan 11 12:34:38 /usr/local/sbin/kamailio[15051]: ERROR: mi_fifo
[fifo_fnc.c:484]: cannot open reply pipe
/tmp/kamailio_fifo:openser_receiver_15073





What I’m doing wrong?



This is part of the configuration file :

# - mi_fifo params --

modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")

modparam("mi_fifo", "fifo_group", 0)

modparam("mi_fifo", "fifo_group", "root")

modparam("mi_fifo", "fifo_user", 0)

modparam("mi_fifo", "fifo_user", "root")





and this is  the file kamailio_fifo in the /tmp directory :



[r...@kamailio]# ls -la /tmp

total 52

drwxrwxrwt.  4 root   root4096 Jan 11 12:38 .

dr-xr-xr-x. 25 root   root4096 Jan  7 09:25 ..

drwxrwxrwt   2 root   root4096 Jan  7 09:25 .ICE-unix

*prw-rw   1 root   root   0 Jan 11 12:34 kamailio_fifo*

drwx--   2 root   root4096 Jan 11 09:54 ssh-gpTCQ12700



Hope someone could help me.



Regards,

Ricardo.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] mi_fifo question

2011-01-11 Thread Ricardo Martinez
Ok.

It was a “typo” problem.

The command : kamctl fifo profile_get_size your_dlg_profile



Works ok.

So.. question :

I’m using the documentation in the DIALOG MODULE and there it says :



*8.5. **profile_get_size***

Returns the number of dialogs belonging to a profile. If the profile
supports values, the check can be reinforced to take into account a specific
value - how many dialogs were inserted into the profile with a specific
value. If no value is passed, only the simply belonging of the dialog to the
profile is checked. Note that if the profile does not supports values, this
will be silently discarded.

Name: *profile_get_size*

Parameters:

   - *profile* - name of the profile to get the value for.
   - *value* (optional)- string value to further restrict the check;

MI FIFO Command Format:

   :profile_get_size:_reply_fifo_file_

   inbound_calls

   _empty_line_







This is something different from the command you gave me.  Why?.l. or maybe
I’m misunderstanding the documentation?



Thanks anyway.



Regards,

Ricardo.-





*De:* Daniel-Constantin Mierla [mailto:mico...@gmail.com]
*Enviado el:* martes, 11 de enero de 2011 13:09
*Para:* Ricardo Martinez
*CC:* sr-users@lists.sip-router.org
*Asunto:* Re: [SR-Users] mi_fifo question



Hello,

On 1/11/11 4:40 PM, Ricardo Martinez wrote:

Hello.

I’m trying to use the kamctl command to get information about dialogs.  I’m
using the next line :



kamctl fifo profile_get_size:kamailio_fifo


first the way you use the command is wrong, try:

kamctl fifo profile_get_size your_dlg_profile


If the error persists, send the new output. Also, be sure kamailio is
running as an user that has privileges to read from the fifo file.

Cheers,
Daniel





and I’m getting the next output in the log file :



Jan 11 12:34:38 /usr/local/sbin/kamailio[15051]: ERROR: mi_fifo
[fifo_fnc.c:223]: open error (/tmp/kamailio_fifo:openser_receiver_15073): No
such file or directory

Jan 11 12:34:38 /usr/local/sbin/kamailio[15051]: ERROR: mi_fifo
[fifo_fnc.c:484]: cannot open reply pipe
/tmp/kamailio_fifo:openser_receiver_15073





What I’m doing wrong?



This is part of the configuration file :

# - mi_fifo params --

modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")

modparam("mi_fifo", "fifo_group", 0)

modparam("mi_fifo", "fifo_group", "root")

modparam("mi_fifo", "fifo_user", 0)

modparam("mi_fifo", "fifo_user", "root")





and this is  the file kamailio_fifo in the /tmp directory :



[r...@kamailio]# ls -la /tmp

total 52

drwxrwxrwt.  4 root   root4096 Jan 11 12:38 .

dr-xr-xr-x. 25 root   root4096 Jan  7 09:25 ..

drwxrwxrwt   2 root   root4096 Jan  7 09:25 .ICE-unix

*prw-rw   1 root   root   0 Jan 11 12:34 kamailio_fifo*

drwx--   2 root   root4096 Jan 11 09:54 ssh-gpTCQ12700



Hope someone could help me.



Regards,

Ricardo.-





___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



-- 

Daniel-Constantin Mierla

Kamailio (OpenSER) Advanced Training

Jan 24-26, 2011, Irvine, CA, USA

http://www.asipto.com
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] set_dlg_profile not working?

2011-01-11 Thread Ricardo Martinez
Hello.

I’m trying to count the calls to a specific gateway.  So I’m using the
dialog module.  This route  is done before the final relay.





route[CHANNELS] {

if( is_method("INVITE") ) {

if(!isflagset(31) ) {

# user has max channel limit set as preference

if(is_avp_set("$avp(s:channels)") &&
avp_check("$avp(s:channels)", "gt/s:0")) {

# get current calls for uuid

xlog("L_INFO","[$ci] : avp_channels existe y
es mayor que 0 ?");

if
(get_profile_size("gws","$rd","$var(calls)")) {

xlog("L_INFO","Actualmente el
gateway $rd tiene $var(calls) llamadas simultaneas\n");

}



# check within limit



if($avp(s:channels) > $var(calls)) {

xlog("L_INFO", "CHANNELS :
terminador '$rd' tiene '$var(calls)' de '$avp(s:channels)' active

calls before this one\n");

$var(setprofile) = 1;

} else {

xlog("L_INFO", "Call crtl: user
channel limit exceeded [$var(calls)/$avp(s:channels)]\n");

send_reply("487", "Request
Terminated: Channel limit exceeded");

exit;

}



} else {

xlog("L_INFO","[$ci] : the value if channels
is $avp(s:channels)");

if( !is_avp_set("$avp(s:channels)") ) {

xlog("L_INFO","[$ci] : avp_channel
not set");

};



if(!avp_check("$avp(s:channels)", "gt/s:0")
) {

xlog("L_INFO","[$ci] : avp_channel
menor que 0?");

};



$var(setprofile) = 0;

}

}



if($var(setprofile) > 0) {



*if ( set_dlg_profile("gws","$rd") ) {*

*xlog("L_INFO","set_dlg_profile exitoso");*

}



}





When i made the call and try to see the profile with this command :



[r...@sipvoiss kamailio]# kamctl fifo profile_get_size gws 10.0.0.220

profile::  name=gws value=10.0.0.220 count=0



I’m not seeing the call added to the profile, despite the fact I using the *
set_dlg_profile("gws","$rd")*

What could be happening?





This is part of the debug :



Jan 11 18:07:03 .: INFO: 

Re: [SR-Users] set_dlg_profile not working?

2011-01-12 Thread Ricardo Martinez
Hi Timo.
I'm using the kamailio versión 3.1.0.

kamailio -V
version: kamailio 3.1.0 (x86_64/linux) f2ab4d
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, PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: f2ab4d
compiled on 12:57:14 Nov 25 2010 with gcc 4.5.1


The profile gws is a "profile with_values"

#  dialog params --
modparam("dialog", "dlg_flag", 4)
modparam("dialog", "profiles_with_value", "gws")


I'm not using the last two parameters that you mention.  Could you guide
me on how to use them?

Regards,
Ricardo.-


-Mensaje original-
De: Timo Reimann [mailto:timo.reim...@1und1.de]
Enviado el: miércoles, 12 de enero de 2011 7:41
Para: Ricardo Martinez
CC: sr-users@lists.sip-router.org
Asunto: Re: [SR-Users] set_dlg_profile not working?

Hi Ricardo,

first of all: What version of Kamailio are you using?


On 11.01.2011 22:17, Ricardo Martinez wrote:
> I’m trying to count the calls to a specific gateway.  So I’m using the
> dialog module.  This route  is done before the final relay.



> *if ( set_dlg_profile("gws","$rd") ) {*
>
> *xlog("L_INFO","set_dlg_profile
exitoso");*

> What could be happening?

Have you set up the profile named "gws" using modparam and
"profiles_with_values"?

Have you enabled dialog tracking, either by specifying "dlg_flag"
generally or calling dlg_manage() specifically on calls that matter?


Cheers,

--Timo

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] set_dlg_profile not working?

2011-01-12 Thread Ricardo Martinez
Timo.
I'm asking, because in a previous test with Kamailio 1.5 I never used
dlg_manage() and I was sure it was working that time.
So.. anyway.. I used dlg_manage() before the
"set_dlg_profile("gws","$rd")" and now it is working ok.

If I wanted to do the same but with the flags, how can this be done?

Thanks
Ricardo.-

-Mensaje original-
De: sr-users-boun...@lists.sip-router.org
[mailto:sr-users-boun...@lists.sip-router.org] En nombre de Timo Reimann
Enviado el: miércoles, 12 de enero de 2011 11:11
Para: Ricardo Martinez
CC: sr-users@lists.sip-router.org
Asunto: Re: [SR-Users] set_dlg_profile not working?

Hi Ricardo,


On 12.01.2011 13:38, Ricardo Martinez wrote:
> I'm using the kamailio versión 3.1.0.
>
> The profile gws is a "profile with_values"
>
> #  dialog params --
> modparam("dialog", "dlg_flag", 4)
> modparam("dialog", "profiles_with_value", "gws")
>
>
> I'm not using the last two parameters that you mention.  Could you guide
> me on how to use them?

dlg_manage() allows you to track the dialog currently being processed,
i.e., on-demand dialog tacking. However, since you have already defined
flag 4 as dialog flag, you don't need dlg_manage(): It's supposed to
happen automatically for all calls.

This requires enabling the configured flag (4 in your case) though. Have
you done so prior to assigning the call to the profile?


Cheers,

--Timo

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] ACK problem with FreeSwitch-Kamailio SBC implementation.

2011-01-17 Thread Ricardo Martinez
Hello.

I was wondering if someone can help me with some problem that I’m having
with the combination of FreeSwitch and Kamailio as SBC.

I’m having and ACK not routed by kamailio and dropped.

Here is the debug.



100.100.100.211:5060 : Kamailio

100.100.100.211:5090 : FreeSwitch

100.100.100.108 : Caller

100.100.100.212 : Calle





User Datagram Protocol, Src Port: 42772 (42772), Dst Port: sip (5060)

Session Initiation Protocol

Request-Line: INVITE
sip:02131234@100.100.100.211SIP/2.0

Method: INVITE

[Resent Packet: False]

Message Header

Via: SIP/2.0/UDP 64.76.148.108:42772
;branch=z9hG4bK-d8754z-da0b2e4b1b5d0843-1---d8754z-;rport

Max-Forwards: 70

Contact: 

To: >

From: "camila"
>;tag=8422566b

Call-ID: MjY2NDY5NTE3OTk4MzdmMjE0YWQxNWQ4MWFmY2JhMWQ.

CSeq: 1 INVITE

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO

Content-Type: application/sdp

User-Agent: Bria release 2.2 stamp 45414

Content-Length: 388

Message Body

Session Description Protocol





User Datagram Protocol, Src Port: sip (5060), Dst Port: 42772 (42772)

Session Initiation Protocol

Status-Line: SIP/2.0 100 trying -- your call is important to us

Status-Code: 100

[Resent Packet: False]

Message Header

Via: SIP/2.0/UDP 64.76.148.108:42772
;branch=z9hG4bK-d8754z-da0b2e4b1b5d0843-1---d8754z-;rport=42772

To: >

From: "camila"
>;tag=8422566b

Call-ID: MjY2NDY5NTE3OTk4MzdmMjE0YWQxNWQ4MWFmY2JhMWQ.

CSeq: 1 INVITE

Server: kamailio (3.1.1 (i386/linux))

Content-Length: 0





User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)

Session Initiation Protocol

Request-Line: INVITE sip:3031234@100.100.100.212:5060 SIP/2.0

Method: INVITE

[Resent Packet: False]

Message Header

Record-Route: 

Via: SIP/2.0/UDP 100.100.100.211;branch=z9hG4bK3916.41fc6fb3.0

Via: SIP/2.0/UDP 100.100.100.211:5090
;rport=5090;branch=z9hG4bK1QH1XDH609cUm

Max-Forwards: 66

From: "camila" 
>;tag=QmrB15eKrQ3Bj

To: >

Call-ID: 54a74b6a-9cf6-122e-05a0-0050bad00883

CSeq: 7304076 INVITE

Contact: 

User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-d41e649 2011-01-11
12-25-55 -0600

Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REFER, NOTIFY, PUBLISH, SUBSCRIBE

Supported: timer, precondition, path, replaces

Allow-Events: talk, hold, presence, dialog, line-seize, call-info,
sla, include-session-description, presence.winfo, message-summary, refer

Content-Type: application/sdp

Content-Disposition: session

Content-Length: 200

X-FS-Support: update_display

Remote-Party-ID: "camila"

>;party=calling;screen=yes;privacy=off

Message Body

Session Description Protocol





User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)

Session Initiation Protocol

Status-Line: SIP/2.0 100 Trying

Status-Code: 100

[Resent Packet: False]

Message Header

Via: SIP/2.0/UDP
100.100.100.211;branch=z9hG4bK3916.41fc6fb3.0;received=100.100.100.211

Via: SIP/2.0/UDP 100.100.100.211:5090
;rport=5090;branch=z9hG4bK1QH1XDH609cUm

Record-Route: 

From: "camila" 
>;tag=QmrB15eKrQ3Bj

To: >

Call-ID: 54a74b6a-9cf6-122e-05a0-0050bad00883

CSeq: 7304076 INVITE

Server: Thirdlane

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO

Supported: replaces, timer

Require: timer

Session-Expires: 1800;refresher=uas

Contact: 
>

Content-Length: 0





User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)

Session Initiation Protocol

Status-Line: SIP/2.0 200 OK

Status-Code: 200

[Resent Packet: False]

Message Header

Via: SIP/2.0/UDP
100.100.100.211;branch=z9hG4bK3916.41fc6fb3.0;received=100.100.100.211

Via: SIP/2.0/UDP 100.100.100.211:5090
;rport=5090;branch=z9hG4bK1QH1XDH609cUm

Record-Route: 

From: "camila" 
>;tag=QmrB15eKrQ3Bj

To: 
>;tag=as6727124a

Call-ID: 54a74b6a-9cf6-122e-05a0-0050bad00883

CSeq: 7304076 INVITE

Server: Thirdlane

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO

Supported: replaces, timer

Require: timer

Session-Expires: 1800;refresher=uas

Contact: 
>

Content-Type: application/sdp

Content-Length: 239

Message Body

Session Description Protocol





User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)

Session Initiation Protocol

Request-Line: ACK
sip:3031234@100.100.100.212SIP/2.0

Method: ACK

[Resent Packet: False]

Message He

[SR-Users] ACK problem with FreeSwitch-Kamailio SBC implementation.

2011-01-17 Thread Ricardo Martinez
Hello.

I was wondering if someone can help me with some problem that I’m having
with the combination of FreeSwitch and Kamailio as SBC.

I’m having and ACK not routed by kamailio and dropped.

Here is the debug.



100.100.100.211:5060 : Kamailio

100.100.100.211:5090 : FreeSwitch

100.100.100.108 : Caller

100.100.100.212 : Calle



Request-Line: INVITE
sip:02131234@100.100.100.211SIP/2.0

Method: INVITE

[Resent Packet: False]

Message Header

Via: SIP/2.0/UDP 64.76.148.108:42772
;branch=z9hG4bK-d8754z-da0b2e4b1b5d0843-1---d8754z-;rport

Max-Forwards: 70

Contact: 

To: >

From: "camila"
>;tag=8422566b

Call-ID: MjY2NDY5NTE3OTk4MzdmMjE0YWQxNWQ4MWFmY2JhMWQ.

CSeq: 1 INVITE

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO

Content-Type: application/sdp

User-Agent: Bria release 2.2 stamp 45414

Content-Length: 388

Message Body

Session Description Protocol



Status-Line: SIP/2.0 100 trying -- your call is important to us

Status-Code: 100

[Resent Packet: False]

Message Header

Via: SIP/2.0/UDP 64.76.148.108:42772
;branch=z9hG4bK-d8754z-da0b2e4b1b5d0843-1---d8754z-;rport=42772

To: >

From: "camila"
>;tag=8422566b

Call-ID: MjY2NDY5NTE3OTk4MzdmMjE0YWQxNWQ4MWFmY2JhMWQ.

CSeq: 1 INVITE

Server: kamailio (3.1.1 (i386/linux))

Content-Length: 0



Status-Line: SIP/2.0 200 OK

Status-Code: 200

[Resent Packet: False]

Message Header

Via: SIP/2.0/UDP 64.76.148.108:42772
;branch=z9hG4bK-d8754z-da0b2e4b1b5d0843-1---d8754z-;rport=42772

   Record-Route: 

From: "camila" 
>;tag=8422566b

To: 
>;tag=pBZjZayFUeDSp

Call-ID: MjY2NDY5NTE3OTk4MzdmMjE0YWQxNWQ4MWFmY2JhMWQ.

CSeq: 1 INVITE

Contact: 

User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-d41e649 2011-01-11
12-25-55 -0600

Accept: application/sdp

Message Body

Session Description Protocol





Request-Line: ACK sip:02131234@100.100.100.211:5090;transport=udp
SIP/2.0

Method: ACK

[Resent Packet: False]

Message Header

Via: SIP/2.0/UDP 64.76.148.108:42772
;branch=z9hG4bK-d8754z-182d537bcb534165-1---d8754z-;rport

Max-Forwards: 70

Route: 

Contact: 

To: 
>;tag=pBZjZayFUeDSp

From: "camila"
>;tag=8422566b

Call-ID: MjY2NDY5NTE3OTk4MzdmMjE0YWQxNWQ4MWFmY2JhMWQ.

CSeq: 1 ACK

User-Agent: Bria release 2.2 stamp 45414

Content-Length: 0



Status-Line: SIP/2.0 200 OK

Status-Code: 200

[Resent Packet: True]

[Suspected resend of frame: 7]

Message Header

Via: SIP/2.0/UDP 64.76.148.108:42772
;branch=z9hG4bK-d8754z-da0b2e4b1b5d0843-1---d8754z-;rport=42772

Record-Route: 

From: "camila" 
>;tag=8422566b

To: 
>;tag=pBZjZayFUeDSp

Call-ID: MjY2NDY5NTE3OTk4MzdmMjE0YWQxNWQ4MWFmY2JhMWQ.

CSeq: 1 INVITE

Contact: 

User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-d41e649 2011-01-11
12-25-55 -0600

Accept: application/sdp

Message Body

Session Description Protocol





When I removed Freeswitch from the path the ACK is routed ok.

The ACK is routed by loose_route, but then it fails because the



if ( t_check_trans() ) {





What could be happening?



Regards,

Ricardo.-



*Ricardo Martínez **|* Ingeniero de Desarrollo
RedVoiss *|* rmarti...@redvoiss.net

Santiago - Chile *|* +56 2 2408196
www.redvoiss.net
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] LCR module : same IP address for different prefix.

2011-02-02 Thread Ricardo Martinez
Hello.

We’re using the LCR module with version 3.1.1 of Kamailio.  We’re trying to
add two gateways, with the same IP address, we have this configuration
running in the previous version of Kamailio (v 1.5), without any problem,
but in this version seems to have some issues.



This is what I’m trying to do :

mysql> select * from lcr_gw;

+++-+---+--+--+++---+---+--+---+-+

| id | lcr_id | gw_name | ip_addr   | hostname | port | params |
uri_scheme | transport | strip | tag  | flags | defunct |

+++-+---+--+--+++---+---+--+---+-+

|  1 |  1 | GW_1| 10.0.0.209| NULL | 5060 | NULL
|  1 | 1 | 3 | 303  | 1 |NULL |

|  8 |  1 | GW_33   | 10.0.0.209| NULL | 5060 | NULL
|  1 | 1 | 3 | 4411 | 1 |NULL |

|  6 |  1 | GW_6| 10.0.0.212| NULL | 5060 | NULL
|  1 | 1 | 5 | 308  | 1 |NULL |

+++-+---+--+--+++---+---+--+---+-+



And this is the output from the logs :



/usr/local/sbin/kamailio[2829]: ERROR: lcr [lcr_mod.c:818]: gw <10.0.0.209,
5060, > is not unique



What could be the problem?. Os simply the new LCR does not support have two
gateways with the same IP address?



Thanks,

Ricardo Martinez.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR module : same IP address for different prefix.

2011-02-04 Thread Ricardo Martinez
Nobody on this one?.



Ricardo.-



*De:* Ricardo Martinez [mailto:rmarti...@redvoiss.net]
*Enviado el:* miércoles, 02 de febrero de 2011 17:58
*Para:* 'sr-users@lists.sip-router.org'
*Asunto:* LCR module : same IP address for different prefix.



Hello.

We’re using the LCR module with version 3.1.1 of Kamailio.  We’re trying to
add two gateways, with the same IP address, we have this configuration
running in the previous version of Kamailio (v 1.5), without any problem,
but in this version seems to have some issues.



This is what I’m trying to do :

mysql> select * from lcr_gw;

+++-+---+--+--+++---+---+--+---+-+

| id | lcr_id | gw_name | ip_addr   | hostname | port | params |
uri_scheme | transport | strip | tag  | flags | defunct |

+++-+---+--+--+++---+---+--+---+-+

|  1 |  1 | GW_1| 10.0.0.209| NULL | 5060 | NULL
|  1 | 1 | 3 | 303  | 1 |NULL |

|  8 |  1 | GW_33   | 10.0.0.209| NULL | 5060 | NULL
|  1 | 1 | 3 | 4411 | 1 |NULL |

|  6 |  1 | GW_6| 10.0.0.212| NULL | 5060 | NULL
|  1 | 1 | 5 | 308  | 1 |NULL |

+++-+---+--+--+++---+---+--+---+-+



And this is the output from the logs :



/usr/local/sbin/kamailio[2829]: ERROR: lcr [lcr_mod.c:818]: gw <10.0.0.209,
5060, > is not unique



What could be the problem?. Os simply the new LCR does not support have two
gateways with the same IP address?



Thanks,

Ricardo Martinez.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Problem with LCR!

2011-02-07 Thread Ricardo Martinez
Hello.

We’re having critical issues with our LCR, we have the Kamailio version
1.5.2, several calls are arriving to our LCR and from some reason the next
message appears in the log :



Feb  6 12:01:55 /usr/local/sbin/kamailio[14185]: NOTICE:lcr:gw_set_state:
trunk "xx.xx.xx.135:5060" from group: <2099> is OFFLINE!



We can see this message repeated for every single gateway in the “gw” table
from the LCR, after this happened, the LCR rounting process is blocked and
no more calls are processed.

Can someone help us with this problem?



Thanks in advance,



*Regards,*

*Ricardo Martinez.-*

* *
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Problem with LCR!

2011-02-08 Thread Ricardo Martinez
Hi Juha.
So, i'm in the middle of a problem here.  Since the module has change so
dramatically from version 1.5 to version 3.1, I'm not able to upgrade so
easily.
I'm using the LCR module along with the 1.5 version.  I'm able to do ping to
my gateways to see if they are on-line, and also and the most important
thing, I use the same IP address for several prefixes, thing that I can't do
in the last version of kamailio.  So is there a way that someone can check
the problem reported?.  Or maybe remove the duplicate check for the 3.1
branch?

Thanks in advance.
Regards,
Ricardo.-

-Mensaje original-
De: sr-users-boun...@lists.sip-router.org
[mailto:sr-users-boun...@lists.sip-router.org] En nombre de Juha Heinanen
Enviado el: martes, 08 de febrero de 2011 2:58
Para: Ricardo Martinez
CC: sr-users@lists.sip-router.org
Asunto: [SR-Users] Problem with LCR!

Ricardo Martinez writes:

> We’re having critical issues with our LCR, we have the Kamailio version
> 1.5.2, several calls are arriving to our LCR and from some reason the next
> message appears in the log :

i'm not supporting lcr module in 1.5 branch anymore.  try upgrading to
3.0 or 3.1.

-- juha

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Mediaproxy 2.4.4 sessions

2011-02-16 Thread Ricardo Martinez
Hello.

I’m using kamailio 3.1.2 and mediaproxy 2.4.4 .  Is there a way to see the
active media sessions like in the old mediaproxy? I was using the command
./sessions



Thanks

Ricardo-.
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] HTABLE problem

2011-02-18 Thread Ricardo Martinez
Hello

I’m trying to use “htable” module with the example to block a user with
three time s failed password.

When a REGISTER arrives I’m getting this error :

Feb 18 17:26:34 /usr/local/sbin/kamailio[5840]: ERROR: 
[lvalue.c:358]: setting pvar failed

Feb 18 17:26:34 /usr/local/sbin/kamailio[5840]: ERROR: 
[lvalue.c:411]: assignment failed at pos: (322,54-322,81)

Feb 18 17:26:34 /usr/local/sbin/kamailio[5840]: ERROR: 
[lvalue.c:358]: setting pvar failed

Feb 18 17:26:34 /usr/local/sbin/kamailio[5840]: ERROR: 
[lvalue.c:411]: assignment failed at pos: (328,47-328,49)



The lines pointing the error are these :



312if ( !radius_www_authorize("10.0.0.208") )

313{

314switch ($retcode)  {

315case -1:

316xlog("L_INFO","authentication failed from
radius\n");

317if($sht(a=>$au::auth_count) == "null")

318{

319$sht(a=>$au::auth_count) = 0;

320}

321$sht(a=>$au::auth_count) =
$sht(a=>$au::auth_count) + 1;

322if($sht(a=>$au::auth_count) == 3)

323{

324xlog("L_INFO","auth failed 3rd time -
src ip: $si\n");

325}

326$sht(a=>$au::last_auth) = $Ts;

327break;

328case -5:

329sl_send_reply("403", "Forbidden");

330exit;

331}

332www_challenge("10.0.0.208", "1");

333exit;

334}



What could be the problem?



Thanks in advance.

Regards,

Ricardo.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] HTABLE problem

2011-02-21 Thread Ricardo Martinez
Hi Ramona.

Thanks for your help.  I just put a snippet of my config file, in the
original configuration I include the check for the “Authorization” header.

In a second view of my configuration file I spotted a problem (my mistake),
I was missing the modparam which define the table “a”.  So I added that and
now I’m getting another problem :



The line “if($sht(a=>$au::auth_count) == 3)” is never checked because the
auth_count is not being summed as a integer value.  This is what I’m getting
for the dump :



[root@ tmp]# kamctl fifo sht_dump a

Entry:: 108

550444::last_auth:: 1298316540

Entry:: 250

550444::auth_count:: 11

[root@ tmp]#

[root@ tmp]# kamctl fifo sht_dump a

Entry:: 108

550444::last_auth:: 1298316562

Entry:: 250

550444::auth_count:: 

[root@ tmp]# kamctl fifo sht_dump a

Entry:: 108

550444::last_auth:: 1298316568

Entry:: 250

550444::auth_count:: 11



So .. it seems just to be adding a “1” to the end of the string.  This is
the configuration file :



if(is_present_hf("Authorization"))

{

if($sht(a=>$au::auth_count)==3)

{

xlog("L_INFO","auth_count = 3\n");

$var(exp) = $Ts - 900;

if($sht(a=>$au::last_auth) > $var(exp))

{

xlog("L_INFO","REG de una IP banned\n");

sl_send_reply("403", "Try later");

exit;

} else {

$sht(a=>$au::auth_count) = 0;

}

}



if ( !radius_www_authorize("10.0.0.208") )

{

switch ($retcode)  {

case -1:

xlog("L_INFO","authentication failed
from radius\n");

if($sht(a=>$au::auth_count) ==
"null")

{

$sht(a=>$au::auth_count) =
0;

}

$sht(a=>$au::auth_count) =
$sht(a=>$au::auth_count) + 1;

if($sht(a=>$au::auth_count) == 3)

{

xlog("L_INFO","auth failed
3rd time - src ip: $si\n");

}

$sht(a=>$au::last_auth) = $Ts;

break;

case -5:

sl_send_reply("403", "Forbidden");

exit;

}

www_challenge("10.0.0.208", "1");

exit;

}

$sht(a=>$au::auth_count) = 0;

save("location");

xlog("L_INFO","Save Location\n");

exit;

} else {

xlog("L_INFO","REG no tiene autorization Header\n");

www_challenge("10.0.0.208", "1");

exit;

    }



} else if {

sl_send_reply("403", "Forbidden");

exit;

};





What I’m doing wrong.



Thanks in advance.

Regards,

Ricardo.-



*De:* Elena-Ramona Modroiu [mailto:ram...@asipto.com]
*Enviado el:* lunes, 21 de febrero de 2011 15:36
*Para:* Ricardo Martinez
*CC:* sr-users@lists.sip-router.org
*Asunto:* Re: [SR-Users] HTABLE problem



Hi,

this may be related to same issue reported at:
http://sip-router.org/tracker/index.php?do=details&task_id=114

Therefore it can be just some log message printed erroneously. Can you dump
the htable content (or print it with xlog) to see if the assignment is
actually done or not?

Dumping the htable content:

kamctl fifo sht_dump a

Another possible issue I spot with your config is that you don't check for
the existence of Authorization header. Since I am not using auth_radius, I
am not sure radius_www_authorize() return -1 only when the password
mismatches. Might be also when there is no header carrying the credentials.
If no Authorization header is present, the $au is null -- in this case you
just have to do www_challenge() and exit, since counting failed
authentications for "" user might bring you unexpected behaviour.

Regards,
Ramona


On 2/18/11 10:35 PM, Ricardo Martinez wrote:

Hello

I’m trying to use “htable” module with the example to block a user with
three time s failed

Re: [SR-Users] HTABLE problem

2011-02-21 Thread Ricardo Martinez
I think i found the problem.

I was checking the “pike” example in the asipto knowledgebase and there is a
line like this :



 if($sht(ipban=>$si)!=$null)



the null is with “$”, so it seems to be a typo problem in the examples.

Please check the HTABLE MODULE README, the Example in the ASIPTO
knowledgebase and even the book from the Kamailio advance course, they all
have  “if(x) == null”.

Now seems to be working fine.



Thanks.

Ricardo Martinez.





*De:* Ricardo Martinez [mailto:rmarti...@redvoiss.net]
*Enviado el:* lunes, 21 de febrero de 2011 16:34
*Para:* 'ram...@asipto.com'
*CC:* 'sr-users@lists.sip-router.org'
*Asunto:* RE: [SR-Users] HTABLE problem



Hi Ramona.

Thanks for your help.  I just put a snippet of my config file, in the
original configuration I include the check for the “Authorization” header.

In a second view of my configuration file I spotted a problem (my mistake),
I was missing the modparam which define the table “a”.  So I added that and
now I’m getting another problem :



The line “if($sht(a=>$au::auth_count) == 3)” is never checked because the
auth_count is not being summed as a integer value.  This is what I’m getting
for the dump :



[root@ tmp]# kamctl fifo sht_dump a

Entry:: 108

550444::last_auth:: 1298316540

Entry:: 250

550444::auth_count:: 11

[root@ tmp]#

[root@ tmp]# kamctl fifo sht_dump a

Entry:: 108

550444::last_auth:: 1298316562

Entry:: 250

550444::auth_count:: 

[root@ tmp]# kamctl fifo sht_dump a

Entry:: 108

550444::last_auth:: 1298316568

Entry:: 250

550444::auth_count:: 11



So .. it seems just to be adding a “1” to the end of the string.  This is
the configuration file :



if(is_present_hf("Authorization"))

{

if($sht(a=>$au::auth_count)==3)

{

xlog("L_INFO","auth_count = 3\n");

$var(exp) = $Ts - 900;

if($sht(a=>$au::last_auth) > $var(exp))

{

xlog("L_INFO","REG de una IP banned\n");

sl_send_reply("403", "Try later");

exit;

} else {

$sht(a=>$au::auth_count) = 0;

}

}



if ( !radius_www_authorize("10.0.0.208") )

{

switch ($retcode)  {

case -1:

xlog("L_INFO","authentication failed
from radius\n");

if($sht(a=>$au::auth_count) ==
"null")

{

$sht(a=>$au::auth_count) =
0;

}

$sht(a=>$au::auth_count) =
$sht(a=>$au::auth_count) + 1;

if($sht(a=>$au::auth_count) == 3)

{

xlog("L_INFO","auth failed
3rd time - src ip: $si\n");

}

$sht(a=>$au::last_auth) = $Ts;

break;

case -5:

sl_send_reply("403", "Forbidden");

exit;

}

www_challenge("10.0.0.208", "1");

exit;

}

$sht(a=>$au::auth_count) = 0;

save("location");

xlog("L_INFO","Save Location\n");

exit;

} else {

xlog("L_INFO","REG no tiene autorization Header\n");

www_challenge("10.0.0.208", "1");

    exit;

}



} else if {

sl_send_reply("403", "Forbidden");

exit;

};





What I’m doing wrong.



Thanks in advance.

Regards,

Ricardo.-



*De:* Elena-Ramona Modroiu [mailto:ram...@asipto.com]
*Enviado el:* lunes, 21 de febrero de 2011 15:36
*Para:* Ricardo Martinez
*CC:* sr-users@lists.sip-router.org
*Asunto:* Re: [SR-Users] HTABLE problem



Hi,

this may be related to same issue reported at:
http://sip-router.org/tracker/index.php?do=details&task_id=114

Therefore it can be just some log message printed erroneously. Can you dump
the htable content (or print it with xlog) to see if the assignment is
actually done or not?

Dumping th

[SR-Users] stats in kamailio

2011-02-23 Thread Ricardo Martinez
Hello.

I’m trying to get statistics to use charts in SIREMIS v2.0.  I was able to
load the “Memory” statistics but I want to know if there is more information
to use from Kamailio,  right now I have :



$stat(used_size)

$stat(real_used_size)

$stat(max_used_size)

$stat(free_size)

$stat(location-users)

$stat(location-contacts)



Where can I find the complete list of statistics to get from kamailio?.



Thanks in advance.

Ricardo Martinez.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] stats in kamailio

2011-02-23 Thread Ricardo Martinez
Thanks Ovidiu.
In particular is there a way to see the statistics related to the "load"
of the server? Or cpu used by kamailio?

Thanks
Ricardo.-

-Mensaje original-
De: sip.n...@gmail.com [mailto:sip.n...@gmail.com] En nombre de Ovidiu Sas
Enviado el: miércoles, 23 de febrero de 2011 16:52
Para: Ricardo Martinez
CC: sr-users@lists.sip-router.org
Asunto: Re: [SR-Users] stats in kamailio

Each module may or may not have statistics.
Check the README file for each module that you have loaded to see what
statistics are available.
For example, here are the statistics exported by the tmx module:
http://www.kamailio.org/docs/modules/3.1.x/modules_k/tmx.html#id2700650


Regards,
Ovidiu Sas

On Wed, Feb 23, 2011 at 2:49 PM, Ricardo Martinez
 wrote:
> Hello.
>
> I’m trying to get statistics to use charts in SIREMIS v2.0.  I was able
to
> load the “Memory” statistics but I want to know if there is more
information
> to use from Kamailio,  right now I have :
>
>
>
> $stat(used_size)
>
> $stat(real_used_size)
>
> $stat(max_used_size)
>
> $stat(free_size)
>
> $stat(location-users)
>
> $stat(location-contacts)
>
>
>
> Where can I find the complete list of statistics to get from kamailio?.
>
>
>
> Thanks in advance.
>
> Ricardo Martinez.-
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Question about time display in SIREMIS 2.0

2011-02-28 Thread Ricardo Martinez
Hello.

Is there a way to adjust the timezone to display the charts and the logs in
the SIREMIS 2.0?  I have my linux machine with my local timezone, but the
display in the charts and the logs are not in synch with my local time.

Thanks in advance.



Regards,



Ricardo Martinez.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Question about time display in SIREMIS 2.0

2011-03-02 Thread Ricardo Martinez
Hello Ramona.

It is odd.  I have created a table in my openser database called
“statistics”.  The time_stamp column stores the $Ts from Kamailio.

These are my last three entries :



mysql> select id,time_stamp,ul_users,fwd_requests from statistics ORDER by
id DESC limit 3;

+--++--+--+

| id   | time_stamp | ul_users | fwd_requests |

+--++--+--+

| 2002 | 1299098096 |1 |0 |

| 2001 | 1299097646 |1 |   18 |

| 2000 | 1299097346 |1 |   18 |

+--++--+--+

3 rows in set (0.00 sec)



If I convert the last three timestamps I get :



1299098096 à Wed, 02 Mar 2011 20:22:26 GMT

1299097646 à Wed, 02 Mar 2011 20:27:26 GMT

1299098096 à Wed, 02 Mar 2011 20:34:56 GMT



But in the charts I keeps seeing the last entry as : 12:34:56 PM.







My time_stamp column is created as INT().  Could that be the problem?



++-+--+-+-++

| Field  | Type| Null | Key | Default | Extra  |

++-+--+-+-++

| id | int(11) | NO   | PRI | NULL| auto_increment |

| time_stamp | int(11) | YES  | | NULL||

++-+--+-+-++



Hope you can help me.

Thanks in advance,

Regards,



Ricardo Martinez.-





*De:* Elena-Ramona Modroiu [mailto:ram...@asipto.com]
*Enviado el:* miércoles, 02 de marzo de 2011 15:48
*Para:* Ricardo Martinez
*CC:* sr-users@lists.sip-router.org
*Asunto:* Re: [SR-Users] Question about time display in SIREMIS 2.0



Hi,

for charts siremis uses the date() function to convert from unix timestamp
that is written by kamailio to the displayed date. It might be possible to
adjust the timezone from php.ini.

Regards,
Ramona

On 2/28/11 10:30 PM, Ricardo Martinez wrote:

Hello.

Is there a way to adjust the timezone to display the charts and the logs in
the SIREMIS 2.0?  I have my linux machine with my local timezone, but the
display in the charts and the logs are not in synch with my local time.

Thanks in advance.



Regards,



Ricardo Martinez.-







___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
<>___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Question about time display in SIREMIS 2.0

2011-03-22 Thread Ricardo Martinez
Hello.

Can someone help me here?.

I’m still unable to get the charts working ok.

Maybe it is a bug?



Thanks

Ricardo.-



*De:* Ricardo Martinez [mailto:rmarti...@redvoiss.net]
*Enviado el:* miércoles, 02 de marzo de 2011 17:47
*Para:* 'ram...@asipto.com'
*CC:* 'sr-users@lists.sip-router.org'
*Asunto:* RE: [SR-Users] Question about time display in SIREMIS 2.0



Hello Ramona.

It is odd.  I have created a table in my openser database called
“statistics”.  The time_stamp column stores the $Ts from Kamailio.

These are my last three entries :



mysql> select id,time_stamp,ul_users,fwd_requests from statistics ORDER by
id DESC limit 3;

+--++--+--+

| id   | time_stamp | ul_users | fwd_requests |

+--++--+--+

| 2002 | 1299098096 |1 |0 |

| 2001 | 1299097646 |1 |   18 |

| 2000 | 1299097346 |1 |   18 |

+--++--+--+

3 rows in set (0.00 sec)



If I convert the last three timestamps I get :



1299098096 à Wed, 02 Mar 2011 20:22:26 GMT

1299097646 à Wed, 02 Mar 2011 20:27:26 GMT

1299098096 à Wed, 02 Mar 2011 20:34:56 GMT



But in the charts I keeps seeing the last entry as : 12:34:56 PM.







My time_stamp column is created as INT().  Could that be the problem?



++-+--+-+-++

| Field  | Type| Null | Key | Default | Extra  |

++-+--+-+-++

| id | int(11) | NO   | PRI | NULL| auto_increment |

| time_stamp | int(11) | YES  | | NULL||

++-+--+-+-++



Hope you can help me.

Thanks in advance,

Regards,



Ricardo Martinez.-





*De:* Elena-Ramona Modroiu [mailto:ram...@asipto.com]
*Enviado el:* miércoles, 02 de marzo de 2011 15:48
*Para:* Ricardo Martinez
*CC:* sr-users@lists.sip-router.org
*Asunto:* Re: [SR-Users] Question about time display in SIREMIS 2.0



Hi,

for charts siremis uses the date() function to convert from unix timestamp
that is written by kamailio to the displayed date. It might be possible to
adjust the timezone from php.ini.

Regards,
Ramona

On 2/28/11 10:30 PM, Ricardo Martinez wrote:

Hello.

Is there a way to adjust the timezone to display the charts and the logs in
the SIREMIS 2.0?  I have my linux machine with my local timezone, but the
display in the charts and the logs are not in synch with my local time.

Thanks in advance.



Regards,



Ricardo Martinez.-







___

SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

sr-users@lists.sip-router.org

http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
<>___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR module : same IP address for different prefix.

2011-03-28 Thread Ricardo Martinez
Hello Juha.
How can access this change in the code?.  Do I need to update to the last
version? 3.1.2 ??
Hope you can help me.

Thanks
Ricardo.-

-Mensaje original-
De: sr-users-boun...@lists.sip-router.org
[mailto:sr-users-boun...@lists.sip-router.org] En nombre de Juha Heinanen
Enviado el: miércoles, 09 de febrero de 2011 18:00
Para: Antanas Masevicius
CC: sr-users@lists.sip-router.org
Asunto: Re: [SR-Users] LCR module : same IP address for different prefix.

Antanas Masevicius writes:

> Thank you for your work! This feature is highly needed i suspect.

it would be possible to cherry-pick the patch also to 3.1, but i don't
know if that is appropriate, because removing gw uniqueness check is not
strictly a bug fix.  it is just a piece of not needed code.

-- juha

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] LCR defunct_gw use

2011-03-30 Thread Ricardo Martinez
Hello.

Can someone please explain to me hoy can i use the command “defunct_gw()” is
used to mark a gw down?.

I understand that the gateway is marked down for period of time with the
command, but how can I check if a gateway is down?.  Can someone show me
this with an example in the configuration?



*Thanks in advance,*

*Regards,*

* *

* *

*Ricardo Martinez.-*
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR defunct_gw use

2011-03-31 Thread Ricardo Martinez
Hello Juha..
Maybe I did not read the README file so well, but I can't find where it says
that the defunct_gw() function defunct a gateway of previous next_gw() call.
So, according to a response code I can mark a gateway down, but how can I
mark a gateway down upon no response?, let's say that my gateway is offline.
How can I check this status?
Thanks

Ricardo.-

-Mensaje original-
De: sr-users-boun...@lists.sip-router.org
[mailto:sr-users-boun...@lists.sip-router.org] En nombre de Juha Heinanen
Enviado el: jueves, 31 de marzo de 2011 2:26
Para: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List
Asunto: [SR-Users] LCR defunct_gw use

Ricardo Martinez writes:

> Can someone please explain to me hoy can i use the command “defunct_gw()”
> is
> used to mark a gw down?.

as the README tells, the function defuncts the gateway of previous
next_gw() call.

> I understand that the gateway is marked down for period of time with the
> command, but how can I check if a gateway is down?.  Can someone show me
> this with an example in the configuration?

you activate failure route before calling t_relay() and then in the
failure route you can call defunct_gw() depending on the response
code.

-- juha

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR defunct_gw use

2011-03-31 Thread Ricardo Martinez
Thanks Juha.
So please, can you clarify me one more thing?.
This 408 response code is generated in the failure_route only? what if
a gateway really answers a call with 408 because there was no answer from
the client... this response is handled by the on_reply route , isn't?

Thanks
Ricardo.-


-Mensaje original-
De: sr-users-boun...@lists.sip-router.org
[mailto:sr-users-boun...@lists.sip-router.org] En nombre de Juha Heinanen
Enviado el: jueves, 31 de marzo de 2011 10:15
Para: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List
Asunto: Re: [SR-Users] LCR defunct_gw use

Ricardo Martinez writes:

> Maybe I did not read the README file so well, but I can't find where it
says
> that the defunct_gw() function defunct a gateway of previous next_gw()
> call.

well, it is sort of indirectly specified if you read what is said about
defunct_gw_avp and lcr_id_avp, but i'll make it more explicit.

> So, according to a response code I can mark a gateway down, but how can
I
> mark a gateway down upon no response?, let's say that my gateway is
offline.
> How can I check this status?

you set tm timers using t_set_fr() call before calling t_relay() and if
there is no response, failure route will be called with 408 response code.

-- juha

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Avpops problem - bad avp flags.

2011-04-01 Thread Ricardo Martinez
Hello.

I’m having a problems using the avpops with the kamailio version 3.1.2

I have the next configuration:



modparam("avpops", "db_url", "mysql://openser:openserrw@localhost/openser")

modparam("avpops", "avp_table", "usr_preferences")



-



route[REQINIT]  {



if( !(avp_db_load("pike", "s:ip_origen") && avp_check("s:ip_origen",
"eq/$src_ip/gi")) )

   {

   …

   }



mysql> select * from usr_preferences;

++--+--++---+--+---+-+

| id | uuid | username | domain | attribute | type | value |
last_modified   |

++--+--++---+--+---+-+

|  1 | pike | 0|| ip_origen |0 | 100.20.100.20 |
1900-01-01 00:00:01 |

++--+--++---+--+---+-+

1 row in set (0.00 sec)



When I try to start kamailio I’m getting the next error :



Apr  1 10:36:08 kamailio[15418]: ERROR: avpops [avpops_parse.c:129]: error -
bad avp flags

Apr  1 10:36:08 kamailio[15418]: ERROR: avpops [avpops.c:299]: parse failed

Apr  1 10:36:08 kamailio[15418]: ERROR:  [route.c:1161]: fixing failed
(code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:238

Apr  1 10:36:08 kamailio[15418]: ERROR:  [route.c:1161]: fixing failed
(code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:263





I can’t find the problem.

Can someone help me?



Regards.

Ricardo.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] LCR weight

2013-01-07 Thread Ricardo Martinez
Hello.

I have a doubt about the WEIGHT value  in the LCR module.  In the past we
used the Kamailio version 1.5.2 and in that version LCR weight was
calculated by a little script called lcr_weight_script.php.  There was not
“percent” values like 50% and 50% for two gateways despite that  the
probabilities were numbers calculated by the script.  My question is  : For
Kamailio version 3.2.4  do I have to use the same script to calculate the
weight?? I was almost sure that the weight column was a probability value.

For example if I have 3 gateways, with 50% 25% and 25%

The weight column should be : 50, 25 and 25 ? or 45, 32 and 32 as the
script indicates???

[root@vlcr utils]# ./lcr_weight_test.sh 45 32 32

weight 45 probability 0.5235

weight 32 probability 0.2352

weight 32 probability 0.2413



Please enlighten me here.



Thanks

Ricardo.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Hash Table capacity

2013-08-14 Thread Ricardo Martinez
Hello list.

I have a question about the HTABLE module.  Suppose that I have a mysql
database with 2 million of records.  Is possible to load this table as a
hash table compatible with Kamailio!?



Hope someone can help me.



Thanks,
Ricardo Martinez.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Hash Table capacity

2013-08-19 Thread Ricardo Martinez
Anyone here?

Thanks!



Ricardo.-



*De:* Ricardo Martinez [mailto:rmarti...@redvoiss.net]
*Enviado el:* miércoles, 14 de agosto de 2013 18:34
*Para:* sr-users@lists.sip-router.org
*Asunto:* Hash Table capacity



Hello list.

I have a question about the HTABLE module.  Suppose that I have a mysql
database with 2 million of records.  Is possible to load this table as a
hash table compatible with Kamailio!?



Hope someone can help me.



Thanks,
Ricardo Martinez.-
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users