Hi,
I am getting a 500 internal server error. I am not sure why as my config did not change. I do not want to restart the ser proxy. Could I get a list of causes for a 500 server error?
Thanks,
Michael Sabatella
Network Services Engineer
Office: 1-201-253-2280
Cell: 1-908-380-5321
________________________________
DISCLAIMER: This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unintended recipients are prohibited from taking action on the basis of information in this e-mail.E-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. If you are not comfortable with the risks associated with e-mail messages, you may decide not to use e-mail to communicate with IPC. IPC reserves the right, to the extent and under circumstances permitted by applicable law, to retain, monitor and intercept e-mail messages to and from its systems.
Hi there,
Is it possible that Kamailio is used in front of a group of Asterisk
servers. That is, Kamailio as a REGISTRAR Translation
can proxy the SIP registration and identify which PBX to send on LAN by the
ID before the EXT underlined from IP PHONE. Please advise with some links
through which it is possible to handle such an architecture.
Regards,
MM Alam
SERG Pakistan
http://serg.imsciences.edu.pkhttp://www.imsciences.edu.pk/profiles/masoom_alam.html
Hi,
has someone managed to "federate" kamailio with an Office Communications
Server? I'm mainly looking for IM&Presence (to gate into ejabberd), voice
would be nice to have...
Regards,
Jay
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greetings:
Hope you don't mind a question from someone just getting his feet wet :)
First off, if I want Kamailio to act as a SIP router among, say, a group
of Asterisk PBXs (meaning, Kamailio will have no user registrations, but
just pass SIP messages to and from the Asterisks), would I do this in
the least cost routing table or in carrier routes table, or via another
method?
(assume for the moment that all the PBXs are under my control, these
aren't connections outside my organization, no connections to the PSTN).
I figured it would be with lcr, so I tried compiling 3.0.0RC1 with that
module removed from the exclude list. I received the following error on
'make install'
make[1]: Entering directory
`/usr/local/src/kamailio-3.0.0/kamailio/modules/lcr'
make[1]: Leaving directory
`/usr/local/src/kamailio-3.0.0/kamailio/modules/lcr'
config.mak included
make[1]: Entering directory
`/usr/local/src/kamailio-3.0.0/kamailio/modules/lcr'
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.0-rc1"' -DARCH='"i386"' -DOS='linux_'
- -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.3.2"' -D__CPU_i386 -D__OS_linux
- -DSER_VER=3000000 -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 -DDBG_QM_MALLOC -DUSE_TLS -DTLS_HOOKS
- -DSTATISTICS -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
- -I/usr/local/include -I/usr/local/include -I/opt/include
- -I/usr/sfw/include -DOPENSER_MOD_INTERFACE -DMOD_NAME='"lcr"' -c hash.c
- -o hash.o
In file included from hash.c:26:
lcr_mod.h:34:18: error: pcre.h: No such file or directory
In file included from hash.c:26:
lcr_mod.h:51: error: expected specifier-qualifier-list before âpcreâ
hash.c:34: error: expected declaration specifiers or â...â before âpcreâ
hash.c: In function âlcr_hash_table_insertâ:
hash.c:56: error: âstruct lcr_infoâ has no member named âfrom_uri_reâ
hash.c:56: error: âfrom_uri_reâ undeclared (first use in this function)
hash.c:56: error: (Each undeclared identifier is reported only once
hash.c:56: error: for each function it appears in.)
hash.c:58: error: âstruct lcr_infoâ has no member named âgrp_idâ
hash.c:59: error: âstruct lcr_infoâ has no member named âfirst_gwâ
hash.c:60: error: âstruct lcr_infoâ has no member named âpriorityâ
hash.c:66: error: âstruct lcr_infoâ has no member named ânextâ
hash.c: In function âlcr_hash_table_contents_freeâ:
hash.c:106: error: âstruct lcr_infoâ has no member named âgrp_idâ
hash.c:106: error: âstruct lcr_infoâ has no member named âgrp_idâ
hash.c:106: error: âstruct lcr_infoâ has no member named âgrp_idâ
hash.c:106: error: âstruct lcr_infoâ has no member named âgrp_idâ
hash.c:106: error: âstruct lcr_infoâ has no member named âgrp_idâ
hash.c:107: error: âstruct lcr_infoâ has no member named âfrom_uri_reâ
hash.c:108: error: âstruct lcr_infoâ has no member named âfrom_uri_reâ
hash.c:110: error: âstruct lcr_infoâ has no member named ânextâ
make[1]: *** [hash.o] Error 1
make[1]: Leaving directory
`/usr/local/src/kamailio-3.0.0/kamailio/modules/lcr'
make: *** [install-modules] Error 1
If I leave lcr in the exclude list, I can make/make install, but if I
try to add an entry into the lcr table, I get this error:
# kamctl lcr addgw labCM 172.16.59.6 5060 1 2 1
ERROR 1054 (42S22) at line 1: Unknown column 'ping' in 'field list'
ERROR: lcr - SQL Error
System info:
Kamailio 3.0.0 RC1 from GIT
debian 5.0.3 (2.6.26-2-686)
gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
- --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
- --enable-shared --with-system-zlib --libexecdir=/usr/lib
- --without-included-gettext --enable-threads=posix --enable-nls
- --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
- --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
- --enable-mpfr --enable-targets=all --enable-cld
- --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
- --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
Thank you!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkrx/CMACgkQQr/gMVyFYySWQgCeJoW2VLWRI85bHdC9ThwnEwLc
pWQAoJZVtBEzdRI8+3xBoLnlWJxNXbj/
=Wwjk
-----END PGP SIGNATURE-----
Is there a way that I can pass variable into ds_select_dst(set, alg) on the set parameter so I can query from database table for setid; for instance, ds_select_dst("avp(customer_setid)", "4"). I've tried, but it did not work. Please advise.
Thank you.
if i have understood correctly, if uac_replace_from() is called
in "auto" mode, encoded from uri is added into an extra param of r-r
header when the request is forwarded towards uas.
does the module check that reply to the request from uas really includes
the added parameter in its r-r header or is correct operation of
in-dialog requests at the mercy of the uas?
-- juha
it turned out that the problems ricardo reported on gw selection in
lcr module were due to the fact that he has the same gw (same in terms of
ip address) in more than one gw group and in each group the gw has
different trip/tag attributes.
load_gws() function tries the same gateway only once, but it is not
currently well defined from which group gw's attributes are taken
when request is sent to the gateway. currently the attributes are taken
from the gw group, which happens to be the first in in-memory gw table.
one could think that this is a feature, i.e., if the same gw is in many gw
groups, it must have the same attributes in every group. the other
alternative is that this is a bug, i.e., same gw's attributes can differ
from group to group and the ones that are used must be the ones of the
chosen group.
i have a fix written for sr_3.0 lcr module, but i'm hesitating to introduce
the fix also to version 1.5, because the fix has not been tested well yet.
any opinions on what should be done?
-- juha
don't forget -- always cc the mailing list.
On 05.11.2009 5:39 Uhr, GEMINORIUM crux wrote:
> Daniel,
> i am transferring tls protocol to udp protocol,
> sorry, i don't mention it.
>
> client <---tls----> kamilio <----udp---> asterisk
>
> thanks for your reply.
>
>
> On Wed, Nov 4, 2009 at 7:38 PM, Daniel-Constantin Mierla
> <miconda(a)gmail.com <mailto:miconda@gmail.com>> wrote:
>
> Hello,
>
>
> On 04.11.2009 14:34 Uhr, GEMINORIUM crux wrote:
>
> hi,
> i am new to kamailio,
>
> getting syntax error:
> $var(test) = "udp:"+$rd+":"+$rp;
> t_relay_to_udp($var(test));
>
> t_relay_to_udp($rd,$rp);
>
> working with string.
>
> is there any reason ? how to resolve it ?
> i have to use database so i need to use variable.
>
> any suggestion is appreciated.
>
> you have to do:
>
> $du = "sip:"+$rd+":"+$rp;
> t_relay();
>
> Cheers,
> Daniel
>
> --
> Daniel-Constantin Mierla
> * http://www.asipto.com/
>
>
--
Daniel-Constantin Mierla
* http://www.asipto.com/
Hello,
I updated the vim syntax file for Kamailio 3.0 and SR3.0/devel. I
attached as well a script to auto-detect the type of .cfg file based on
matching compatibility string (i.e., #!XYZ), loadmodule or main route line.
To install, copy the files in your home dir - see the hints inside each
file to know which one to place where:
.vim/syntax/ser.vim
.vim/ftdetect/ser.vim
If you don't install the file type detect script, then you can use
":setf ser" once you opened the config file.
Enjoy,
Daniel
--
Daniel-Constantin Mierla
* http://www.asipto.com/
" Copy this file to $HOME/.vim/ftdetect/ser.vim
func! s:cfgType()
let max = line("$") > 200 ? 200 : line("$")
for n in range(1, max)
if getline(n) =~ '^\s*#!\(KAMAILIO\|OPENSER\|SER\|ALL\|MAXCOMPAT\)'
set filetype=ser
return
elseif getline(n) =~ '^\s*modparam\s*(\s*"[^"]\+"'
set filetype=ser
return
elseif getline(n) =~ '^\s*route\s*{\s*'
set filetype=ser
return
endif
endfor
setf cfg
endfunc
au BufNewFile,BufRead *.cfg call s:cfgType()
" -*- vim -*-
" FILE: ser.vim
" LAST MODIFICATION: 2009-05-28 18:30
" (C) Copyright 2008 Stanisław Pitucha <viraptor(a)gmail.com>
" (C) Copyright 2009 Daniel-Constantin Mierla <miconda(a)gmail.com>
" Version: 1.01
" USAGE:
"
" Save this file to $VIMFILES/syntax/ser.vim. Either add a detection
" script to filetypes.vim, or set filetype manually to "ser" when
" editing SIP Router configuration file with 'setf ser'.
"
" List of keyword and core functions taken from latest dev version of
" SIP Router. Module functions not included.
"
" Tested only on vim 7.1
"
" Example: "setf ser"
"
" REQUIREMENTS:
" vim (>= 7)
if exists("b:current_syntax")
finish
endif
syn match serConfigParamLine '^[^=]\+=.*$' contains=serCoreParameter,serString,serConfigConstant,serSpecial,serNumber,serCppComment,serHashComment
syn region serConfigModparam start='^\s*modparam\s*(' end=')' contains=serString,serNumber
syn match serConfigModule '^\s*loadmodule\s*"[^"]\+"' contains=serString
syn keyword serTodo TODO FIXME XXX contained
syn match serOperator '!\|&&\|||\|=[~=]\?\|>\|<\|+\|-\|/\|\*\||\|&\|^\|\~\|defined\|eq\|ieq\|ne\|ine\|mod' display contained
syn region serCppComment start='/\*' end='\*/' contains=serTodo
syn match serHashDefine '#!define\s\|#!ifdef\s\|#!ifndef\s\|#!endif\|#!else\|#!KAMAILIO\|#!OPENSER\|#!SER\|#!MAXCOMPAT\|#!ALL'
" syn match serHashDefine '^\s*#!.+$'
syn match serHashComment '#[^!].*$\|#$' contains=serTodo
syn match serStringEscape '\\.' contained
syn match serNumber '[0-9]\+' contained
syn region serString matchgroup=Normal start='"' skip='\\"' end='"' contained contains=serVariable,serStringEscape
syn match serVariable "$[a-zA-Z_][a-zA-Z0-9_]*\(([^)]\+)\)\?" contained
syn match serIdentifier '[a-zA-Z_][a-zA-Z0-9_]*' contained
syn keyword serStatement route if else switch case default break exit return drop while include_file contained
syn keyword serSpecial yes no on off true false enabled disabled contained
syn keyword serCoreKeyword af dst_ip dst_port from_uri method msg:len proto status snd_af snd_ip snd_port snd_proto src_ip src_port to_af to_ip to_port to_proto to_uri uri uri:host uri:port contained
syn keyword serCoreValue udp UDP tcp TCP tls TLS sctp SCTP inet INET inet6 INET6 sslv23 SSLv23 SSLV23 sslv2 SSLv2 SSLV2 sslv3 SSLv3 SSLV3 tlsv1 TLSv1 TLSV1 max_len myself contained
syn keyword serCoreFunction forward forward_tcp forward_udp forward_tls forward_sctp send send_tcp log error exec force_rport add_rport force_tcp_alias add_tcp_alias udp_mtu udp_mtu_try_proto setflag resetflag isflagset flags bool setavpflag resetavpflag isavpflagset avpflags rewritehost sethost seth rewritehostport sethostport sethp rewritehostporttrans sethostporttrans sethpt rewriteuser setuser setu rewriteuserpass setuserpass setup rewriteport setport setp rewriteuri seturi revert_uri prefix strip strip_tail userphone append_branch set_advertised_address set_advertised_port force_send_socket contained
syn keyword serCoreParameter debug fork log_stderror log_facility listen alias auto_aliases dns rev_dns dns_try_ipv6 dns_try_naptr dns_srv_lb dns_srv_loadbalancing dns_udp_pref dns_udp_preference dns_tcp_pref dns_tcp_preference dns_tls_pref dns_tls_preference dns_sctp_pref dns_sctp_preference dns_retr_time dns_retr_no dns_servers_no dns_use_search_list dns_search_full_match dns_cache_init use_dns_cache use_dns_failover dns_cache_flags dns_cache_negative_ttl dns_cache_min_ttl dns_cache_max_ttl dns_cache_mem dns_cache_gc_interval dns_cache_del_nonexp dns_cache_delete_nonexpired dst_blacklist_init use_dst_blacklist dst_blacklist_mem dst_blacklist_expire dst_blacklist_ttl dst_blacklist_gc_interval port statistics maxbuffer children check_via phone2tel syn_branch memlog mem_log memdbg mem_dbg sip_warning server_signature reply_to_via user uid group gid chroot workdir wdir mhomed disable_tcp tcp_children tcp_accept_aliases tcp_send_timeout tcp_connect_timeout tcp_connection_lifetime tcp_poll_method tcp_max_connections tcp_no_connect tcp_source_ipv4 tcp_source_ipv6 tcp_fd_cache tcp_buf_write tcp_async tcp_conn_wq_max tcp_wq_max tcp_rd_buf_size tcp_wq_blk_size tcp_defer_accept tcp_delayed_ack tcp_syncnt tcp_linger2 tcp_keepalive tcp_keepidle tcp_keepintvl tcp_keepcnt tcp_crlf_ping disable_tls tls_disable enable_tls tls_enable tlslog tls_log tls_port_no tls_method tls_verify tls_require_certificate tls_certificate tls_private_key tls_ca_list tls_handshake_timeout tls_send_timeout disable_sctp enable_sctp sctp_children sctp_socket_rcvbuf sctp_socket_receive_buffer sctp_socket_sndbuf sctp_socket_send_buffer sctp_autoclose sctp_send_ttl sctp_send_retries advertised_address advertised_port disable_core_dump open_files_limit shm_force_alloc mlock_pages real_time rt_prio rt_policy rt_timer1_prio rt_fast_timer_prio rt_ftimer_prio rt_timer1_policy rt_ftimer_policy rt_timer2_prio rt_stimer_prio rt_timer2_policy rt_stimer_policy mcast_loopback mcast_ttl tos pmtu_discovery exit_timeout ser_kill_timeout max_while_loops stun_refresh_interval stun_allow_stun stun_allow_fp server_id description descr desc loadpath mpath contained
syn region serBlock start='{' end='}' contained contains=serBlock,@serCodeElements
syn match serRouteBlock '\(failure_\|onreply_\|branch_\|event_\|onsend_\)\?route\(\s*\[[^\]]\+\]\)\?' contained contains=serNumber,serString,serIdentifier
syn region serRrouteBlockFold matchgroup=serRouteBlock start="\(failure_\|onreply_\|branch_\|event_\|onsend_\)\?route\(\s*\[[^\]]\+\]\)\?\s*\n\?{" matchgroup=NONE end="}" contains=serBlock,@serCodeElements
syn cluster serCodeElements contains=serHashDefine,serCppComment,serHashComment,serNumber,serString,serVariable,serOperator,serStatement,serKeyword,serCoreKeyword,serCoreValue,serCoreFunction,serIdentifier
hi def link serCppComment Comment
hi def link serHashComment Comment
hi def link serHashDefine Special
hi def link serTodo Todo
hi def link serConfigModparam Function
hi def link serConfigModule Keyword
hi def link serKeyword Keyword
hi def link serCoreKeyword Special
hi def link serCoreValue Special
hi def link serCoreFunction Function
hi def link serRouteBlock Type
hi def link serRrouteBlockFold Type
hi def link serIdentifier Identifier
hi def link serSpecial Special
hi def link serCoreParameter Keyword
hi def link serOperator Operator
hi def link serStatement Conditional
hi def link serNumber Number
hi def link serVariable Identifier
hi def link serString String
hi def link serStringEscape Special
let b:current_syntax = "ser"