Hi everybody,
I just committed on CVS full support for per-branch flags.
What's the difference between the flags we already have and these new
one? So far we ave in OpenSER flags that will be called "global" flags -
global because they were visible everywhere in the transaction (in all
routes and in all sequential replies/request). The new flags, called
"branch" flags are flags that will be visible only for a specific branch
- in all replies and routes connected to this branch.
For example: I have a call parallel forking to GW and to a user. And I
would like to know from which branch I will get the final negative reply
(if so). I will set a branch route before relaying the calls (with the 2
branches). The branch route will be separately executed for each branch;
in the branch going to GW (I can identified it by looking to RURI), I
will set a branch flag. This flag will appear only in the onreply route
run for replied from GW. It will be also be visible in failure route if
the final elected reply belongs to the GW branch. This flags will not be
visible in the other branch (in routes executing replies from the other
branch).
how to use it?
The request flags may be split in two arrays - globals and branch flags
- by using the TM parameter "branch_flag_mask" (see
http://www.openser.org/docs/modules/0.10.x/tm.html#AEN268). Flags
covered by this mask will be processed as branch flags, the rest of them
as global flags.
Also, modules may set branch flags before transaction creation (for the
moment this feature is not available in script). The REGISTRAR module is
the first to use this feature. If the "use_branch_flags" param is
enabled (see
http://www.openser.org/docs/modules/0.10.x/registrar.html#AEN236), the
NAT flag will be push in branch flags instead in message flags -
IMPORTANT: be sure that NAT flag is in the range of the branch flags ad
defined in TM. Using this, NAT traversal per branch may be experimented....
regards,
bogdan
Hi,
I'd like to announce an experimental module for SER-0.9.x which provides
a cacheless user location implementation.
It's fully compatible with the original usrloc module (well, in fact you
have to apply a small patch to assure full compatibility, but this patch
doesn't hurt if you switch back to the original usrloc module).
It currently only supports MySQL as backend because some MySQL specific
queries are used.
Also the watcher/callback API isn't tested, so you currently better not
use it in combination with the pa module.
You can find the module and a short howto here:
http://linguin.org/ser.php#usrloc_db
Please note that this module is very experimental. Any feedback is
highly appreciated.
Andy
Hello,
I recently upgraded to ser 0.9.3 and I noticed that there's a new entry
in the serctl usages document:
pa pres <p_uri> <pstate> .......set pstate for a presentity
pa loc <p_uri><loc>.........set a location for a presentity
Am I correct in assuming that the first command allows a a subscribers
"availability" or presence state to be set? i.e. "busy", "unavailable"
etc or is this limited to "online", "offline"?
Also with the second command, does this represent something like a
presentities current location i.e. office etc? If not, what does it
represent or how should it be used syntactically?
Based on my assumptions above, I tried "serctl pa loc aisling(a)x.x.x.x
office" and the following errors occurred (SER was also killed):
submit_query(): Unknown column 'pdomain' in 'where clause'.
submit_query(): Error while submitting query
pdomain_load_presentities: Error while querying presentity
submit_query(): Unknown column 'pdomain' in 'where clause'.
submit_query(): Error while submitting query
new_presentity: Error while querying presentity
child process 10644 exited by signal 11
core was generated
INFO: signal 15 received
INFO: signal 15 received
INFO: signal 15 received
INFO: signal 15 received
Etc etc
BUG: shutdown timeout triggered, dying..
Regards,
Aisling.
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
Hi
I am have a problem connecting to the MySql database. I am running
Fedora Core 3, ser 0.8.12 (i386/linux), mysql Ver 12.22 Distrib
4.0.24, for pc-linux-gnu (i686).
In ser.cfg I have chosen to use the MySql database, and attempt to
authenticate using either of (I have tried both at seperate times):
modparam("auth_db", "db_url", "sql://root:XXXX@localhost/ser")
modparam("auth_db", "db_url", "sql://ser:heslo@localhost/ser")
both of which result in:
0(4971) connect_db(): Access denied for user: 'ser@localhost' (Using
password: YES)
0(4971) db_init(): Error while trying to connect database
0(4971) mod_init(): Error while connecting database
0(4971) init_mod(): Error while initializing module usrloc
However:
# mysql -user -p
Enter password:heslo
AND
# mysql -user -p
Enter password:XXXX
both work.
Even if I attempt to connect using sql://root:XXXX@localhost/ser, do I
get access denied to user ser?
I have not changed the default password 'heslo' for the ser mysql user
yet. I have also not changed the DEFAULT_DB_URL in config.h.
I presume this is not a bug in SER or anything like that however, and
teh credentials are correct on the MySql side, so I am stuck. Does
anyone have a suggestion?
Thanks in advance
Adam
Hi,everyone!
I wanna to use ser to manage the uers in our group, the process is :
First,I update the Makefile of SER-0.9.3 to make mysql module,like follows:
modules:=$(addprefix modules/,mysql) \
$(modules)
then, I compile it,it prompts me that "can't find the file <mysql/mysql.h>"
Secondly, i download mysql-standard-4.1.12-pc-linux-gnu-i686.tar.gz from mysql.com,and
mkdir /ser-0.9.3/modules/mysql/mysql
copy /usr/local/mysql/include/*.h /ser-0.9.3/modules/mysql/mysql
Then, i compile ser again, and i get the targets like mysql.so,ser, serctl and so on.
Next, i install the mysql from mysql-standard-4.1.12-pc-linux-gnu-i686.tar.gz
according to the INSTALL-BINARY document.
then i start the ser ,
cd /usr/local/sbin
ser_mysql.sh create
ser
the problem is while i use "serctl add tieban 123456 tieban(a)sina.com",it prompts me that:
$ serctl add viking 123456 tieban(a)sina.com
MySql password:
error: 400; check if you use aliases in SER
How can i to make it, any suggestions will be appreciated. thx.
viking
tieban(a)sina.com
2005-09-02
Hi,
Similar to retrieving custom attribute pair values from a radius
response, isn't there any module/technique to add more attribute value pairs
to the radius request. OR if one modifies the ser source, will there by any
change required in corresponding radiusclient dictionary at the ser's side.
Regards,
Ashutosh Kumar
Chetu, Inc.
Ph : 1(305) 402 6724 - Witin US
Ph : 91 120 5323340 - Outside US
Fax:1 (305) 832 5987
For more information, please visit http://www.chetu.com
Has anyone come across this problem before??
I have the same configuration for each of the following except the first
session is going thru a Linksys router and the second one goes thru a Dlink
router.
The first session works fine, the second session has one way audio. The only
difference in the traces is in the following lines.
Session one
Via: SIP/2.0/UDP
192.168.1.108:5060;rport=5060;received=199.227.155.139;branch=z9hG4bK-389cba
09
Session two
Via: SIP/2.0/UDP
192.168.1.40:5060;rport=61034;received=199.227.155.135;branch=z9hG4bK-349caf
af
I have the following in ser.cfg to correct for a NATed UAC
if(nat_uac_test("3")) {
xlog("L_ALERT", "%Tf %mf ****** NATed UAC detected.\n");
fix_nated_contact();
force_rport();
if(method == "INVITE") {
fix_nated_sdp("3");
};
};
And
onreply_route[1] {
xlog("L_ALERT", "%Tf %mf ****** On Reply From: <%si> <%tu> <%fu>
<%rm> <%rs> <%rr>\n");
if(status=~"(183)|(2[0-9][0-9])" && nat_uac_test("3")) {
xlog("L_ALERT", "%Tf %mf ****** Fixing contact on reply\n");
fix_nated_contact();
force_rport();
fix_nated_sdp("3");
};
Can anyone help
Thanks for your reply
Rick Thompson, CCNA
VP of Technology
Virtual Communications, LLC
O 954-334-4000 ext 420
M 954-217-7322
F 954-252-4580
HI,
My BYE's are not getting accounted in the mysql DB, though all
other messages are getting reflected. I have put setflag for all messages,
at the beginning of cfg.
My relevant ser.cfg code is following.
.....
.....
if (loose_route()) {
if (has_totag() && (method=="INVITE" || method=="ACK")) {
if (client_nat_test("3") ||
search("^Route:.*;nat=yes")) {
setflag(6);
use_media_proxy();
};
};
route(1);
break;
};
setflag(1);
.....
.....
Please guide.
Regards,
Ashutosh Kumar