Re: [SR-Users] AVP Error in version 3.1.0

2011-02-16 Thread Daniel-Constantin Mierla

Hello,

it is not clear for me what you tried to do. Can you paste here the 
parts of the config file that are relevant for the case? Do you relay 
the REGISTER?


Cheers,
Daniel

On 2/16/11 1:17 AM, Jijo wrote:

Hi All,

On register we store the contact in an avp variable and do a 
t_relay(). After t_relay() the $avp variable becomes null.

I printed the value before after t_relay() to determine this behavior.
This happens only on registration load test around 2000 subcribers 
with ( 4 REGISTER/sec).  This happens only for one subscriber out of 
2000 subscribers.


I did the similar test with $var and its working fine.

Anybody observed similar behavior with avp? This was working in 
kamailio 1.4 version. We did the upgrade recently to 3.1.0 and started 
observing this issue.


How do we debug this issue.?


Thanks
Jijo


___
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

___
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] Failover with UCARP and Monit

2011-02-16 Thread Hugh Waite

Hello,
I am setting up a high-availablilty kamailio system using UCARP to 
failover between active and standby instances. To detect failure, we 
intend to use Monit.
Monit can monitor the kamailio PID and start the process when needed 
(Example on the wiki 
http://www.kamailio.org/dokuwiki/doku.php/install:configure-initd-script) and 
it can also do OPTIONS pings to verify it is working. If the pings fail 
we will initiate a ucarp swap.


However if the server is currently in standby, it does not have the V-IP 
address, so I don't want to run the OPTIONS pings (I think).


Does anyone use a similar system and can provide an example of how 
ucarp, monit and kamailio can work together?


Many thanks,

Hugh Waite

___
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] Failover with UCARP and Monit

2011-02-16 Thread Klaus Darilion


Am 16.02.2011 11:48, schrieb Hugh Waite:
 Hello,
 I am setting up a high-availablilty kamailio system using UCARP to
 failover between active and standby instances. To detect failure, we
 intend to use Monit.
 Monit can monitor the kamailio PID and start the process when needed
 (Example on the wiki
 http://www.kamailio.org/dokuwiki/doku.php/install:configure-initd-script) and
 it can also do OPTIONS pings to verify it is working. If the pings fail
 we will initiate a ucarp swap.
 
 However if the server is currently in standby, it does not have the V-IP
 address, so I don't want to run the OPTIONS pings (I think).

So, do not monitor a service which is not running.

Such things are usually done by a cluster resource manager (like
pacemaker).

regards
klaus


___
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] pdb module timeouts

2011-02-16 Thread Thomas Baumann

 Hello Marius, thanks a lot for submitting the patch. It works like a charm now. But to be honest I had troubles to find this patch, I just checked the daily tarball http://sip-router.org/tarballs/sr/ and found this change.How I can get patch e914f97b4 in a better way ?regards,ThomasHelloI have made a patch to 3.1(e914f97b4) . The poll() event list was not cleared when a response was received so when 2 servers responded one after the other it might block in an incorrect recv(). Can you please test with this?Marius
WEB.DE DSL Doppel-Flat ab 19,99 /mtl.! Jetzt mit gratis Handy-Flat! http://produkte.web.de/go/DSL_Doppel_Flatrate/2


___
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] pdb module timeouts

2011-02-16 Thread Thomas Baumann

Hello Marius,

thanks a lot for submitting the patch. It works like a charm now. But to be 
honest I had troubles to find this patch, I just checked the daily tarball  
[http://sip-router.org/tarballs/sr/] and found this  change.
How I can get patch e914f97b4 in a better way ?

regards,

Thomas

Hello

I have made a patch to 3.1(e914f97b4) . The poll() event list was not 
cleared when a response was received so when 2 servers responded one 
after the other it might block in an incorrect recv(). Can you please 
test with this?

Marius

___
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar

___
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 Error in version 3.1.0

2011-02-16 Thread Jijo
 Hi Daniel,

Please find the code and corresponding error trace. This happens only for 1
subscriber randomly out of 2000 subscribers. This can be reproduced
consistently also.

route(1)
{
:
:
:

# -
# Registration handling dynamic endpoints
# -

$avp(reg_contact)= $ct;
$var(reg_contact)= $ct;
t_on_reply(3);

if(!is_avp_set($avp(reg_contact)))
xlog(L_ERR, R1 - not set the reg_contact3 F=$fu T=$tu Ct=$ct
IP=$si CI=$ci var_contact:$var(reg_contact)\n);

 # relay
 if(!t_relay_to(0x3))
{
xlog(L_ERR, R1/R10 - Registration failed - M=$rm F=$fu T=$tu
CT=$ct IP=$si CI=$ci\n);
append_to_reply(Warning: 399 $Ri - R1 - Registration failed:
fail in relay in R10.\r\n);
sl_reply_error();
exit;
}

if(!is_avp_set($avp(reg_contact)))
xlog(L_ERR, R1 - not set the reg_contact4 F=$fu T=$tu Ct=$ct
IP=$si CI=$ci var_contact:$var(reg_contact)\n);

xlog(L_ERR, R1 - Saving Registration-2  save to location F=$fu
T=$tu Ct=$ct IP=$si CI=$ci reg_ct:$avp(reg_contact)\n);

 if(!isflagset(28)  is_avp_set($avp(reg_contact))) # Check if we
need to save it in location table
{
if(!save(location,0x02))
{
xlog(L_ERR, R1 - Location save for Registration failed -
M=$rm F=$fu T=$tu IP=$si CT=$ct\n);
}
}

LOGS for the error condtion.


2011-02-15T12:19:30-05:00 [err] sipserver: ERROR: script: R1 - not set the
reg_contact4 F=sip:5614510478@10.235.86.54:5060;transport=UDP
T=sip:5614510478@10.235.86.54:5060;transport=UDP Ct=
sip:5614510478@10.235.204.5:5060 IP=10.235.204.5
CI=119ac328-4cceb0a-13c4-7fa55-76a2903a-7fa55 var_contact:
sip:5614510478@10.235.204.5:5060
2011-02-15T12:19:30-05:00 [err] sipserver: ERROR: script: R1 - Saving
Registration-2  save to location
F=sip:5614510478@10.235.86.54:5060;transport=UDP
T=sip:5614510478@10.235.86.54:5060;transport=UDP Ct=
sip:5614510478@10.235.204.5:5060 IP=10.235.204.5
CI=119ac328-4cceb0a-13c4-7fa55-76a2903a-7fa55 reg_ct:null


On Wed, Feb 16, 2011 at 5:02 AM, Daniel-Constantin Mierla mico...@gmail.com
 wrote:

  Hello,

 it is not clear for me what you tried to do. Can you paste here the parts
 of the config file that are relevant for the case? Do you relay the
 REGISTER?

 Cheers,
 Daniel


 On 2/16/11 1:17 AM, Jijo wrote:

 Hi All,

 On register we store the contact in an avp variable and do a t_relay().
 After t_relay() the $avp variable becomes null.
 I printed the value before after t_relay() to determine this behavior.
 This happens only on registration load test around 2000 subcribers with ( 4
 REGISTER/sec).  This happens only for one subscriber out of 2000
 subscribers.

 I did the similar test with $var and its working fine.

 Anybody observed similar behavior with avp? This was working in kamailio
 1.4 version. We did the upgrade recently to 3.1.0 and started observing this
 issue.

 How do we debug this issue.?


 Thanks
 Jijo


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


 --
 Daniel-Constantin Mierlahttp://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


Re: [SR-Users] pdb module timeouts

2011-02-16 Thread marius zbihlei

On 02/16/2011 04:47 PM, Thomas Baumann wrote:

Hello Marius,

thanks a lot for submitting the patch. It works like a charm now. But to be 
honest I had troubles to find this patch, I just checked the daily tarball  
[http://sip-router.org/tarballs/sr/] and found this  change.
How I can get patch e914f97b4 in a better way ?

regards,
   


Hello

You can find here a tutorial on installing kamailio from GIT. 
http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git


Glad the patch worked. I really doubted the usefulness of the patch as 
revents member should be cleared by the poll() method before setting the 
POLLIN event for a fd. I will have to test it with a small test case on 
my machine before I commit this to master branch(anyway no wrong can 
come to it, the change has no impact on performance and stability of the 
pdb module)


Cheers
Marius

Thomas

   

Hello
 
   

I have made a patch to 3.1(e914f97b4) . The poll() event list was not
cleared when a response was received so when 2 servers responded one
after the other it might block in an incorrect recv(). Can you please
test with this?
 
   

Marius
 

___
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar

___
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 1.5.4 and beyond - mhomed issue under Linux

2011-02-16 Thread Henning Westerholt
On Monday 14 February 2011, Sean O'Donnell wrote:
 By the way, the 1.5.5 source tarball in /pub/kamailio/1.5.5/src was created
 before this
 patch was written, so the patch is not in there.  The tarball I created
 from the 1.5 branch
 did have it.

Hi Sean,

ok, there will be no new 1.5 releases, but you could considering using the 
stable branch, if you don't want to maintain your patches by yourself.

Cheers,

Henning

___
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] pdb module timeouts

2011-02-16 Thread Henning Westerholt
On Wednesday 16 February 2011, Thomas Baumann wrote:
  Hello Marius,
 
 thanks a lot for submitting the patch. It works like a charm now. But to be
 honest I had troubles to find this patch, I just checked the daily tarball
  http://sip-router.org/tarballs/sr/ and found this  change. How I can get
 patch e914f97b4 in a better way ?

Hi Thomas,

you can find it in a better format also on the web interface of the project:

http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=shortlog;h=refs/heads/3.1

(this is 3.1 branch)

Cheers,

Henning

___
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] ACC og ACC_RADIUS module

2011-02-16 Thread Morten Isaksen
Hi,

We have a OpenSER 1.1 platform running with radius accounting and I am
in the progress of updating it to Kamailio 3.1.

I am trying to decide if I should do accounting via Radius or directly
to MySQL on the new platform.

The only benefits a can see with Radius is that you can build some
redundancy into your radius client. If one Radius server is failing
then try the next and you can configure radius to log to a file if the
DB is down. But i think you can get the same level of redundancy with
a replicated DB setup with heartbeat/pacemaker.

If I choose to do the accounting direct to MySQL I will skip the
Radius layer (and one error source).

Are there any other pros and cons?

-- 
Morten Isaksen

___
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