Hi,
i want to change the "From:" tag with uac_replace_from when the displayname is "anonymous". with from_uri i can only check the uri.
is there a way to check the displayname in the "From: " tag?
for example:
From: "Anonymous sip:1234@blah.net"
i want to change it to: From: "Anonymous sip:Anonymous@Anonymous"
Ciao
Hi all,
Nathelper permit some tests to know if a client is behind a nat or not.
In documentation, things are not really clear(I must say not clear at all).
We have the possibility to test thru nat_uac_test("X") X can be 1, 2, 4, 8,16 or a combination of these tests.
What is not clear for me, is the meaning of these test and action to take when the test is OK.
Can any of you clearly explain the meaning of these results ans the action to take?
Kind regards,
Olivier
Hello,
Olivier Taylor wrote:
Hi all,
Nathelper permit some tests to know if a client is behind a nat or not.
In documentation, things are not really clear(I must say not clear at all).
We have the possibility to test thru nat_uac_test("X") X can be 1, 2, 4, 8,16 or a combination of these tests.
What is not clear for me, is the meaning of these test and action to take when the test is OK.
Can any of you clearly explain the meaning of these results ans the action to take?
the results of the test is true when the conditions are accomplished in a "OR" manner. So, if you have a combinations of tests, then if one is true, the result of nat_uac_test() is true.
The common actions to take are to use rtpproxy for calls or to store the proper contact information in usrloc for registrations.
Cheers, Daniel
Kind regards,
Olivier
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi Martin,
see the $fn pseudo variable: http://openser.org/docs/pseudo-variables-1.1.x.html#pv_fn
regards, bogdan
martin@campus-merseburg.de wrote:
Hi,
i want to change the "From:" tag with uac_replace_from when the displayname is "anonymous". with from_uri i can only check the uri.
is there a way to check the displayname in the "From: " tag?
for example:
From: "Anonymous sip:1234@blah.net"
i want to change it to: From: "Anonymous sip:Anonymous@Anonymous"
Ciao
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Am 26.1.2006 schrieb "Bogdan-Andrei Iancu" bogdan@voice-system.ro:
Hi Martin,
see the $fn pseudo variable: http://openser.org/docs/pseudo-variables-1.1.x.html#pv_fn
I can't compile openser 1.1.0 on solaris (again :)):
---snip Compiling cfg.tab.c gcc -g -O9 -funroll-loops -Wall -mcpu=ultrasparc -mtune=ultrasparc -DNAME='"openser"' -DVERSION='"1.1.0-dev8 "' -DARCH='"sparc64"' -DOS='"solaris"' -DCOMPILER='"gcc 3.4.3"' -D__CPU_sparc64 -D__OS_solaris -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 -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT -c cfg.tab.c -o cfg.tab.o /usr/ccs/bin/yaccpar:5: warning: ignoring #pragma ident cfg.y: In function `yyparse': cfg.y:804: error: `IPTOS_MINCOST' undeclared (first use in this function) cfg.y:804: error: (Each undeclared identifier is reported only once cfg.y:804: error: for each function it appears in.) /usr/ccs/bin/yaccpar:164: warning: label `yynewstate' defined but not used /usr/ccs/bin/yaccpar:374: warning: label `yyerrlab' defined but not used gmake: *** [cfg.tab.o] Error 1 ---snap
any ideas?
can i find the complete from in another pseudo variable? so i can regexp it. cant find the right variable in the docs.
Hi Martin,
thanks for report - indeed IPTOS_MINCOST is not define on SOLARIS and NETBSD - the problem should be fixed on CVS now.
regarding the pseudo variables: have you tried the $fn?
if you want to get a whole headers, use *$hdr(name[N])*. See http://openser.org/docs/pseudo-variables-1.1.x.html#pv_hdr
regards, bogdan
martin@campus-merseburg.de wrote:
Am 26.1.2006 schrieb "Bogdan-Andrei Iancu" bogdan@voice-system.ro:
Hi Martin,
see the $fn pseudo variable: http://openser.org/docs/pseudo-variables-1.1.x.html#pv_fn
I can't compile openser 1.1.0 on solaris (again :)):
---snip Compiling cfg.tab.c gcc -g -O9 -funroll-loops -Wall -mcpu=ultrasparc -mtune=ultrasparc -DNAME='"openser"' -DVERSION='"1.1.0-dev8 "' -DARCH='"sparc64"' -DOS='"solaris"' -DCOMPILER='"gcc 3.4.3"' -D__CPU_sparc64 -D__OS_solaris -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 -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT -c cfg.tab.c -o cfg.tab.o /usr/ccs/bin/yaccpar:5: warning: ignoring #pragma ident cfg.y: In function `yyparse': cfg.y:804: error: `IPTOS_MINCOST' undeclared (first use in this function) cfg.y:804: error: (Each undeclared identifier is reported only once cfg.y:804: error: for each function it appears in.) /usr/ccs/bin/yaccpar:164: warning: label `yynewstate' defined but not used /usr/ccs/bin/yaccpar:374: warning: label `yyerrlab' defined but not used gmake: *** [cfg.tab.o] Error 1 ---snap
any ideas?
can i find the complete from in another pseudo variable? so i can regexp it. cant find the right variable in the docs.
Am 30.1.2006 schrieb "Bogdan-Andrei Iancu" bogdan@voice-system.ro:
Hi Martin,
thanks for report - indeed IPTOS_MINCOST is not define on SOLARIS and NETBSD - the problem should be fixed on CVS now.
thanks. :)
regarding the pseudo variables: have you tried the $fn?
in the 1.0.0 cvs tree it is null.
if you want to get a whole headers, use *$hdr(name[N])*. See http://openser.org/docs/pseudo-variables-1.1.x.html#pv_hdr
found this too. thanks.
is the 1.1.0 cvs-tree "stable"?
ciao
martin@campus-merseburg.de wrote:
regarding the pseudo variables: have you tried the $fn?
in the 1.0.0 cvs tree it is null.
indeed, $fn is not present in 1.0.0 - only on 1.1.0
if you want to get a whole headers, use *$hdr(name[N])*. See http://openser.org/docs/pseudo-variables-1.1.x.html#pv_hdr
found this too. thanks.
is the 1.1.0 cvs-tree "stable"?
this is the development version, so new things are not yet known to be stable.
regards, bogdan