Hi to all,
i implemented the P-Asserted-Identity and P-Preferred-Identity Header management.
On the development server all is working properly but when i activate the new config on our production system i start to get crashes of the openser process:
openser[31483]: segfault at 0000000000000000 rip 0000000000487853 rsp 00007fff94c9f1a0 error 4
openser[6511]: segfault at 0000000000000025 rip 00000000004214ce rsp 00007fff80f05480 error 4
openser[8967] general protection rip:4214ce rsp:7fff05fbb530 error:0
openser[9872] general protection rip:4214ce rsp:7fffd2b630d0 error:0
I checked the core dump with gdb and i have this info from the core:
Core was generated by `/usr/sbin/openser'.
Program terminated with signal 11, Segmentation fault.
#0 xl_get_pai (msg=0x2b4ad9030d00, res=0x7fffd2b63190, param=<value optimized out>, flags=<value optimized out>) at items.c:1050
1050 res->rs.len = get_pai(msg)->uri.len;
We are using the 1.2.2 version and i know it is quite old but i like to understand if it happen for some known bug or if i made something wrong.
For the moment is not possible for us to manage the upgrade to a newer version of the proxy till we will not have it redundant on another location.
Thank you for help.
Bye,
MArcello
Hello,
when i push create button, I get the following:
Grails Runtime Exception
Error Details
Message: org.apache.commons.codec.digest.DigestUtils
Caused by: java.lang.NoClassDefFoundError:
org.apache.commons.codec.digest.DigestUtils
Class: UserController
At Line: [226]
Code Snippet:
Stack Trace
org.codehaus.groovy.runtime.InvokerInvocationException:
java.lang.NoClassDefFoundError:
org.apache.commons.codec.digest.DigestUtils
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:384)
at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:183)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError:
org.apache.commons.codec.digest.DigestUtils
at UserController$_closure11.class$(UserController.groovy)
at UserController$_closure11.doCall(UserController.groovy:226)
at UserController$_closure11.doCall(UserController.groovy)
... 28 more
Unfortunately, i am not familiar with such java stuff.
It would be great if one of you can give me a hint or something. I dont have
any idea how to solve this problem.
Thanks for any comment!
Best regards,
Fred
Hi all
I have specify the wanted db type (DBENGINE=MYSQL) in the
/usr/local/etc/kamailio/kamctlrc
then I using "/usr/local/sbin/kamdbctl create" to create MySQL database,
but I got this error:
ERROR: database engine not specified, please setup one in the config script
root@acer:/usr/local/src/kamailio-1.5.0/sip-server# vim
/usr/local/etc/kamailio/kamctlrc
root@acer:/usr/local/src/kamailio-1.5.0/sip-server# /usr/local/sbin/kamdbctl
create
MySQL password for root:
INFO: test server charset
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
/usr/local/lib/kamailio/kamctl/kamdbctl.mysql: line 112: [: =: unary
operator expected
INFO: creating database openser ...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)
ERROR: Creating core database and grant privileges failed!
Cheers,
vivi
I am having the same problem:
I am configuring RADIUS with openser and CDRtool. when i dial a number it
loges into in mysql of RADIUS server but it gives the following error. and
when i check CDRs of CDRtool it shows all calls "*inprogress". *
Tue Nov 24 19:47:37 2009 : Error: rlm_sql (sql) in sql_accounting: stop
packet with zero session length. [user '1000@ip
address'<%271000@ip%20address%27>,
nas 'ipaddress']
Can any body help me, that whether the RADIUS server is not sending the
INVITE and BYE traffic correctly or not singallng the CDRTool as well.
Thanking you in advance.
I am configuring RADIUS with openser and CDRtool. when i dial a number it
loges into in mysql of RADIUS server but it gives the following error. and
when i check CDRs of CDRtool it shows all calls "*inprogress". *
Tue Nov 24 19:47:37 2009 : Error: rlm_sql (sql) in sql_accounting: stop
packet with zero session length. [user '1000@ip address'<'1000@ip%20address'>,
nas 'ipaddress']
--
Toqeer Ali Syed
Red Hat Certified Engineer
mob: +92 321 9059916
Hi
i am configuring RADIUS accounting with openser and i facing the problem
with radius_extra module in acc all other parameters are ok but when i add
$hdr something i got the following error.
parameters with avp are fine but problem is with $hdr.
modparam("acc", "radius_extra", ......; X-RTP-Stat=$hdr (X-RTP-Stat; ......)
Nov 24 13:30:50 kamailio /sbin/openser[3760]: xl_fill_extra_spec: extra item
[hdr] not found
Nov 24 13:30:50 kamailio /sbin/openser[3760]: xl_lookup_spec_name: not found
PV [hdr]
Nov 24 13:30:50 kamailio /sbin/openser[3760]: ERROR:xl_parse_spec: error
searching pvar "hdr"
Regards,
MM Alam
SERG Pakistan
http://serg.imsciences.edu.pkhttp://www.imsciences.edu.pk/profiles/masoom_alam.html
Hi all,
strip core function accepts only an integer as parameter. What do you
thing about implementing the strip function with a variable as
parameter in a future release?
strip($var(x)); or something like that...
Is this doable?
Best regards.
--
Antonio
[please keep the list CC-d because others may also be interested in the
solution or may know the answer better.]
On 11/20/2009 07:06 PM, Andres Moya wrote:
> Can i ask one more question here. It is complicated, i am using
> uac_replace_from and uac_auth.
> I am using failure route to process authentication if necessary and
> redirect on next carrier.
>
> If i authenticated with one provider, then fot let say 415 ( i set only
> speex in UAC to get it ;) ). Ok SER send request to second provider, i use
> uac_replace_from once again in my LOAD_AUTH route
> then uac_auth again.
>
> Ok. now i see from ngrep that uac_replace_from did nothing in from field
> and use user@domain for first provider, authentication failed :(
Which authentication fails? The first or the second one?
The first should work, at least the from header should be rewritten by
the function.
The second authentication will not work this way (if it requires a
different from header) because the proxy "remembers" for the header
changes done before the first t_relay() function call and applies the
same header modifications also for any other branch added from failure
route. Hence, the outgoing SIP request to the second provider will
contain the same from HF as the request to the first provider.
The easiest way is to apply the header modifications in branch route if
you do not need to reuse them later from failure route. Modifications
done in branch routes are valid only within that branch.
>
> I moved uac_replace_from to my failure route to call once again before
> uac_auth, but got config error as i can't use uac_replace_from in
> failure_route.
I think you already use this function from failure route because it is
in a route block that is included from failure route. The only
difference is that the syntax checker does not recognize the issue. I am
not familiar with uac_replace_from() but after having a quick look at
the function I think it is safe to use it from here.
> Ok i will use textops to rewrite, but it is ugly?
The main difference is that uac_replace_from() restores the original
From HF when the response if forwarded. If you use textops module then
you need to restore the header manually.
> no. Maybe i should
> call uac_replace_from in branch route?
I would suggest this way. Both for the first and for the second provider.
Miklos
>
> Thanks
On Mon, Nov 23, 2009 at 5:54 PM, RAJNIKANT VANZA <rajnivanza(a)gmail.com>wrote:
> On Mon, Nov 23, 2009 at 4:20 PM, Thiago Rondon <thiago(a)aware.com.br>wrote:
>
>>
>> Ranikant,
>>
>> You can you use Perl module for this, please look at :
>>
>> http://kamailio.org/docs/modules/1.6.x/perl.html
>>
>> See the script example, headers.pl
>>
>> -Thiago Rondon
>>
>>
>> Alex Balashov escreveu:
>>
>> Please don't forget to copy your responses back to the list so that
>>> others can benefit from this discussion.
>>>
>>> I must have misunderstood your intended meaning of "user-defined."
>>> $hdr(...) takes only string literals as arguments, not pseudovariables.
>>>
>>> I do not believe that what you are wanting is possible.
>>>
>>> RAJNIKANT VANZA wrote:
>>>
>>> Hi Alex,
>>>>
>>>> i have tested like :
>>>>
>>>> 1. ${hdr(TEST))
>>>> 2. $hdr($avp(s:TEST))
>>>>
>>>> but it's not work.
>>>> if u know any other suggestion, send me.
>>>>
>>>> On Mon, Nov 23, 2009 at 3:56 PM, Alex Balashov <
>>>> abalashov(a)evaristesys.com <mailto:abalashov@evaristesys.com>> wrote:
>>>>
>>>> RAJNIKANT VANZA wrote:
>>>>
>>>> i want to get user-defined header value.
>>>> e.g. i have create header name : TEST and its value : vtec in
>>>> asterisk.
>>>> then how can i get this value from this header in
>>>> kamailio.
>>>>
>>>>
>>>> Try: $hdr(TEST)
>>>>
>>>> -- Alex Balashov - Principal
>>>> Evariste Systems
>>>> Web : http://www.evaristesys.com/
>>>> Tel : (+1) (678) 954-0670
>>>> Direct : (+1) (678) 954-0671
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thanks and Regards
>>>> Rajnikant Vanza
>>>> Call : +91-97374 56583
>>>>
>>>
>
> Hi friends,
>
> thank for reply.
>
> i have add header through asterisk api by below statement and its display
> correct on asterisk CLI
> but not able to get header value through kamailio:
>
> *asteisk statement is :* SipAddheader(TEST=vtec);
> above statement in header name is "TEST" and its value is "vtec".
>
> i want get "header TEST" from sip message when kamailio receive sip message
> (INVITE) from asterisk server.
>
>
> --
> Thanks and Regards
> Rajnikant Vanza
> Call : +91-97374 56583
>
--
Thanks and Regards
Rajnikant Vanza
Call : +91-97374 56583