Okay... help me visualise something. Now, as far as I can tell, SER is doing
exactly what it's supposed to be doing, but I can't figure out how to get it
to do something different.
I have an accounting section (my log flag is 1) that looks like this:
if((method=="INVITE" && !has_totag()) || method=="BYE")
{
setflag(1);
};
Basic, simple logging section. But when someone calls through from a DID to an
alias in the aliases table, it of course logs the sip_to as the alias.
Fine, I thought. I'll just add a lookup("aliases") before the setflag and all
will be well, right? No. Then it doesn't seem to log anything at ALL.
So what I'm trying to figure out is how to get SER to log a call coming into
an alias as a call to the user who's aliased.
I.e. a call is coming in from 1010(a)remote.proxy.com to 9999(a)proxy.com (which
is really an alias to user 1234(a)proxy.com). Right now, SER is logging in the
acc tables that the call went to sip:9999@proxy.com.
I want to have it log that the call went to 1234(a)proxy.com and NOT that it
went to the alias.
This:
if((method=="INVITE" && !has_totag()) || method=="BYE")
{
lookup("aliases");
setflag(1);
};
gets me nothing at all.
Ideas, anyone? I'm stumped. I'm sure it's something drastically simple that
I'm just not getting.
N.
Dear all,
When i try to compile again TLS ( I have disabled Kerberos5) by using Command ,TLS=1 make install, I got an error message.
It is :
make: *** [tls/tls_init.o] Error 1
What should i do else? I am very confused. This is my first time to build TLS. Please help me..Please ..
Note: Below is the message shown when i compile TLS support
gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -malign-double - falign-loops -mcpu=athlon -DNAME='"openser"' -DVERSIonfiltered='"1.0.1-tls"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 3.2.2"' -D__CPU_i386 -D__OS_linux -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DF_MALLOC -DOPENSSL_NO_KRB5 -DUSE_TLS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -I/usr/local/ssl/include -c tls/tls_init.c -o tls/tls_init.o
tls/tls_init.c:373:25: directives may not be used inside a macro argument
tls/tls_init.c:372:56: unterminated argument list invoking macro "SSL_CTX_set_options"
tls/tls_init.c: In function `init_ssl_ctx_behavior':
tls/tls_init.c:376: `SSL_CTX_set_options' undeclared (first use in this function)
tls/tls_init.c:376: (Each undeclared identifier is reported only once
tls/tls_init.c:376: for each function it appears in.)
tls/tls_init.c:376: parse error before ')' token
make: *** [tls/tls_init.o] Error 1
Thank you very much
Regards,
Ferianto
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs.Try it free.
Dear all,
Thank you very much to Bogdan for helping me.Thanks
When i try to compile again TLS (after I disable the Kerberos5) by using Command ,TLS=1 make install, I got an error message again It is the message:
make: *** [tls/tls_init.o] Error 1
What should i do else? I am very confused. This is my first time to build TLS. Please help me..Please ..
Note: Below is the message shown when i compile TLS support
gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -malign-double - falign-loops -mcpu=athlon -DNAME='"openser"' -DVERSION='"1.0.1-tls"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 3.2.2"' -D__CPU_i386 -D__OS_linux -DCFG_DIR='"/usr/local/etc/openser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DF_MALLOC -DOPENSSL_NO_KRB5 -DUSE_TLS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -I/usr/local/ssl/include -c tls/tls_init.c -o tls/tls_init.o
tls/tls_init.c:373:25: directives may not be used inside a macro argument
tls/tls_init.c:372:56: unterminated argument list invoking macro "SSL_CTX_set_options"
tls/tls_init.c: In function `init_ssl_ctx_behavior':
tls/tls_init.c:376: `SSL_CTX_set_options' undeclared (first use in this function)
tls/tls_init.c:376: (Each undeclared identifier is reported only once
tls/tls_init.c:376: for each function it appears in.)
tls/tls_init.c:376: parse error before ')' token
make: *** [tls/tls_init.o] Error 1
Thank you very much.
Regards,
Ferianto
---------------------------------
Want to be your own boss? Learn how on Yahoo! Small Business.