[OpenSIPS-Users] ACC_RADIUS makes opensips crash

2010-07-14 Thread Denis Putyato
Hello everybody!

 

There is a problem with radius_send_auth(); function.

This function is called from request route and after opensips received 
“Access-Accept” from radius server it is crashes with such error:

 

Jul 14 14:59:02 kam /usr/local/opensips/sbin/opensips[21556]: 
DBG:aaa_radius:send_auth_func: radius authentication message sent 

Jul 14 14:59:02 kam kernel: [118250.317522] opensips[21556]: segfault at 24 ip 
b7a53df1 sp bf8f5590 error 4 in aaa_radius.so[b7a51000+7000]

Jul 14 14:59:02 kam /usr/local/opensips/sbin/opensips[21561]: 
CRITICAL:core:receive_fd: EOF on 7

 

 

Opensips.cfg:

…

…

modparam(aaa_radius, radius_config, 
/etc/radiusclient-ng/radiusclient.conf)

modparam(aaa_radius, sets, set1 = (User-Name = $avp(i:20), 
User-Password=$avp(i:50)))

modparam(aaa_radius, sets, set2 = (Session-Timeout = $var(time)))

…

…

route [7] {

…

radius_send_auth(set1,set2);

…

…

}

 

 

$avp(i:20) – tel. number

$avp(i:50) – empty value. Has been inserted because radius server didn’t accept 
request from opensips without User-Password field

Session-Timeout is ONLY one attribute that opensips receives from radius server.

#cat /etc/radiusclient-ng/dictionary | grep Session-Timeout

ATTRIBUTE Session-Timeout27   
integer

 

Thank you for any help.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS Server configuration ( SIP Server ) based on VOIP

2010-07-14 Thread gigastar

Thanks a lot for the information.

Let me dig more for better understanding basing above information.

One more doubt, that might be silly, But just for confirmation.

 Doubt as follows :
 
  Hope with Open-sips configuration using DID we can get IP Termination.
 
  Or IP termination also needs additional service  similar to PSTN
Termination.
  
   
  
 
  


-- 
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Server-configuration-SIP-Server-based-on-VOIP-tp5264482p5292143.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] dispatcher setid problem

2010-07-14 Thread Bogdan-Andrei Iancu
rajib deka wrote:
 Thanks a lot Bogdan for your valuable reply. We are deciding to use 
 the dialplan module based on our requirement. Besides this I have one 
 more questions for you,
  
 In dispatcher.c file I found the following data structure,
 typedef struct _ds_set
 {
 int id;/* id of dst set */
 int nr; /* number of items in dst set */
 int last;   /* last used item in dst set */
 int weight_sum; /* sum of the weights from dst set */
 ds_dest_p dlist;
 struct _ds_set *next;
 } ds_set_t, *ds_set_p;
 Is id here is representing the destination set from dispatcher table ?
yes, it is, but do not count on changing it - this values propagate to 
other variables and you need to change all of them through all the code.

 Also what is int setn in the code (in function add_dest2list)?
the index of the set.

Regards,
Bogdan

  
 Thanks
 Rajib
 On Tue, Jul 13, 2010 at 8:48 PM, Bogdan-Andrei Iancu 
 bog...@voice-system.ro mailto:bog...@voice-system.ro wrote:

 Hi Rajib,

 Changing the DB definiton will not help as internally, the dispatcher
 module will use an int (4 bytes data) for keeping this ID. So, it will
 not work.

 Instead of using the bigints for IDs, I would rather suggest to
 use the
 dialplan to try to do some translation from the numbers to some
 normal IDs.

 Regards,
 Bogdan

 rajib deka wrote:
  Hello List,
 
  Is it possible to use a BIGINT value instead of INT(11) in OpenSIPS
  dispatcher module?
 
  We tried to store a BIGINT value by changing the dispatcher table
  structure but the dispatcher code is restricting us to do that. We
  have some requirements which needs the setid to be a BIGINT as
 we are
  dispatching the calls based on telephone number against a set of
  gateways. So, is there any way other than changing the code. If we
  want to change the code how do we have to start.
 
  --
  Rajib Deka
  Software Engineer
  Servion Global Solution
  Chennai, India
 
  Mobile No: + 91 80157 09130
 
 
 
  ___
  Users mailing list
  Users@lists.opensips.org mailto:Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 


 --
 Bogdan-Andrei Iancu
 OpenSIPS Bootcamp
 20 - 24 September 2010, Frankfurt, Germany
 www.voice-system.ro http://www.voice-system.ro/


 ___
 Users mailing list
 Users@lists.opensips.org mailto:Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users




 -- 
 Rajib Deka
 Software Engineer
 Servion Global Solution
 Chennai, India

 Mobile No: + 91 80157 09130
 

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users
   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] arrays in memcache key implementation

2010-07-14 Thread Jayesh Nambiar
Hello All,
I tried out the memcache module and it works great while allowing the script
writer to reduce the DB Queries and making the processing more efficient.
I was looking at something which holds more than one value in the cache key.
Is it possible to make the key hold more than one value? Like a single key
holding three values and the key type being an array so that I can refer to
the desired value among the three.

While I was looking for this feature, I came across a similar implementation
in kamailio using htable module. Is something similar available in
opensips??
Any help will be really appreciated.

Thanks in advance.

--- Jayesh
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] arrays in memcache key implementation

2010-07-14 Thread Brad Bendy
Hi,

We wanted the same sort of thing, we ended up having a single key and a
value with a delimiter, not the prettiest but it ended up working pretty
without to much extreme work.

On Wed, 2010-07-14 at 19:56 +0530, Jayesh Nambiar wrote:

 Hello All,
 
 I tried out the memcache module and it works great while allowing the
 script writer to reduce the DB Queries and making the processing more
 efficient.
 I was looking at something which holds more than one value in the
 cache key. Is it possible to make the key hold more than one value?
 Like a single key holding three values and the key type being an array
 so that I can refer to the desired value among the three.
 
 
 While I was looking for this feature, I came across a similar
 implementation in kamailio using htable module. Is something similar
 available in opensips??
 Any help will be really appreciated.
 
 
 Thanks in advance.
 
 
 --- Jayesh
 
 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] arrays in memcache key implementation

2010-07-14 Thread Brett Nemeroff
I've done something like this by populating the memcache value with a
parseabke input (csv). Then I use the select transformation to step
thru the values. It is a little clunky but works well and still seems
really fast.



On Jul 14, 2010, at 9:26 AM, Jayesh Nambiar jayesh.v...@gmail.com
wrote:

 Hello All,
 I tried out the memcache module and it works great while allowing
 the script writer to reduce the DB Queries and making the processing
 more efficient.
 I was looking at something which holds more than one value in the
 cache key. Is it possible to make the key hold more than one value?
 Like a single key holding three values and the key type being an
 array so that I can refer to the desired value among the three.

 While I was looking for this feature, I came across a similar
 implementation in kamailio using htable module. Is something similar
 available in opensips??
 Any help will be really appreciated.

 Thanks in advance.

 --- Jayesh
 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] arrays in memcache key implementation

2010-07-14 Thread Bogdan-Andrei Iancu
or store the array as single json value - see the json transformation:
http://www.opensips.org/html/docs/modules/1.6.x/json.html

Regards,
Bogdan

Brett Nemeroff wrote:
 I've done something like this by populating the memcache value with a
 parseabke input (csv). Then I use the select transformation to step
 thru the values. It is a little clunky but works well and still seems
 really fast.



 On Jul 14, 2010, at 9:26 AM, Jayesh Nambiar jayesh.v...@gmail.com
 wrote:

   
 Hello All,
 I tried out the memcache module and it works great while allowing
 the script writer to reduce the DB Queries and making the processing
 more efficient.
 I was looking at something which holds more than one value in the
 cache key. Is it possible to make the key hold more than one value?
 Like a single key holding three values and the key type being an
 array so that I can refer to the desired value among the three.

 While I was looking for this feature, I came across a similar
 implementation in kamailio using htable module. Is something similar
 available in opensips??
 Any help will be really appreciated.

 Thanks in advance.

 --- Jayesh
 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] $avp in codec_exists

2010-07-14 Thread Jozsef CZOMPO
Hi

I need to specify in database table the codec order per sip clients.  
So i'm created a table with some fields. But if use  
codec_exists('PCMU') it return true, when i'm using  
codec_exists($avp(s:codec)) i'm getting syntax error, and if i'm using  
codec_exists('$avp(s:codec)') i'm getting false. When i'm use xlog  
( L_ERR, $avp(s:codec)); the result is PCMU, so the avp_db_query  
is working fine.

So, how can i use this?

Thank
Czo


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] $avp in codec_exists

2010-07-14 Thread Laszlo
Hi,

It doesn't accept a variable or an avp, just a clear text in
codec_exist();
The same is true for all codec_  operations.

-Laszlo

2010/7/14 Jozsef CZOMPO czompo.joz...@bitnet.hu:
 Hi

 I need to specify in database table the codec order per sip clients.
 So i'm created a table with some fields. But if use
 codec_exists('PCMU') it return true, when i'm using
 codec_exists($avp(s:codec)) i'm getting syntax error, and if i'm using
 codec_exists('$avp(s:codec)') i'm getting false. When i'm use xlog
 ( L_ERR, $avp(s:codec)); the result is PCMU, so the avp_db_query
 is working fine.

 So, how can i use this?

 Thank
        Czo


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] force_rtp_proxy /rtpproxy_offer - Opensips coredump on call without userinfo in contact address ?

2010-07-14 Thread Max Mühlbronner
Hello,

Very sorry for my late reply, i am not fully online at the moment.

Although in the meantime we did figure out the crashes were not related 
to the contact address (my first impression) but the reason was
a missing SDP in the progress from the other carrier. We fixed it 
temporarily by omitting rtpproxy for this carrier. -- No more Crashing.

I will try to find a solution for sending you the coredump as soon as 
possible.

Thanks

Max M.

Bogdan-Andrei Iancu schrieb:
 Hi Max,

 it will have me a lot if I could get access to the corefile for 
 inspection.do you think is possible ? we are planning a new release 
 on 1.6 branch for next week and I really want to have this fixed.

 Regards,
 Bogdan

 Max Mühlbronner wrote:
   
 Hello Bogdan,

 too bad, but the problem continues after update.

 opensips-dev:/tmp/opensips# gdb /sbin/opensips core.opensips.sig11.9272
 GNU gdb 6.8-debian
 Copyright (C) 2008 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later 
 http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show copying
 and show warranty for details.
 This GDB was configured as i486-linux-gnu...
 Cannot access memory at address 0xb7f93658
 (gdb) bt
 #0  0x080ec894 in get_all_bodies (msg=Cannot access memory at address 
 0xbfd928a0
 ) at parser/parse_multipart.c:197
 Cannot access memory at address 0xbfd9289c



 svnrevision: 2:6982M


 Best Regards

 Max M.


 Bogdan-Andrei Iancu schrieb:
   
 
 Hi Max,

 yes, that's the last revision on 1.6 branch - just let me know if the 
 bug is sill there with this version.

 Thanks and regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
   
 Hi,

 Thanks for the hint. But I really dont understand how this happened 
 because i thought i did initially check out the 1.6 branch via svn!? 
 (and not 1.5) But maybe i mixed up something..

 /usr/src/OPENSIPS-SVN/opensips_1_6

 i have updated the same 1.6 on another test-system and it seems to be 
 revision 6982. Would this be sufficient for testing again?

 Br

 Max M.

 Bogdan-Andrei Iancu schrieb:
   
 
   
 
 Hi Max,

 6732 is a revision on 1.5 branch from March 2010 - try to first update 
 from SVN branch 1.6 - let me know if the problem is still there or not.

 Regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
   
 
   
 Sorry for the late reply, i had very limited access to my mail last week.

 version: opensips 1.6.2-notls (i386/linux)
 flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, 
 SHM_MMA  

 P, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
 ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
 MAX_URI_SI   
   
 ZE 1024, BUF_SIZE 65535
 poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
 svnrevision: 2:6732M
 @(#) $Id: main.c 6169 2009-09-22 12:48:37Z bogdan_iancu $
 main.c compiled on 10:35:28 Mar 23 2010 with gcc 4.3.2


 Best regards

 Max M.

 Bogdan-Andrei Iancu schrieb:
   
 
   
 
   
 
 Hi Max,

 Any chance to get my hands on that core file (on your server) or should 
 we try some remote debugging ?

 Also, what is the revision number (see with opensips -V )

 Regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
   
 
   
 
   
 Hello,

 yes, it is reproducible for me. 1.6.2


 Best Regards

 Max M.

 -Ursprüngliche Nachricht-
 Von: users-boun...@lists.opensips.org
 [mailto:users-boun...@lists.opensips.org] Im Auftrag von Bogdan-Andrei 
 Iancu
 Gesendet: Dienstag, 15. Juni 2010 18:31
 An: OpenSIPS users mailling list
 Betreff: Re: [OpenSIPS-Users] force_rtp_proxy /rtpproxy_offer - 
 Opensips
 coredump on call without userinfo in contact address ?

 Hi Max,

 What version of opensips are you using ? I was trying to search for 
 the 
 file and line mentioned by your gdb printout, but I cannot correlate.

 Also, is this bug reproducible by you?  As I'm not 100% sure it is 
 Contact related as the backtrace shows the crash when trying to get 
 the 
 body(s) of the reply.

 Regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
   
 
   
 
   
 
 Hello everyone,


 I have a small problem with opensips 1.6.2 trunk version (updated via 
 svn few days ago, still same issue.)
 I can see the call setup from Opensips to the carrier (using 
 rtpproxy) 
 which is fine, up to some point: Invite, Progress, Ringing -- OK 

 All other calls are fine, I did not notice any difference with this 
 carrier, but now i realized the contact address of the OK for these 
 calls contains no userinfo/ @character.

 Server: Sippy.
 Contact: Anonymous sip:195.24.34.24:5061.

 On a call setup i can 

Re: [OpenSIPS-Users] $avp in codec_exists

2010-07-14 Thread Bogdan-Andrei Iancu
Hi Jozsef,

open a feature request on the project tracker for this small add-on - it 
sounds useful and it is not difficult to add.

Regards,
bogdan

Jozsef CZOMPO wrote:
 Hi

 I need to specify in database table the codec order per sip clients.  
 So i'm created a table with some fields. But if use  
 codec_exists('PCMU') it return true, when i'm using  
 codec_exists($avp(s:codec)) i'm getting syntax error, and if i'm using  
 codec_exists('$avp(s:codec)') i'm getting false. When i'm use xlog  
 ( L_ERR, $avp(s:codec)); the result is PCMU, so the avp_db_query  
 is working fine.

 So, how can i use this?

 Thank
   Czo


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] force_rtp_proxy /rtpproxy_offer - Opensips coredump on call without userinfo in contact address ?

2010-07-14 Thread Bogdan-Andrei Iancu
Hi Max,

What you mean by a missing SDP in the progress  ? you mean a 183 
without SDP ? so a force_rtp_proxy on something without SDP may lead in 
crash?

Regards,
Bogdan


Max Mühlbronner wrote:
 Hello,

 Very sorry for my late reply, i am not fully online at the moment.

 Although in the meantime we did figure out the crashes were not related 
 to the contact address (my first impression) but the reason was
 a missing SDP in the progress from the other carrier. We fixed it 
 temporarily by omitting rtpproxy for this carrier. -- No more Crashing.

 I will try to find a solution for sending you the coredump as soon as 
 possible.

 Thanks

 Max M.

 Bogdan-Andrei Iancu schrieb:
   
 Hi Max,

 it will have me a lot if I could get access to the corefile for 
 inspection.do you think is possible ? we are planning a new release 
 on 1.6 branch for next week and I really want to have this fixed.

 Regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
 Hello Bogdan,

 too bad, but the problem continues after update.

 opensips-dev:/tmp/opensips# gdb /sbin/opensips core.opensips.sig11.9272
 GNU gdb 6.8-debian
 Copyright (C) 2008 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later 
 http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show copying
 and show warranty for details.
 This GDB was configured as i486-linux-gnu...
 Cannot access memory at address 0xb7f93658
 (gdb) bt
 #0  0x080ec894 in get_all_bodies (msg=Cannot access memory at address 
 0xbfd928a0
 ) at parser/parse_multipart.c:197
 Cannot access memory at address 0xbfd9289c



 svnrevision: 2:6982M


 Best Regards

 Max M.


 Bogdan-Andrei Iancu schrieb:
   
 
   
 Hi Max,

 yes, that's the last revision on 1.6 branch - just let me know if the 
 bug is sill there with this version.

 Thanks and regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
   
 
 Hi,

 Thanks for the hint. But I really dont understand how this happened 
 because i thought i did initially check out the 1.6 branch via svn!? 
 (and not 1.5) But maybe i mixed up something..

 /usr/src/OPENSIPS-SVN/opensips_1_6

 i have updated the same 1.6 on another test-system and it seems to be 
 revision 6982. Would this be sufficient for testing again?

 Br

 Max M.

 Bogdan-Andrei Iancu schrieb:
   
 
   
 
   
 Hi Max,

 6732 is a revision on 1.5 branch from March 2010 - try to first update 
 from SVN branch 1.6 - let me know if the problem is still there or not.

 Regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
   
 
   
 
 Sorry for the late reply, i had very limited access to my mail last 
 week.

 version: opensips 1.6.2-notls (i386/linux)
 flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, 
 SHM_MEM, 
 SHM_MMA 
 
 P, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
 ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
 MAX_URI_SI  

 ZE 1024, BUF_SIZE 65535
 poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
 svnrevision: 2:6732M
 @(#) $Id: main.c 6169 2009-09-22 12:48:37Z bogdan_iancu $
 main.c compiled on 10:35:28 Mar 23 2010 with gcc 4.3.2


 Best regards

 Max M.

 Bogdan-Andrei Iancu schrieb:
   
 
   
 
   
 
   
 Hi Max,

 Any chance to get my hands on that core file (on your server) or 
 should 
 we try some remote debugging ?

 Also, what is the revision number (see with opensips -V )

 Regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
   
 
   
 
   
 
 Hello,

 yes, it is reproducible for me. 1.6.2


 Best Regards

 Max M.

 -Ursprüngliche Nachricht-
 Von: users-boun...@lists.opensips.org
 [mailto:users-boun...@lists.opensips.org] Im Auftrag von 
 Bogdan-Andrei Iancu
 Gesendet: Dienstag, 15. Juni 2010 18:31
 An: OpenSIPS users mailling list
 Betreff: Re: [OpenSIPS-Users] force_rtp_proxy /rtpproxy_offer - 
 Opensips
 coredump on call without userinfo in contact address ?

 Hi Max,

 What version of opensips are you using ? I was trying to search for 
 the 
 file and line mentioned by your gdb printout, but I cannot correlate.

 Also, is this bug reproducible by you?  As I'm not 100% sure it is 
 Contact related as the backtrace shows the crash when trying to get 
 the 
 body(s) of the reply.

 Regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
   
 
   
 
   
 
   
 Hello everyone,


 I have a small problem with opensips 1.6.2 trunk version (updated 
 via 
 svn few days ago, still same issue.)
 I can see the call setup from Opensips to the carrier (using 
 rtpproxy) 
 which is fine, 

Re: [OpenSIPS-Users] ACC_RADIUS makes opensips crash

2010-07-14 Thread Bogdan-Andrei Iancu
Hi Denis,

do you get a coredump file? if so, could you get a bracktrace from it 
and post it here?

Regards,
Bogdan

Denis Putyato wrote:

 Hello everybody!

 There is a problem with radius_send_auth(); function.

 This function is called from request route and after opensips received 
 “Access-Accept” from radius server it is crashes with such error:

 Jul 14 14:59:02 kam /usr/local/opensips/sbin/opensips[21556]: 
 DBG:aaa_radius:send_auth_func: radius authentication message sent

 Jul 14 14:59:02 kam kernel: [118250.317522] opensips[21556]: segfault 
 at 24 ip b7a53df1 sp bf8f5590 error 4 in aaa_radius.so[b7a51000+7000]

 Jul 14 14:59:02 kam /usr/local/opensips/sbin/opensips[21561]: 
 CRITICAL:core:receive_fd: EOF on 7

 Opensips.cfg:

 …

 …

 modparam(aaa_radius, radius_config, 
 /etc/radiusclient-ng/radiusclient.conf)

 modparam(aaa_radius, sets, set1 = (User-Name = $avp(i:20), 
 User-Password=$avp(i:50)))

 modparam(aaa_radius, sets, set2 = (Session-Timeout = $var(time)))

 …

 …

 route [7] {

 …

 radius_send_auth(set1,set2);

 …

 …

 }

 $avp(i:20) – tel. number

 $avp(i:50) – empty value. Has been inserted because radius server 
 didn’t accept request from opensips without User-Password field

 Session-Timeout is ONLY one attribute that opensips receives from 
 radius server.

 #cat /etc/radiusclient-ng/dictionary | grep Session-Timeout

 ATTRIBUTE Session-Timeout 27 integer

 Thank you for any help.

 

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users
   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] $avp in codec_exists

2010-07-14 Thread Jozsef CZOMPO
Hi bogdan

Thanks for the reply. I'm opened a feature request ticket: #3029568

Czo

On 2010.07.14., at 17:33, Bogdan-Andrei Iancu wrote:

 Hi Jozsef,

 open a feature request on the project tracker for this small add-on  
 - it
 sounds useful and it is not difficult to add.

 Regards,
 bogdan

 Jozsef CZOMPO wrote:
 Hi

 I need to specify in database table the codec order per sip clients.
 So i'm created a table with some fields. But if use
 codec_exists('PCMU') it return true, when i'm using
 codec_exists($avp(s:codec)) i'm getting syntax error, and if i'm  
 using
 codec_exists('$avp(s:codec)') i'm getting false. When i'm use xlog
 ( L_ERR, $avp(s:codec)); the result is PCMU, so the avp_db_query
 is working fine.

 So, how can i use this?

 Thank
  Czo


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users




 -- 
 Bogdan-Andrei Iancu
 OpenSIPS Bootcamp
 20 - 24 September 2010, Frankfurt, Germany
 www.voice-system.ro


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] force_rtp_proxy /rtpproxy_offer - Opensips coredump on call without userinfo in contact address ?

2010-07-14 Thread Max Mühlbronner
Yes, exactly. The other carrier/switch was sending a 183 without SDP 
body. And at least it seemed like our Server threw a coredump whenever 
it was received, after omitting rtpproxy for this carrier (no 
rtpproxy_offer / nathelper) it works fine -- no crash.

I will try to send you some Siptrace if i still got access to it.


Thanks

Max M.

Bogdan-Andrei Iancu schrieb:
 Hi Max,

 What you mean by a missing SDP in the progress  ? you mean a 183 
 without SDP ? so a force_rtp_proxy on something without SDP may lead in 
 crash?

 Regards,
 Bogdan


 Max Mühlbronner wrote:
   
 Hello,

 Very sorry for my late reply, i am not fully online at the moment.

 Although in the meantime we did figure out the crashes were not related 
 to the contact address (my first impression) but the reason was
 a missing SDP in the progress from the other carrier. We fixed it 
 temporarily by omitting rtpproxy for this carrier. -- No more Crashing.

 I will try to find a solution for sending you the coredump as soon as 
 possible.

 Thanks

 Max M.

 Bogdan-Andrei Iancu schrieb:
   
 
 Hi Max,

 it will have me a lot if I could get access to the corefile for 
 inspection.do you think is possible ? we are planning a new release 
 on 1.6 branch for next week and I really want to have this fixed.

 Regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
   
 Hello Bogdan,

 too bad, but the problem continues after update.

 opensips-dev:/tmp/opensips# gdb /sbin/opensips core.opensips.sig11.9272
 GNU gdb 6.8-debian
 Copyright (C) 2008 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later 
 http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show copying
 and show warranty for details.
 This GDB was configured as i486-linux-gnu...
 Cannot access memory at address 0xb7f93658
 (gdb) bt
 #0  0x080ec894 in get_all_bodies (msg=Cannot access memory at address 
 0xbfd928a0
 ) at parser/parse_multipart.c:197
 Cannot access memory at address 0xbfd9289c



 svnrevision: 2:6982M


 Best Regards

 Max M.


 Bogdan-Andrei Iancu schrieb:
   
 
   
 
 Hi Max,

 yes, that's the last revision on 1.6 branch - just let me know if the 
 bug is sill there with this version.

 Thanks and regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
   
 
   
 Hi,

 Thanks for the hint. But I really dont understand how this happened 
 because i thought i did initially check out the 1.6 branch via svn!? 
 (and not 1.5) But maybe i mixed up something..

 /usr/src/OPENSIPS-SVN/opensips_1_6

 i have updated the same 1.6 on another test-system and it seems to be 
 revision 6982. Would this be sufficient for testing again?

 Br

 Max M.

 Bogdan-Andrei Iancu schrieb:
   
 
   
 
   
 
 Hi Max,

 6732 is a revision on 1.5 branch from March 2010 - try to first update 
 from SVN branch 1.6 - let me know if the problem is still there or not.

 Regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
   
 
   
 
   
 Sorry for the late reply, i had very limited access to my mail last 
 week.

 version: opensips 1.6.2-notls (i386/linux)
 flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, 
 SHM_MEM, 
 SHM_MMA
  
 P, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
 ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
 MAX_URI_SI 
 
 ZE 1024, BUF_SIZE 65535
 poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
 svnrevision: 2:6732M
 @(#) $Id: main.c 6169 2009-09-22 12:48:37Z bogdan_iancu $
 main.c compiled on 10:35:28 Mar 23 2010 with gcc 4.3.2


 Best regards

 Max M.

 Bogdan-Andrei Iancu schrieb:
   
 
   
 
   
 
   
 
 Hi Max,

 Any chance to get my hands on that core file (on your server) or 
 should 
 we try some remote debugging ?

 Also, what is the revision number (see with opensips -V )

 Regards,
 Bogdan

 Max Mühlbronner wrote:
   
 
   
 
   
 
   
 
   
 Hello,

 yes, it is reproducible for me. 1.6.2


 Best Regards

 Max M.

 -Ursprüngliche Nachricht-
 Von: users-boun...@lists.opensips.org
 [mailto:users-boun...@lists.opensips.org] Im Auftrag von 
 Bogdan-Andrei Iancu
 Gesendet: Dienstag, 15. Juni 2010 18:31
 An: OpenSIPS users mailling list
 Betreff: Re: [OpenSIPS-Users] force_rtp_proxy /rtpproxy_offer - 
 Opensips
 coredump on call without userinfo in contact address ?

 Hi Max,

 What version of opensips are you using ? I was trying to search for 
 the 
 file and line mentioned by your gdb printout, but I cannot correlate.

 Also, is this bug reproducible by you?  As I'm not 

Re: [OpenSIPS-Users] using avops for authentication

2010-07-14 Thread Bogdan-Andrei Iancu
Hi Gabriel,

I guess the problem is at:
$var(username)=$au;

as without doing auth, $au is not defined (parsed) yet.
better try:
$var(username)=$fU;

Regards,
Bogdan

Gabriel Bermudez wrote:
 Hi,

 I need to authenticate and register users that are stored on the 
 opensips db AND a different database.  For that I have the following code

 if (is_method(REGISTER)  $fu=~^sip:[0-9]{10}@)
 {
 # authenticate the REGISTER based on a different DB
 xlog(getting valid credentials for calling card $fu);
 avp_db_query(select userpass from anothertable where 
 username='$au', $avp(s:password), 1);
 $var(username)=$au; *# line 392*
 xlog(credentials for user $var(username) : $avp(s:password));
 if(!pv_www_authorize())
 {
 www_challenge(, 0);
 xlog(registration from $fu has been challenged);
 exit;
 }
 xlog($fu authorized!!!);
 if (!db_check_to())
 {
 sl_send_reply(403,Forbidden auth ID);
 exit;
 }

 if (!save(location))
 sl_reply_error();

 xlog(location saved for $fu);
 exit;
 }
 if (is_method(REGISTER)  $fu=~^sip:[0-9]{9}@)
 {
 # authenticate the REGISTER requests (uncomment to enable auth)
 if (!www_authorize(, subscriber))
 {
 www_challenge(, 0);
 xlog(registration from $fu has been challenged);
 exit;
 }

 if (!db_check_to())
 {
 sl_send_reply(403,Forbidden auth ID);
 exit;
 }

 if (!save(location))
 sl_reply_error();

 xlog(location saved for $fu);
 exit;
 }

 if the username part of the From header has 10 digits the script will 
 try to authenticate against the other DB, but it won't go further than 
 the pv_www_authorize line because on the logs I get the following.

 Jul 13 21:28:00 opensips /usr/sbin/opensips[3139]: getting valid 
 credentials for user sip:999...@xx.xx.xx.xx
 Jul 13 21:28:00 opensips /usr/sbin/opensips[3139]: 
 ERROR:core:do_assign: no value in right expression
 Jul 13 21:28:00 opensips /usr/sbin/opensips[3139]: 
 ERROR:core:do_assign: error at line: 397
 Jul 13 21:28:00 opensips /usr/sbin/opensips[3139]: credentials for 
 user 0 : null
 Jul 13 21:28:01 opensips /usr/sbin/opensips[3141]: getting valid 
 credentials for user sip:999...@xx.xx.xx.xx
 Jul 13 21:28:01 opensips /usr/sbin/opensips[3141]: credentials for 
 user 99 : 99

 I don't know if I'm doing something really wrong or maybe the ERROR 
 message has something to do with this auth failure.  Please can 
 someone clarify this issue.
 Thanks,


 Kind regards,

 

 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users
   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] $avp in codec_exists

2010-07-14 Thread Bogdan-Andrei Iancu
thanks!

Jozsef CZOMPO wrote:
 Hi bogdan

 Thanks for the reply. I'm opened a feature request ticket: #3029568

   Czo

 On 2010.07.14., at 17:33, Bogdan-Andrei Iancu wrote:

   
 Hi Jozsef,

 open a feature request on the project tracker for this small add-on  
 - it
 sounds useful and it is not difficult to add.

 Regards,
 bogdan

 Jozsef CZOMPO wrote:
 
 Hi

 I need to specify in database table the codec order per sip clients.
 So i'm created a table with some fields. But if use
 codec_exists('PCMU') it return true, when i'm using
 codec_exists($avp(s:codec)) i'm getting syntax error, and if i'm  
 using
 codec_exists('$avp(s:codec)') i'm getting false. When i'm use xlog
 ( L_ERR, $avp(s:codec)); the result is PCMU, so the avp_db_query
 is working fine.

 So, how can i use this?

 Thank
 Czo


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users


   
 -- 
 Bogdan-Andrei Iancu
 OpenSIPS Bootcamp
 20 - 24 September 2010, Frankfurt, Germany
 www.voice-system.ro


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Delay in relaying SIP message to UA

2010-07-14 Thread Julian Yap
This is strange.  I only get the issues if I use rtpproxy_offer().  If
I use force_rtp_proxy() then there are no delays.

- Julian

On Tue, Jul 13, 2010 at 4:43 PM, Julian Yap julianok...@gmail.com wrote:
 I'm having a problem where is looks like there is a delay in OpenSIPS
 relaying a SIP packet back to the originating UA.

 Here is a stripped Ngrep trace which shows the time stamps.

 In the example:
 9.9.9.101 = IP of the Calling UA
 8.8.8.41 = IP of the Proxy
 9.9.9.15 = IP of the Called UA

 The 180 Ringing is received by the Proxy at 16:00:58.628464 but is
 only relayed on at 16:00:58.918988.

 Trace:

 U 2010/07/13 16:00:58.560395 9.9.9.101:10673 - 8.8.8.41:5060
 INVITE sip:5551...@my.proxy.com;user=phone SIP/2.0.
 --
 U 2010/07/13 16:00:58.560599 8.8.8.41:5060 - 9.9.9.101:10673
 SIP/2.0 100 Trying.
 --
 U 2010/07/13 16:00:58.560658 8.8.8.41:5060 - 9.9.9.101:10673
 SIP/2.0 407 Proxy Authentication Required.
 --
 U 2010/07/13 16:00:58.588648 9.9.9.101:10673 - 8.8.8.41:5060
 ACK sip:5551...@my.proxy.com SIP/2.0.
 --
 U 2010/07/13 16:00:58.592480 9.9.9.101:10673 - 8.8.8.41:5060
 INVITE sip:5551...@my.proxy.com;user=phone SIP/2.0.
 --
 U 2010/07/13 16:00:58.592592 8.8.8.41:5060 - 9.9.9.101:10673
 SIP/2.0 100 Trying.
 --
 U 2010/07/13 16:00:58.594010 8.8.8.41:5060 - 9.9.9.15:5060
 INVITE sip:+18085551...@9.9.9.15 SIP/2.0.
 --
 U 2010/07/13 16:00:58.598573 9.9.9.15:5060 - 8.8.8.41:5060
 SIP/2.0 100 Trying.
 --
 U 2010/07/13 16:00:58.628464 9.9.9.15:5060 - 8.8.8.41:5060
 SIP/2.0 180 Ringing.
 --
 U 2010/07/13 16:00:58.628780 9.9.9.15:5060 - 8.8.8.41:5060
 SIP/2.0 200 OK.
 --
 U 2010/07/13 16:00:58.918988 8.8.8.41:5060 - 9.9.9.101:10673
 SIP/2.0 180 Ringing.


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] using avops for authentication

2010-07-14 Thread Gabriel Bermudez
Hi Bodgan,

Thanks for your answer, is there a way to know if $au is set or check
for the WWW-Authenticate header? If it isn't I can www_challenge the
user for credentials.  After some trial and error I managed to
authenticate my users, I setted calculate_ha1 param to 1

modparam(auth, calculate_ha1, 1)

Again, thanks for your help.

Regards,

2010/7/14 Bogdan-Andrei Iancu bog...@voice-system.ro

 Hi Gabriel,

 I guess the problem is at:
    $var(username)=$au;

 as without doing auth, $au is not defined (parsed) yet.
 better try:
    $var(username)=$fU;

 Regards,
 Bogdan

 Gabriel Bermudez wrote:
  Hi,
 
  I need to authenticate and register users that are stored on the
  opensips db AND a different database.  For that I have the following code
 
      if (is_method(REGISTER)  $fu=~^sip:[0-9]{10}@)
      {
          # authenticate the REGISTER based on a different DB
          xlog(getting valid credentials for calling card $fu);
          avp_db_query(select userpass from anothertable where
  username='$au', $avp(s:password), 1);
          $var(username)=$au; *# line 392*
          xlog(credentials for user $var(username) : $avp(s:password));
          if(!pv_www_authorize())
          {
                          www_challenge(, 0);
                          xlog(registration from $fu has been challenged);
                          exit;
          }
          xlog($fu authorized!!!);
          if (!db_check_to())
          {
                  sl_send_reply(403,Forbidden auth ID);
                  exit;
          }
 
          if (!save(location))
                  sl_reply_error();
 
          xlog(location saved for $fu);
          exit;
      }
      if (is_method(REGISTER)  $fu=~^sip:[0-9]{9}@)
      {
          # authenticate the REGISTER requests (uncomment to enable auth)
          if (!www_authorize(, subscriber))
          {
              www_challenge(, 0);
              xlog(registration from $fu has been challenged);
              exit;
          }
 
          if (!db_check_to())
          {
              sl_send_reply(403,Forbidden auth ID);
              exit;
          }
 
          if (!save(location))
              sl_reply_error();
 
          xlog(location saved for $fu);
          exit;
      }
 
  if the username part of the From header has 10 digits the script will
  try to authenticate against the other DB, but it won't go further than
  the pv_www_authorize line because on the logs I get the following.
 
  Jul 13 21:28:00 opensips /usr/sbin/opensips[3139]: getting valid
  credentials for user sip:999...@xx.xx.xx.xx
  Jul 13 21:28:00 opensips /usr/sbin/opensips[3139]:
  ERROR:core:do_assign: no value in right expression
  Jul 13 21:28:00 opensips /usr/sbin/opensips[3139]:
  ERROR:core:do_assign: error at line: 397
  Jul 13 21:28:00 opensips /usr/sbin/opensips[3139]: credentials for
  user 0 : null
  Jul 13 21:28:01 opensips /usr/sbin/opensips[3141]: getting valid
  credentials for user sip:999...@xx.xx.xx.xx
  Jul 13 21:28:01 opensips /usr/sbin/opensips[3141]: credentials for
  user 99 : 99
 
  I don't know if I'm doing something really wrong or maybe the ERROR
  message has something to do with this auth failure.  Please can
  someone clarify this issue.
  Thanks,
 
 
  Kind regards,
 
  
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 


 --
 Bogdan-Andrei Iancu
 OpenSIPS Bootcamp
 20 - 24 September 2010, Frankfurt, Germany
 www.voice-system.ro


 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] T38 and changing media port for T38 SDP

2010-07-14 Thread Julian Yap
Yeah, I am having way too many issues with RTPProxy and the re-invite
port changing.  It's an absolute nightmare.  Everything works fine
when the UA doesn't change media port but when it does, it's really
inconsistent.  Sometimes it works, sometimes it doesn't work.

I think I'm going to try out MediaProxy.

MediaProxy is able to detect the changing media port?

- Julian

On Tue, Jul 6, 2010 at 9:19 PM, Adrian Georgescu a...@ag-projects.com wrote:

 On Jul 7, 2010, at 12:27 AM, Julian Yap wrote:

 Hi All,

 I managed to get it working by adding a whole lot of debugging and a
 whole lot of rtpproxy_offer() and rtpproxy_answer().

 Now I need to clean up my config because it's a total mess.


 You may want to try use mediaproxy if you do not like the mess. You
 need a single line of code in your opensips configuration to achieve
 this.

 Adrian


 - Julian

 On Tue, Jul 6, 2010 at 10:07 AM, Bogdan-Andrei Iancu
 bog...@voice-system.ro wrote:
 Hi Julian,

 Do you trigger again the rtpproxy at re-INVITE time ? basically you
 need
 to do the insertion of rtpproxy again, as for the initial INVITE.

 Regards,
 Bogdan

 Julian Yap wrote:
 Any help greatly appreciated!

 I'm having problems with a T38 UA which changes port when
 negotiating
 T38 media.  All the other UA's I've encountered thus far use the
 same
 RTP port throughout.

 I'm also using RTPProxy.

 In the final 200 OK SDP, the UA changes media port from 49200 to
 49152
 but this changeover isn't detected and the media is sent back to
 port
 49200 so the call then fails to negotiate T38 properly.  Not sure
 how
 to log the port changes to further debug this issue as well.

 Here is the flow:
 | UA                | OpenSIPS          | T38 GW            |
 |         INVITE SDP ( g711U)           |                   |
 |(5060)   --  (5060)   |                   |
 |         100 Trying|                   |                   |
 |(5060)   --  (5060)   |                   |
 |                   |         INVITE SDP ( g711U)           |
 |                   |(5060)   --  (5060)   |
 |                   |         100 Trying|                   |
 |                   |(5060)   --  (5060)   |
 |                   |         180 Ringing SDP ( g711U)      |
 |                   |(5060)   --  (5060)   |
 |                   |         200 OK SDP ( g711U)           |
 |                   |(5060)   --  (5060)   |
 |                   |         RTP (g711U)                   |
 |                   |(11392)  --  (14110)  |
 |         RTP (g711U)                   |                   |
 |(49200)  --  (10878)  |                   |
 |         180 Ringing SDP ( g711U)      |                   |
 |(5060)   --  (5060)   |                   |
 |         RTP (g711U)                   |                   |
 |(49200)  --  (10878)  |                   |
 |                   |         RTP (g711U)                   |
 |                   |(11392)  --  (14110)  |
 |         200 OK SDP ( g711U)           |                   |
 |(5060)   --  (5060)   |                   |
 |         ACK       |                   |                   |
 |(5060)   --  (5060)   |                   |
 |         RTP (g711U)                   |                   |
 |(49200)  --  (10878)  |                   |
 |         RTP (g711U)                   |                   |
 |(49200)  --  (10878)  |                   |
 |                   |         200 OK SDP ( g711U)           |
 |                   |(5060)   --  (5060)   |
 |                   |         RTP (g711U)                   |
 |                   |(11392)  --  (14110)  |
 |                   |         ACK       |                   |
 |                   |(5060)   --  (5060)   |
 |         200 OK SDP ( g711U)           |                   |
 |(5060)   --  (5060)   |                   |
 |         ACK       |                   |                   |
 |(5060)   --  (5060)   |                   |
 |         RTP (g711U)                   |                   |
 |(49200)  --  (10878)  |                   |
 |         RTP (g711U)                   |                   |
 |(49200)  --  (10878)  |                   |
 |                   |         ACK       |                   |
 |                   |(5060)   --  (5060)   |
 |                   |         INVITE SDP ( t38)             |
 |                   |(5060)   --  (5060)   |
 |         INVITE SDP ( t38)             |                   |
 |(5060)   --  (5060)   |                   |
 |         200 OK SDP ( t38)             |                   |
 |(5060)   --  (5060)   |                   |

 This is 

[OpenSIPS-Users] no via found in reply

2010-07-14 Thread agung nugroho
Hi all,
I have another problem with opensips.
   INVITE --
 100   --
 183   --

When I reach 183, I got error in opensips: ERROR:core:receive_msg: no via
found in reply
is anyone have get this error??? but what kind of problem is that???


Regard

Agung
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] ACC_RADIUS makes opensips crash

2010-07-14 Thread Denis Putyato
Hello, Bogdan

Is this information you asked?

gdb /usr/local/opensips/sbin/opensips /core 
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i486-linux-gnu...

warning: Can't read pathname for load map: Input/output error.
...
...
Core was generated by `/usr/local/opensips/sbin/opensips -P 
/var/run/opensips.pid'.
Program terminated with signal 11, Segmentation fault.
[New process 24328]
#0  0xb79b7df1 in send_auth_func (msg=0x81c0fd4, s1=0x81bcbcc, s2=0x81bcbe0) at 
aaa_radius.c:369
369 for(; (vp = rc_avpair_get(vp, attr-value, 0)); vp = vp-next)
(gdb) bt
#0  0xb79b7df1 in send_auth_func (msg=0x81c0fd4, s1=0x81bcbcc, s2=0x81bcbe0) at 
aaa_radius.c:369
#1  0x08056111 in do_action (a=0x81b729c, msg=0x81c0fd4) at action.c:967
#2  0x08054f9e in run_action_list (a=0x81b5e14, msg=0x81c0fd4) at action.c:139
#3  0x08057f97 in do_action (a=0x81b7518, msg=0x81c0fd4) at action.c:706
#4  0x08054f9e in run_action_list (a=0x81b5938, msg=0x81c0fd4) at action.c:139
#5  0x08057946 in do_action (a=0x81aa660, msg=0x81c0fd4) at action.c:119
#6  0x08054f9e in run_action_list (a=0x81aa660, msg=0x81c0fd4) at action.c:139
#7  0x08057f97 in do_action (a=0x81aa758, msg=0x81c0fd4) at action.c:706
#8  0x08054f9e in run_action_list (a=0x81aa758, msg=0x81c0fd4) at action.c:139
#9  0x08057f97 in do_action (a=0x81aaff4, msg=0x81c0fd4) at action.c:706
#10 0x08054f9e in run_action_list (a=0x81aaff4, msg=0x81c0fd4) at action.c:139
#11 0x08057f97 in do_action (a=0x81ac2d8, msg=0x81c0fd4) at action.c:706
#12 0x08054f9e in run_action_list (a=0x81a9f24, msg=0x81c0fd4) at action.c:139
#13 0x08057946 in do_action (a=0x81b428c, msg=0x81c0fd4) at action.c:119
#14 0x08054f9e in run_action_list (a=0x81b1ab0, msg=0x81c0fd4) at action.c:139
#15 0x08057946 in do_action (a=0x81b1308, msg=0x81c0fd4) at action.c:119
#16 0x08054f9e in run_action_list (a=0x81b1308, msg=0x81c0fd4) at action.c:139
#17 0x08057f97 in do_action (a=0x81b14cc, msg=0x81c0fd4) at action.c:706
#18 0x08054f9e in run_action_list (a=0x81b0a70, msg=0x81c0fd4) at action.c:139
#19 0x08057946 in do_action (a=0x81b078c, msg=0x81c0fd4) at action.c:119
#20 0x08054f9e in run_action_list (a=0x81ad9e0, msg=0x81c0fd4) at action.c:139
#21 0x08057946 in do_action (a=0x81ad50c, msg=0x81c0fd4) at action.c:119
#22 0x08054f9e in run_action_list (a=0x81aca9c, msg=0x81c0fd4) at action.c:139
#23 0x08057946 in do_action (a=0x81a9cb4, msg=0x81c0fd4) at action.c:119
#24 0x08054f9e in run_action_list (a=0x81a6c50, msg=0x81c0fd4) at action.c:139
#25 0x08057f97 in do_action (a=0x81a9d8c, msg=0x81c0fd4) at action.c:706
#26 0x08054f9e in run_action_list (a=0x81a47e0, msg=0x81c0fd4) at action.c:139
#27 0x080590bf in run_top_route (a=0x81a47e0, msg=0x81c0fd4) at action.c:119
#28 0x08098b9c in receive_msg (
buf=0x8178200 INVITE sip:3364...@1.1.1.1:5060 SIP/2.0\r\nVia: SIP/2.0/UDP 
1.1.1.1:5050;branch=z9hG4bK7d781018;rport\r\nMax-Forwards: 70\r\nFrom: 
\3364079\ sip:3364...@1.1.1.1:5050;tag=as3bb11c83\r\nTo: ..., len=826, 
rcv_info=0xbfb599f8) at receive.c:162
#29 0x080da834 in udp_rcv_loop () at udp_server.c:492
#30 0x0806ee80 in main (argc=3, argv=0xbfb59b94) at main.c:818

-Original Message-
From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
Sent: Wednesday, July 14, 2010 7:37 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] ACC_RADIUS makes opensips crash

Hi Denis,

do you get a coredump file? if so, could you get a bracktrace from it 
and post it here?

Regards,
Bogdan

Denis Putyato wrote:

 Hello everybody!

 There is a problem with radius_send_auth(); function.

 This function is called from request route and after opensips received 
 “Access-Accept” from radius server it is crashes with such error:

 Jul 14 14:59:02 kam /usr/local/opensips/sbin/opensips[21556]: 
 DBG:aaa_radius:send_auth_func: radius authentication message sent

 Jul 14 14:59:02 kam kernel: [118250.317522] opensips[21556]: segfault 
 at 24 ip b7a53df1 sp bf8f5590 error 4 in aaa_radius.so[b7a51000+7000]

 Jul 14 14:59:02 kam /usr/local/opensips/sbin/opensips[21561]: 
 CRITICAL:core:receive_fd: EOF on 7

 Opensips.cfg:

 …

 …

 modparam(aaa_radius, radius_config, 
 /etc/radiusclient-ng/radiusclient.conf)

 modparam(aaa_radius, sets, set1 = (User-Name = $avp(i:20), 
 User-Password=$avp(i:50)))

 modparam(aaa_radius, sets, set2 = (Session-Timeout = $var(time)))

 …

 …

 route [7] {

 …

 radius_send_auth(set1,set2);

 …

 …

 }

 $avp(i:20) – tel. number

 $avp(i:50) – empty value. Has been inserted because radius server 
 didn’t accept request from opensips without User-Password field

 Session-Timeout is ONLY one attribute that opensips receives