I want to use the RURI username in an avp query.
I've seen a bunch of different ways to select it.
Which way is correct?
I am currently using $ruri/username, because I got an error with $rU.
http://openser.org/docs/pseudo-variables.html shows '$rU', which
complains when
I try to reference that.
Aug 21 06:55:58 www openser[89119]: ERROR:avpops:fixup_pushto_avp:
unsupported destination "$rU"; expected $ru,$du,$br
Aug 21 06:55:58 www openser[89119]: ERROR: fix_actions: fixing failed
(code=-1) at cfg line 82
It's weird, the source code in items.c reads:
{{"ru", (sizeof("ru")-1)}, /* */
{ XL_RURI, 0, xl_get_ruri, {{0, 0}, 0}, {0, 0}}},
{{"ruri", (sizeof("ruri")-1)}, /* */
{ XL_RURI, 0, xl_get_ruri, {{0, 0}, 0}, {0, 0}}},
{{"rU", (sizeof("rU")-1)}, /* */
{ XL_RURI_USERNAME, 0, xl_get_ruri_attr, {{0, 1},
0}, {0, 0}}},
Is there a list of the variables that are available in an avp operation?
-g
Hi,
Can the To and From fields in a SIP INVITE message be modified in SER?
I know that the Request URI can be modified but i also need to modify the To
field.
Thanks.
sato.
Dear all,
Thank you very much to all of you for help me to answer my question about serweb before.
So, based on your suggestion, I tried to install serweb 0.9.3 for my openser server.
But, when I tried to install it, I am confused. I don`t understand about the installation note that I have got from untar the serweb 0.9.3 packet.
These are some questions that I need to ask:
1. Where should we untar the serweb 0.9.3 packet? Should we untar it in root or anywhere we like?
Because when we untar it, there will be a serweb folder in the location where we untar it (for example, when we untar the packet in root there will be a serweb directory in root) . This serweb folder also contain html directory and phplib directory.
As I know, There are also html directory in /root/var/www.
So, What directory should I use? Should I delete the html directory and phplib directory in /root/var/www/?
2. Is there any relationship between the html directory in /root/var/www and html directory from /root/serweb?
Which one should I use?
3. In the installation note I got this message :
"install it, unpack the distibution on your webserver so that the directory html is in document root and phplib is not accessible via web"
Can anybody help me to explain what this message means? and give me an example?
4. If I can make a wish for all of you, I do hope anybody can share the serweb configuration that she/he has configured to me. So, it can become the guidelines for me.
That `s all the question that I got when I tried to install the serweb. I am confused. I do hope anybody can help me because I am new in this system.
Thank you very much for your help. Thanks
Regards,
Ferianto
---------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
I'm trying to use the LCR module to do a failover between two gateways.
For testing purposes, I have a gateway record pointed at an IP that
isn't used. The problem is, I can't seem to get OpenSER to fail over to
the other gateway. I want to use TCP (with TLS when I'm done), but I get
this:
Jul 20 15:36:57 asiago /usr/sbin/openser[11896]: route[6]: routing to
INVITE sip:MYDID@MYIPADDRESS:5060;transport=tcp
Jul 20 15:37:17 asiago /usr/sbin/openser[11896]: ERROR:
tcp_blocking_connect: timeout (10)
Jul 20 15:37:17 asiago /usr/sbin/openser[11896]: ERROR: tcpconn_connect:
tcp_blocking_connect failed
Jul 20 15:37:17 asiago /usr/sbin/openser[11896]: ERROR: tcp_send:
connect failed
Jul 20 15:37:17 asiago /usr/sbin/openser[11896]: msg_send: ERROR:
tcp_send failed
Jul 20 15:37:17 asiago /usr/sbin/openser[11896]:
ERROR:tm:t_forward_nonack: sending request failed
(IP and username censored.)
OpenSER sends this to the caller:
SIP/2.0 477 Unfortunately error on sending to next hop occurred (477/TM)
Why can't I catch this with either the return code from t_relay or the
failure route?
It will go to the failure route if I get a reply back from the next hop.
But I need to fail to the other gateway.
The relevent parts of the configs are shown below. (Addresses censored.)
Any help would greatly appreciated.
Thanks,
---Nathan
Config snippet:
# ok, so maybe try a gateway...
if( load_gws() ) {
xlog("L_INFO","route[3]: gateway routing $rm $ru");
t_on_failure("1");
route(6);
return;
}
}
route[6] {
xlog("L_INFO","route[6]: $rm $ru");
t_on_failure("1");
t_on_reply("1");
if (!next_gw()) {
xlog("L_INFO","route[6]: no more gateways for $ru");
exit;
}
xlog("L_INFO","route[6]: routing to $rm $ru");
if(!t_relay()) {
xlog("L_INFO","route[6]: t_relay returned $rc");
sl_reply_error();
}
return;
}
failure_route[1] {
xlog("L_INFO","failure_route[1]: $rm $ru");
t_on_failure("1");
if(t_check_status("404")) {
xlog("L_INFO","failure_route[1]: failing call with 404 for $ru");
return;
}
if (!next_gw()) {
xlog("L_INFO","route[6]: no more gateways for $ru");
exit;
}
append_branch();
xlog("L_INFO","failure_route[1]: sending $rm $ru");
if(!t_relay()) {
xlog("L_INFO","route[6]: t_relay returned $rc");
}
return;
}
Gateways:
mysql> select * from gw where grp_id=4;
+---------+--------+-----------+------+------------+-----------+--------+
| gw_name | grp_id | ip_addr | port | uri_scheme | transport | prefix |
+---------+--------+-----------+------+------------+-----------+--------+
| ithaka | 4 | CENSORED | 5060 | NULL | 2 | NULL |
| larink | 4 | BAD_ADDRESS | 5060 | NULL | 2 | NULL |
+---------+--------+-----------+------+------------+-----------+--------+
2 rows in set (0.00 sec)
ithaka is a working OpenSER proxy. larink is an empty IP address. (There
used to be a server named larink.)
Hi All,
I'm tired of manually editing text files.
What solutions are available for avoiding manual editing and saving of Cisco .cnf files for individual phones while using SER or OpenSER? I've got 80+ phones in my organization and I'm tired of manually managing the phone .cnf files
I'm imagining some piece of code that auto-generates the files on command or on a schedule based on entries in the MySQL database. Maybe a column can be added to the Subscriber table or somewhere that holds the MAC address of the phone?
Or is there a way to get the phone to get its default config via TFTP and its user information via http?
Thanks,
M
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
If a message body is modified by both force_rtp_proxy() and replace(
"^Content-Length:", "l:" ) then the resulting message is corrupted.
The message size is updated but the header field name appear in both the
short and long form. Here it is an example:
l:Content-Length: 403
The result is the same if I reverse the order of the two operations too.
BTW, I use that replace call (and others) when the message is large to
prevent it to fragment.
Bye.
--
___________________________________________________
__
|- giannici(a)neomedia.it
|ederico Giannici http://www.neomedia.it
___________________________________________________
Hi all,
Has anyone tried SER + SEMS in TCP mode yet? I mean the UAs use TCP as
transport protocol. I am able to setup SEMS as a conference server. I found
"transport=TCP" is missing in the Contact header in the 200ok/SDP after SEMS
answers the call. Eyebeam seems not like it and does not response to that
200ok. Result is SER keeps sending that 200ok/SDP till timeout.
I tried to use textop module to catch that 200ok then replace the Contact
header with a correct one but SER and SEMS communicate via fifo so I am not
able to do so. Can anyone help me solve this issue please?
cheers,
Patrick