Hi Bogdan,
Yes, it does. Please pay attention that the called number must be
restored in branch_route[].
Also, I still don't know what to do if lookup() fails (the gateway is
temporary down and therefore is not registered...) Any idea? Is it
planned to add loops possibility to script language?
Best regards,
Leonid
-----Original Message-----
From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
Sent: Thursday, November 10, 2005 15:36
To: Leonid Fainshtein
Cc: users(a)openser.org
Subject: Re: [Users] Routing to NATed gateways
Hi Leonid,
does the logic solved your problem? on a first view, the script look ok.
regarding the failure of lookup(); you can stick to sending an error
reply or you can try the next gateway provided by LCR.
regards,
bogdan
Leonid Fainshtein wrote:
>In other words, the simplified configuration may be as the following:
>
> # Save original user name (the called phone number).
> avp_printf("$orig_called_num", "$rU");
> if (load_gws())
> {
> if (next_gw())
> {
> if (lookup("location"))
> {
> avp_pushto("$ruri/username", "$orig_called_num");
> t_on_failure("2");
> route(x); # NAT and other usual staff there
> exit;
> }
> else
> {
> xlog("L_INFO", "I have to think what to do in this
>situation.\n");
> sl_send_reply("404", "User Not Found");
> }
> }
> }
>
>failure_route[2]
>{
> if (method=="INVITE" && t_check_status("408|500|503"))
> {
> if (!next_gw())
> {
> t_reply("503", "Service not available, no more gateways");
> }
> else
> {
> if (!lookup("location"))
> {
> xlog("L_INFO", "I have to think what to do in this
>situation.\n");
> t_reply("503", "Service not available, no more
>gateways");
> exit;
> };
> t_on_failure("2");
> t_on_branch("2");
> t_relay();
> }
> }
>}
>
>branch_route[2]
>{
> avp_pushto("$ruri/username", "$orig_called_num");
>}
>
>Am I correct? Actually I don't know what to do if one of the gateways
>is off-line (lookup() failed).
>
>Best regards,
>Leonid Fainshtein
>-----Original Message-----
>From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
>Sent: Tuesday, November 08, 2005 5:30 PM
>To: Leonid Fainshtein
>Cc: users(a)openser.org
>Subject: Re: [Users] Routing to NATed gateways
>
>Hi Leonid,
>
>the scenario you are probing might be already doable. Set in the LCR
>table some IP addresses which will be used as aliases: private
>addresses in 10.10.x.x class for example. Then register this IPs in
>usrloc pointing to the real GWs address.
>So you can do lcr (next_gw) and then lookup.
>
>for this to work, lcr must operate on RURI and not on DST_URI (not sure
>how exactly is working).
>
>regards,
>bogdan
>
>Leonid Fainshtein wrote:
>
>
>
>>Hi,
>>I'd like to use OpenSER for routing calls to NATed gateways. I also
>>want to support the LCR feature. Unfortunately, the current LCR module
>>doesn't support NAT. I mean that the gateway IP addresses must be
>>defined explicitly in the "gtw" table. Now I'm looking for a way to
>>force OpenSer to use information from the "location" table.
>>I want to write a module that will have the similar functionality like
>>the current LCR module has but resolving procedure will be more
>>complicated (not based on prefix and From only). The module should
>>build avp list where each gateway will have symbolic user name. For
>>example, g1, g2 etc. The gateways will also be registered on the proxy
>>with those names. Then I think it will be possible to call
>>lookup("location") after successful call the next_gtw() from the
>>
>>
>script.
>
>
>>Is it feasible? Is there another way to solve my problem?
>>
>>Thank you in advance,
>>Leonid Fainshtein
>>
>>_______________________________________________
>>Users mailing list
>>Users(a)openser.org
>>http://openser.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>>
>>
>
>
>
>
Hi
When my SER passes through a call to asterisk, this is done without
authenticating to asterisk. I use the hostname= and insecure=very method.
Can't I force ser and asterisk to use authentication?
thx
Arne
hi,
> according to the "usr_preferences.sql"
> (serweb/scripts/sql/usr_preferences)the attribute name and types are all
> dumped into
> a table called "preference_types" which is not there in the mysql DB.
> this isnt a default column to be included in the tables.
> ny ideas to create this table?
yes
ser_mysql.sh reinstall
Karel
>
> thank you
>
>
> ------------------------------------------------------------------------
> *From:* Karel Kozlik [mailto:karel@iptel.org]
> *Sent:* Thu 10-Nov-05 2:38 PM
> *To:* Divya Parvataneni
> *Cc:* serweb-users(a)lists.iptel.org
> *Subject:* Re: [Serweb-users] whats this "DB Error:no such table" error???
>
> Hi,
> that mean some table is missing in your DB. Try reinstall your db by run:
>
> ser_mysql.sh reinstall
>
> If it not help, enable logging in serweb and see the log file for
> detailed info.
>
> Karel
>
> divya.parvataneni(a)wipro.com napsal(a):
> > hi ,
> > when i try to add an attribute
> > under user preferences (logged in as admin)
> > it says
> >
> > "DB Error:no such table"
> >
> > can nyone pls help!!
> >
>
> >> serweb-users(a)lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serweb-users
>
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any attachments
> to this message are intended
> for the exclusive use of the addressee(s) and may contain confidential
> or privileged information. If
> you are not the intended recipient, please notify the sender at Wipro or
> Mailadmin(a)wipro.com immediately
> and destroy all copies of this message and any attachments.
>
I am a college student in Polithecnic Caltex of Riau in Indonesia. I am in the third years now. In my last project, I want to build the VOIP with TLS system at my college because i think it is interesting. I have studied about it since one month , but i get many problems to undestand about the system. Here is some obstacles questions about the system that i have met:
1. How can the attacker eavesdrop the communication in VoIP (The way)?
2. How can TLS prevent the attacker to eavesdrop the communication?
3. How can TLS ensure the confidentially and integrity of communication? Why we don`t user other secure protocol?
4.Do all TLS` clients use Linux Operating System or they can use Windows?
5. How secure TLS to protect the communication?
That is all the obstacles questions that i have met. I do hope any body can help me to answer those question. Please help me. Thank you very much.
Sincerely yours,
Ferianto
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.
In other words, the simplified configuration may be as the following:
# Save original user name (the called phone number).
avp_printf("$orig_called_num", "$rU");
if (load_gws())
{
if (next_gw())
{
if (lookup("location"))
{
avp_pushto("$ruri/username", "$orig_called_num");
t_on_failure("2");
route(x); # NAT and other usual staff there
exit;
}
else
{
xlog("L_INFO", "I have to think what to do in this
situation.\n");
sl_send_reply("404", "User Not Found");
}
}
}
failure_route[2]
{
if (method=="INVITE" && t_check_status("408|500|503"))
{
if (!next_gw())
{
t_reply("503", "Service not available, no more gateways");
}
else
{
if (!lookup("location"))
{
xlog("L_INFO", "I have to think what to do in this
situation.\n");
t_reply("503", "Service not available, no more
gateways");
exit;
};
t_on_failure("2");
t_on_branch("2");
t_relay();
}
}
}
branch_route[2]
{
avp_pushto("$ruri/username", "$orig_called_num");
}
Am I correct? Actually I don't know what to do if one of the gateways is
off-line (lookup() failed).
Best regards,
Leonid Fainshtein
-----Original Message-----
From: Bogdan-Andrei Iancu [mailto:bogdan@voice-system.ro]
Sent: Tuesday, November 08, 2005 5:30 PM
To: Leonid Fainshtein
Cc: users(a)openser.org
Subject: Re: [Users] Routing to NATed gateways
Hi Leonid,
the scenario you are probing might be already doable. Set in the LCR
table some IP addresses which will be used as aliases: private addresses
in 10.10.x.x class for example. Then register this IPs in usrloc
pointing to the real GWs address.
So you can do lcr (next_gw) and then lookup.
for this to work, lcr must operate on RURI and not on DST_URI (not sure
how exactly is working).
regards,
bogdan
Leonid Fainshtein wrote:
>Hi,
>I'd like to use OpenSER for routing calls to NATed gateways. I also
>want to support the LCR feature. Unfortunately, the current LCR module
>doesn't support NAT. I mean that the gateway IP addresses must be
>defined explicitly in the "gtw" table. Now I'm looking for a way to
>force OpenSer to use information from the "location" table.
>I want to write a module that will have the similar functionality like
>the current LCR module has but resolving procedure will be more
>complicated (not based on prefix and From only). The module should
>build avp list where each gateway will have symbolic user name. For
>example, g1, g2 etc. The gateways will also be registered on the proxy
>with those names. Then I think it will be possible to call
>lookup("location") after successful call the next_gtw() from the
script.
>Is it feasible? Is there another way to solve my problem?
>
>Thank you in advance,
>Leonid Fainshtein
>
>_______________________________________________
>Users mailing list
>Users(a)openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>
>
Dear friends,
If you are new to SER like I am, please note the followings:
Setup: Red Hat Linux 9.0 or Red Hat Enterprise ES 3 and SER version 0.9.3.
1. When you try to load mysql.so module for your ser, you get an error. bad config. if you do
ser -D -E . The result shows that mysql.so was unable to load due to libmysqlclient.so.12 was not found.
Please note that the above mentioned Red Hat Linux includes a MySQL server version 3.23 which does not include the above file. If you do prefer to upgrade your mysql server please do not upgrade it to MySQL 5.0 rather upgrade it to 4.15.
You are note done yet. Go to mysql.com and try to find out the following rpm file:
MySQL-shared-compat-4.1.10a-0 RPM for i386
This file is from 4.1.10 which includes libmysqlclient.so.12 that is not present 4.1.15.
Once downloaded install the file using the following command:
rpm -i MySQL-shared-compat-4.1.10a-0.i386.rpm --force
Hope this helps.
Thanks
Dhiman Deb Chowdhury
http://dhiman.chowdhury.com
Colin:
Ahh, I've only done work with accounting on 0.9.x systems. This might
explain
why my instructions didn't help. I've copied the list on this reply in
the hope
that someone may know the answer since I will be out of the office all
day today.
I'll check back with you tomorrow.
-Steve
Colin Jordan wrote:
>Hi Steve
>
>Thanks for this. The SER version is 8.1. Nothing appear in the database.
>
>Thanks for helping,
>
>Colin
>
Hi
I need something similar so fix_nated_contact but with parametars so I
can set up my own values for host:port.
Can I do this in OpenSer? Can avp_pushto do this?
Regards,
Taras
Hi all,
I am compile openser-1.0.0-tls on
Red Hat Linux 3.2.3-52
openssl-0.9.7a-33.17
openssl-devel-0.9.7a-33.17
It's show error :
gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -malign-double -falign-loops -mcpu=athlon -DNAME='"openser"' -DVERSION='"1.0.0-tls"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 3.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 -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 main.c -o main.o
In file included from /usr/include/openssl/ssl.h:179,
from tls/tls_init.h:27,
from main.c:112:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
from tls/tls_init.h:27,
from main.c:112:
/usr/include/openssl/kssl.h:134: syntax error before "krb5_enctype"
/usr/include/openssl/kssl.h:136: syntax error before '*' token
/usr/include/openssl/kssl.h:137: syntax error before '}' token
/usr/include/openssl/kssl.h:149: syntax error before "kssl_ctx_setstring"
/usr/include/openssl/kssl.h:149: syntax error before '*' token
/usr/include/openssl/kssl.h:150: syntax error before '*' token
/usr/include/openssl/kssl.h:151: syntax error before '*' token
/usr/include/openssl/kssl.h:151: syntax error before '*' token
/usr/include/openssl/kssl.h:152: syntax error before '*' token
/usr/include/openssl/kssl.h:153: syntax error before "kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:153: syntax error before '*' token
/usr/include/openssl/kssl.h:155: syntax error before "kssl_cget_tkt"
/usr/include/openssl/kssl.h:155: syntax error before '*' token
/usr/include/openssl/kssl.h:157: syntax error before "kssl_sget_tkt"
/usr/include/openssl/kssl.h:157: syntax error before '*' token
/usr/include/openssl/kssl.h:159: syntax error before "kssl_ctx_setkey"
/usr/include/openssl/kssl.h:159: syntax error before '*' token
/usr/include/openssl/kssl.h:161: syntax error before "context"
/usr/include/openssl/kssl.h:162: syntax error before "kssl_build_principal_2"
/usr/include/openssl/kssl.h:162: syntax error before "context"
/usr/include/openssl/kssl.h:165: syntax error before "kssl_validate_times"
/usr/include/openssl/kssl.h:165: syntax error before "atime"
/usr/include/openssl/kssl.h:167: syntax error before "kssl_check_authent"
/usr/include/openssl/kssl.h:167: syntax error before '*' token
/usr/include/openssl/kssl.h:169: syntax error before "enctype"
In file included from tls/tls_init.h:27,
from main.c:112:
/usr/include/openssl/ssl.h:909: syntax error before "KSSL_CTX"
/usr/include/openssl/ssl.h:931: syntax error before '}' token
make: *** [main.o] Error 1
Could you help me fix this problem ?
Thank in advance!
Best Regard.
Hi,
I am new to OpenSER or SER and am having problems registering users to
OpenSER. i had the Default user Admin registered to my softphone but am
unable to register my other users..
i am using mysql with openSER..
i saw the difference between the admin user that i had default in
Subsriber table and the user 'abc' that serctl added when i sed the
command
serctl add 'abc' 'abc' 'a(a)a.com' <mailto:'a(a)a.com'>
and i see the user added to the subscriber table with 1 difference....
The user abc is not having any value set for the confirmation field.
Any help would be appreciated..
thanks
krishna