[SR-Users] Problem with PUA

2013-04-26 Thread andpe
Hi
I am new to Kamailio. I have a configuration with existing phones. I call 
between them.
However, I have a problem with the configuration of PRESENCE.
I guess I'm doing something wrong. Can someone send me a sample setup working.
I looked for a long time information, but I could not fix my problem.
In the logs I get the information:
6 (19259) ERROR: pua [send_publish.c: 578]: New PUBLISH and no body 
found-invalid request
  6 (19259) ERROR: pua_usrloc [ul_publish.c: 326]: while sending publish
[cycle # 12, if constant make sure server lives]
Version:
Server :: kamailio (4.0.0 (i386/linux))
Build :: mi_core.c compiled on Apr 4 2013 11:20:52 with gcc 4.4.5
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, 
USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, 
USE_DST_BLACKLIST, HAVE_RESOLV_RES
GIT :: 1d009c
 
regards
Andy___
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] misc_radius - too many extras

2013-04-26 Thread Victor V. Kustov
Hi all

I've got same error:

misc_radius [extra.c:80]: too many extras - please increase the internal buffer

How I get increase buffer in config?


-- 
 SY,
Victor
  JID: coy...@bks.tv
  JID: coy...@bryansktel.ru
  I use FREE operation system: 3.8.4-calculate GNU/Linux

___
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] misc_radius - too many extras

2013-04-26 Thread Daniel-Constantin Mierla

Hello,

looking in the code, you have to recompile the module with higher value 
for MAX_EXTRA define in:


modules/auth_radius/extra.h

Regards,
Daniel

On 4/26/13 9:12 AM, Victor V. Kustov wrote:

Hi all

I've got same error:

misc_radius [extra.c:80]: too many extras - please increase the internal buffer

How I get increase buffer in config?




--
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] Issue with app_perl - return value, logging and append_branch

2013-04-26 Thread Daniel-Constantin Mierla

Hello,

I am not an user of app_perl, but return code might be propagate to the 
config script. Kamialio configuration interpreter will exit if a config 
function returns 0. The same happens if you execute return(0) in 
route[PERL].


For the other issues, can you set debug=3 in your config and watch the 
logs to see if you can spot some useful message?


Cheers,
Daniel


On 4/24/13 8:23 PM, Mark Boyce wrote:

Hi All


I may well be me missing something obvious but I have got three odd ones whilst 
trying to test app_perl module which I'd appreciate some assistance with.

Setup


Kamailio version:  4.0.0 (x86_64/linux)  from Peter Dunkley's YUM 
Repository

Perl version: v5.10.1

OS version  : CentOS release 6.4


Kamailio.cfg highlights;

loadmodule app_perl.so
modparam(app_perl, filename, /tmp/test.pl)
modparam(app_perl, modpath, /usr/lib64/kamailio/perl/)

# ** would someone like to add the app_ to 5.1 and 5.2 of the manuals please

request_route {
.
.
route(PERL);
.
.
}


route[PERL] {
 if ($rU=~^124  method==INVITE) {
 xlog(L_INFO,perl: match $rm $ru from:$fu ($si:$sp) to:$tu  
rpid:$re\n);
 if (perl_exec(testrouting)) {
 xlog(L_INFO,perl: true exit\n);
 } else {
 xlog(L_INFO,perl: false exit\n);
 }
 }
}


/tmp/test.pl has the following in it ...

#!/usr/bin/perl

use Kamailio qw ( log );
use Kamailio::Constants;
use Sys::Syslog qw( :DEFAULT setlogsock);

sub testrouting {
 setlogsock('unix');
 openlog($0,'','user');
 syslog('info', PERL Kamailio - Log test);
 closelog;

  return 1;
}

There is no valid route for 124@ and the above works exactly as I'd expect;

- Phone sends INVITE to 124
- Proxy responds with AUTH Required
- Phone sends ACK
- Phone sends INVITE to 124 with AUTH
-- SysLog gets a PERL Kamailio - Log test from perl script
-- Kamailio log gets perl: true exit
- Proxy responds with 404 Not Found
- Phone sends ACK




--
First problem is that if I swap the return 1 in test.pl for return 0 what I 
see is;

- Phone sends INVITE to 124
- Proxy responds with AUTH Required
- Phone sends ACK
- Phone sends INVITE to 124 with AUTH
-- SysLog gets a PERL Kamailio - Log test from perl script
- Phone resends INVITE to 124 with AUTH
-- SysLog gets a PERL Kamailio - Log test from perl script
- Phone resends INVITE to 124 with AUTH
-- SysLog gets a PERL Kamailio - Log test from perl script
-- I Hang Up Phone
-- Phone send CANCEL
-- Phone send CANCEL
-- Phone send CANCEL

In this second test once perl_exec is called all routing seems to stop.  
There's nothing from the xlog to say if perl_exec returned true or false.



--
The second problem I have is when I add Kamailio::log(L_INFO, line it never 
arrives in any of the logs

use Kamailio qw ( log );
use Kamailio::Constants;
use Sys::Syslog qw( :DEFAULT setlogsock);

sub testrouting {
  setlogsock('unix');
 openlog($0,'','user');
 syslog('info', PERL Kamailio - Log test);
 closelog;

 Kamailio::log(L_INFO, PERL : testrouting\n);
 return 1;
}


--
The third one is that I cannot get append_branch to do anything.

If I add to the perl script the lines;

 my $m = shift;
 $m-rewrite_ruri(sip:anotheruser\@ourserver);
  
The call gets diverted as expected.  However if I use append_branch;


$m-append_branch(sip:anotheruser\@ourserver);

It has no effect at all.

--

That's as far as I have experimented with the module so I can't say if 
everything else is working as expected :-)


Anyone have any thoughts?


Cheers

Mark


___
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] Montoring/Reporting Solution - Commercial/Open Source

2013-04-26 Thread Alexandr Dubovikov

4/25/2013 8:52 AM, Ali Jawad wrote:
Homer is a great product, I can wait for version 4 to come out. But 
currently it lacks the advanced reporting I need.  I will check in the 
business mailing list.


you can check Homer 3.5.  We have implemented there advanced statistics 
and alarms.


branch webhomer_3.5

Wbr,
Alexandr



On Wed, Apr 24, 2013 at 5:39 PM, Henning Westerholt h...@kamailio.org 
mailto:h...@kamailio.org wrote:


Am Mittwoch, 24. April 2013, 17:36:46 schrieb Ali Jawad:
 Any input please ?

 On Tue, Apr 23, 2013 at 2:31 PM, Ali Jawad
ali.ja...@splendor.net mailto:ali.ja...@splendor.net wrote:
  Hi
  I am in need of a solution that does provide me with advanced
graphing and
  report for Kamailio, I.e. ASR/ACD over day/month/destination
etc. with
  tresholds and alerts. Does anyone know about a solution that
is compatible
  with Kamailio and does this ?

Hello,

maybe you'd like to ask at the business list about a commercial
offering, if
the available open source software like homer or siremis does not
fulfil your
needs.

http://lists.kamailio.org/cgi-bin/mailman/listinfo/business

Best regards,

Henning Westerholt




--
*Ali Jawad
*
*Information Systems Manager
CISSP - PMP - ITIL V3 - RHCE - VCP - C|EH - CCNA - MCSA
*
*Splendor Telecom (www.splendor.net http://www.splendor.net/)
Beirut, Lebanon
Phone: +9611373725/ext 116
FAX: +9611375554

*


___
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