Samuel,
yes it is related to. The resolution of SER-263 was wrong and every test
like if (@select=="") has returned false, even the return value of
the select was empty string.
But, there is another problem I see in the config (including the example
script)...
There is difference between the (@select) test and (@select!="") one.
The latter returns false, if the select framework returns N/A value
(e.g. non present header/parameter).
Intended behaviour was: @X is @route[1].params.lr in this example
(as the tag must have value if present rfc3261 19.3)
lr parameter test result
not present @X false
!@X true
@X=="" FALSE*
@X!="" FALSE*
lr @X true
!@X false
@X=="" true
@X!="" false
lr=123 @X true
!@X false
@X=="" false
@X!="" true
As I see the from the example ser.cfg, the tests are done in the
(@to.tag=="") way, which won't work if the to.tag would return either
N/A or the tag value. But it seems it returns the empty string even if
not present, because it was previously working.
So I ask the community (especially TB potential members) do we want to
take care about the select N/A value differently, or shall we make it
equal to empty string?
Note, that if the answer is yes, it will be very hard to differentiate
between parameter not present and parameter without value - well the lr
parameter is handled internally, but what others?
If the anwser is no, keep special N/A value handling, the select must be
reviewed together with the ser.cfg, because (@to.tag=="") will be false
for every tag (because it must have value).
Michal
On Čt, 2007-06-07 at 13:56 +0200, samuel wrote:
> Michal,
>
> I've just post a question to users' list about not properly detecting
> @to.tag=="".
>
> Is this bug related to it??
>
> Thanks,
> Samuel.
>
> 2007/6/7, Michal Matyska (JIRA) < tracker(a)iptel.org>:
> [ http://tracker.iptel.org/browse/SER-263?page=all ]
>
> Michal Matyska reopened SER-263:
> --------------------------------
>
>
> The way it is now resolved is wrong. If the select returns
> empty string the script test if (@select=="") is false.
>
> > Using @select=~ "regexp" causes segmentation fault
> > --------------------------------------------------
> >
> > Key: SER-263
> > URL: http://tracker.iptel.org/browse/SER-263
> > Project: SER
> > Issue Type: Bug
> > Components: core, Selects
> > Affects Versions: 2.0, Ipteldorf
> > Environment: CVS head
> > Reporter: Michal Matyska
> > Assigned To: Michal Matyska
> > Priority: Minor
> > Fix For: 2.0, Ipteldorf
> >
> >
> > If the result of the select is empty string or it is
> STR_STATIC_INIT ( e.g. @uri.type) the prepatation of left
> operand (putting \0 behind the string) causes segmentation
> fault .
> > Program received signal SIGSEGV, Segmentation fault.
> > comp_str (op=11, left=0xbfad27a4, rtype=5, r=0x81932b0,
> msg=0x81a1034) at route.c:668
> > 668 left->s[left->len]='\0';
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the
> administrators:
> http://tracker.iptel.org/secure/Administrators.jspa
> -
> For more information on JIRA, see:
> http://www.atlassian.com/software/jira
>
>
> _______________________________________________
> Serdev mailing list
> Serdev(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serdev
>
> _______________________________________________
> Serdev mailing list
> Serdev(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serdev
Hi All, how are you?
They forgive simple question, but I am looking at the documentation of the
project to openser and I do not obtain to understand very well what I must
configure and as to configure openser, to also interconnect with one
asterisk and with a supplier SIP. They could help me in as to make this?
Best Regards
Diogo
_________________________________________________________________
Verificador de Segurança do Windows Live OneCare: combata já vírus e outras
ameaças! http://onecare.live.com/site/pt-br/default.htm
sunkara wrote:
use this function " t_write_unix("/tmp/sems_sock "
the t_write_reg is not there in OpenSER,
in global configuration ... describer openser_sock
in the sems.conf ... mention the openser_sock
i hope this help u
I use unix function and change openser.cfg and edit sems.conf
openser-1.2.1
sems-0.10.0-rc2
This is my openser.cfg
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no # (cmd line: -E)
children=4
port=5060
unix_sock="/tmp/openser_sock"
mpath="/usr/local/lib/openser/modules/"
loadmodule "mysql.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "mi_fifo.so"
loadmodule "avpops.so"
loadmodule "exec.so"
modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")
modparam("usrloc", "db_mode", 0)
modparam("tm", "fr_inv_timer", 15000)
modparam("tm", "pass_provisional_replies", 1)
modparam("rr", "enable_full_lr", 1)
modparam("avpops", "avp_url", "mysql://ser:heslo@localhost/ser")
modparam("avpops", "avp_table", "subscriber")
#modparam("avpops", "uuid_cloumn", "id")
#modparam("avpops", "username_cloumn", "username")
modparam("avpops", "db_scheme",
"email_scheme:table=subscriber;value_col=email_address;value_type=string")
modparam("tm", "tw_append", "voicemail_headers:
UA=$hdr(User-Agent);P-Email-Address=$avp(s:email)")
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
};
if (msg:len >= 2048 ) {
sl_send_reply("513", "Message too big");
exit;
};
if (!method=="REGISTER")
record_route();
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
};
if (!uri==myself) {
append_hf("P-hint: outbound\r\n");
route(1);
};
if (uri==myself) {
if (method=="REGISTER") {
save("location");
exit;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
};
if (!lookup("location")) {
if (!t_newtran()){
sl_send_reply("500", "could not create new transaction");
exit;
};
avp_db_load("$ru/username", "$avp(s:email)/$email_scheme");
if (!t_write_unix("/tmp/sems_sock", "voicemail/voicemail_headers")){
t_reply("500", "aaaaa");
exit;
};
};
append_hf("P-hint: usrloc applied\r\n");
};
route(1);
}
route[1] {
if (!t_relay()) {
sl_reply_error();
};
exit;
}
This is my sems.conf
plugin_config_path=/usr/local/etc/sems/etc/
fork=yes
stderr=no
loglevel=2
socket_name=/tmp/sems_sock
reply_socket_name=/tmp/sems_reply_sock
ser_socket_name=/tmp/openser_sock
send_method=socket
plugin_path=/usr/local/lib/sems/plug-in
smtp_server=localhost
smtp_port=25
rtp_low_port=10000
rtp_high_port=60000
media_processor_threads=1
But error msssgae is server error occurred(1/SL)
error log is
Jun 8 15:58:10 host /usr/local/sbin/openser[1462]:
ERROR:tm:t_forward_nonack: no branch for forwarding
Jun 8 15:58:10 host /usr/local/sbin/openser[1462]: ERROR:tm:w_t_relay:
t_forward_nonack faile
I can not find problem What is error with my configuration?
Thank you for your reply.
Chungyu
Hi All!
i'm trying to use regular expression that is a value of AVP.
for example:
$avp(s:regexp) = '^([1-9][0-9]{6})';
$avp(s:value) = '8881\1';
subst_user('/$avp(s:regexp)/$avp(s:value)/');
and it doesn't work. meanwhile this works properly:
subst_user('/^([0-9]{7})/888\1/');
Does anybody know how can i resolve this question?
Best regards,
Savolainen Dmitri
Here's the ser.cfg that i've changed to enable accounting in MySql.
But I still don't see anything in the database. Isn't it supposed to
show up in acc table?
Thank You
kumar
On 6/7/07, Eneref <eneref(a)arcdiv.com> wrote:
> Is there a convenient way to write both in SER 2.0? In SER 0.9.6, I
> simply had 1 flag, and the acc module abstracted all the necessary
> details out for me. Depending upon how I'd compiled it, my 1 flag
> allowed me to write to mysql, syslog, and/or radius in whatever
> combination I wished.
>
> Now that the abstraction of a single, simple logging class has been
> replaced by the increased complexity of 3 separate logging classes, that
> methodology is no longer possible. Does one now simply set several flags
> at each turn to determine where to log the data?
>
> N.
>
>
> Hendrik Scholz wrote:
> > Hi!
> >
> > KUMAR wrote:
> >
> >> Thank you Hendrik for pointing out the mistake. But I also cannot see
> >> any accounting information in the MySql Database. Can you tell me why?
> >> Obviouly I am missing something here.
> >>
> >
> > You are using acc_syslog and not acc_db.
> > acc_syslog writes syslog entries whereas acc_db relies on a database
> > backend.
> >
> > Cheers,
> > Hendrik
> >
> >
>
>
Hi all,
I have problem with dispatcher following:
When i see in proxydispatcher have support "Distributed geographical
location"
I call setup call: caller (from: 101(a)hanoi.openser.com) ---->
callee(200(a)danang.openser.com). In openser.cfg i use "use_media_proxy();"
and
"modparam("mediaproxy","mediaproxy_socket","/var/run/proxydispatcher.sock")"
I set defaultProxy = None in mediaproxy.ini file to dispatcher selected
mediaproxy based on the SIP domain of the caller/destination using DNS
SRV records.
On DNS i have mediaproxy for domain hanoi.openser.com is
media1.hanoi.openser.com, for domain danang.openser.com is
media1.danang.openser.com
But dispatcher no select domain based on the SIP domain of the
caller/destination.
Please help me.
Thanks.
Hello list.
I am upgrading Openser to version 1.2.1, and I am having a core dumping when
configuring snmpstats module; it starts fine, but, at any event which causes
interaction with snmpstat module (user registration) it crashes.
My Scenario:
Solaris 10 on Sparc
Openser 1.2.1
NET-SNMP 5.4
GCC 4.0.4
Below appears the backtrace of the core.
#0 0x00000000 in ?? ()
#1 0xfe989540 in createRowsFromIPList (theList=0x1731e8, listSize=1,
protocol=0, snmpIndex=0x0) at openserSIPPortTable.c:125
#2 0xfe9898b8 in init_openserSIPPortTable () at openserSIPPortTable.c:241
#3 0xfe98d1bc in spawn_agentx_child () at sub_agent.c:74
#4 0xfe98c778 in mod_child_init (rank=0) at snmpstats.c:271
#5 0x0008c3c8 in init_mod_child (m=0x80, rank=0, type=0xe9570 "PROC_MAIN")
at sr_module.c:400
#6 0x0008c4f0 in init_child (rank=0) at sr_module.c:394
#7 0x00039608 in main_loop () at main.c:948
#8 0x0003b178 in main (argc=1118208, argv=0x302) at main.c:1399
Thanks in advance for every help.
Kind regards
Sergio Gutiérrez
UNE EPM Telecomunicaciones
Medellin - Colombia
if you see nothing coming out, I would dirst check logs and then look at
what is running over loopback interface, just to be able to better narrow down
the problem.
-jiri
At 15:39 07/06/2007, flavio wrote:
>Hi all,
>I'm testing ser/serweb for multiple domains support.
>I've successfully configured serweb to manage my default domain
>(10.28.19.202, ip address for pc on which ser running) and edavoip
>(another test domain, configured through an Apache virtual hosting, on
>the same).
>So I try to register a UAC to edavoip ser domain: I've configure the
>same pc as DNS, in order to resolv edavoip with the right ip address
>(10.28.19.202).
>The risult is that REGISTER SIP message is sent properly to
>10.28.19.202 but ser does not reply to message, as followed reported
>by ngrep lines:
>
>U 2007/06/07 15:28:22.913028 10.28.19.124:5060 -> 10.28.19.202:5060
>REGISTER sip:edavoip SIP/2.0.
>Via: SIP/2.0/UDP 10.28.19.124;branch=z9hG4bK21175bf079b2b794.
>From: <sip:0192091221@edavoip>;tag=ec22721991ce1308.
>To: <sip:0192091221@edavoip>.
>Contact: <sip:0192091221@10.28.19.124>.
>Supported: replaces.
>Call-ID: b9ed1773b0c8ad7b(a)10.28.19.124.
>CSeq: 100 REGISTER.
>Expires: 3600.
>User-Agent: Grandstream BT110 1.0.8.12.
>Max-Forwards: 70.
>Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE.
>Content-Length: 0.
>
>U 2007/06/07 15:28:23.302718 10.28.19.202:5060 -> 10.28.19.202:5060
>REGISTER sip:edavoip SIP/2.0.
>Via: SIP/2.0/UDP 10.28.19.202;branch=z9hG4bKc834.9dd67847.0.
>Via: SIP/2.0/UDP 10.28.19.124;branch=z9hG4bK353ff63bd2e31b1b.
>From: <sip:0192091221@edavoip>;tag=ec22721991ce1308.
>To: <sip:0192091221@edavoip>.
>Contact: <sip:0192091221@10.28.19.124>.
>Supported: replaces.
>Call-ID: ba27f6c1646bbb9d(a)10.28.19.124.
>CSeq: 100 REGISTER.
>Expires: 3600.
>User-Agent: Grandstream BT110 1.0.8.12.
>Max-Forwards: 16.
>Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE.
>Content-Length: 0.
>
>Any suggestion about this issue??
>
>Thanks for support,
>
>Flavio
>
>--
>********************************
>* (o< ing. Patria Flavio
>* //\ phone 0823451358
>* V_/_ mobile 3407873357
>*
>********************************
>_______________________________________________
>Serusers mailing list
>Serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
--
Jiri Kuthan http://iptel.org/~jiri/
Hi all:
I want to inetgrating SEMS and openser, use SEMS for sending voicemail.
openser version is 1.2.1
sems(sip express media server) vsersion is 0.9.x
This is my configuration on openser.cfg. If user is offline then send voicemail.
loadmodule "mysql.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "mi_fifo.so"
loadmodule "avpops.so"
modparam("avpops", "avp_url", "mysql://ser:heslo@localhost/ser")
modparam("avpops", "avp_table", "subscriber")
modparam("avpops", "uuid_cloumn", "uuid")
modparam("avpops", "username_cloumn", "username")
modparam("avpops", "db_scheme", "email_scheme:table=subscriber;value_col=email_address;value_type=string")
modparam("tm", "tw_append", "voicemail_headers: UA=$hdr(User-Agent);P-Email-Address=$avp(s:email)")
...
...
...
if (!lookup("location")) {
if (!t_newtran()){
sl_send_reply("500", "could not create new transaction");
exit;
};
avp_db_load("$ru/username", "$avp(s:email)/$email_scheme");
if (!t_write_req("/tmp/am_fifo", "voicemail/voicemail_headers")){
t_reply("500", "could not connect sems");
exit;
};
};
....
The SEMS has started but system reply "server error occurred(1/SL)".
And error message list:
Jun 7 19:13:35 host /usr/local/sbin/openser[28470]: ERROR:tm:t_should_relayy_response: pick_branch failed (lowest==-1) for code 408
Jun 7 19:13:35 host last message repeated 7 times
Jun 7 19:13:39 host /usr/local/sbin/openser[28470]: ERROR:tm:t_forward_nonack: no branch for forwarding
Jun 7 19:13:39 host /usr/local/sbin/openser[28470]: ERROR:tm:w_t_relay: t_forward_nonack failed
Jun 7 19:13:39 host Sems[73979]: Error: (AmRequest.cpp)(reply)(335): AmRequestUAS::reply: 400 Too few or too many arguments
Jun 7 19:13:39 host Sems[73979]: Error: (AmRequest.cpp)(reply)(335): AmRequestUAS::reply: 400 Too few or too many arguments
Jun 7 19:13:39 host Sems[73979]: Error: (AmSession.cpp)(run)(193): 500 could not send response.
Jun 7 19:13:39 host Sems[73979]: Error: (AmRequest.cpp)(reply)(335): AmRequestUAS::reply: 400 Too few or too many arguments
Jun 7 19:13:39 host last message repeated 2 times
Jun 7 19:13:39 host Sems[73979]: Error: (AmSession.cpp)(run)(193): 500 could not send response.
Jun 7 19:13:39 host Sems[73979]: Error: (AmRequest.cpp)(reply)(335): AmRequestUAS::reply: 400 Too few or too many arguments
What's problem with my configuration?
Thank you for your reply.
Chungyu