Hi,
I was just wondering if the check_route_param("") works on
record_route_preset Routes?
It never hits when my Route: are, f.ex like
xxx.xxx.xxx.xxx:<port>;nat=yes
Is this true?
br hw
--
Helge Waastad
Senior Engineer
Systemavdelingen
Smartnet
Hi Javier,
Thanks for your information. I need to make SEP to
send/proxy the message to my presence server. SEP and presence server
are physically different entities. Would be of greater help if you could
let me know how can i specify the IP address of my presence server in
SEP so that the presence specific messages reaching SEP gets forwarded
to my presence server.
Thanks and Regards,
Senthil Kumar,
________________________________
From: Javier Ramirez [mailto:jvr_78@yahoo.com.ar]
Sent: 25 September 2006 15:03
To: Nachimuthu,SK,Senthil,XSD4C C
Subject: Re: [Serusers] Presence
if (method=="SUBSCRIBE") {
if (!t_newtran()) {
sl_reply_error();
};
handle_subscription("registrar");
};
if (method=="PUBLISH") {
if (!t_newtran()) {
log(1, "newtran error\n");
sl_reply_error();
};
handle_publish("registrar");
break;
};
----- Original Message -----
From: senthil.nachimuthu(a)bt.com
To: serusers(a)lists.iptel.org
Sent: Monday, September 25, 2006 8:28 AM
Subject: [Serusers] Presence
Hi,
I want to configure SER <file://ser/about> 0.9.6 in such
a way that It can proxy presence messages(SUBSCRIBE,PUBLISH) to presence
server. Can you let me know how can I do that?
Thanks and Regards,
Senthil Kumar,
Presence Capability,
BT-Service Execution Platform,
B62-MH,Orion Building,Adastral Park,Ipswich
Work:+44 (0)1473 605 668
Mobile:+44 (0)7772287447
__________ NOD32 1.1768 (20060922) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
________________________________
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
__________ NOD32 1.1768 (20060922) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
I try to call an ENUM number. I use this settings for it:
mpath="/usr/local/lib64/openser/modules/"
loadmodule "enum.so"
# -- enum params --
modparam("enum", "domain_suffix", "e164.arpa.")
route{
# -----------------------------------------------------------------
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
# -----------------------------------------------------------------
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
};
if (msg:len >= 4096 ) {
sl_send_reply("513", "Message too big");
exit;
};
# -----------------------------------------------------------------
# NAT detection
# -----------------------------------------------------------------
log("I am checking for NAT now\n");
route(2);
# -----------------------------------------------------------------
# if you want to make ENUM work with numbers starting with "00",
# use the following to convert "00" it into a "+"
# -----------------------------------------------------------------
log("I am checking for ENUM now\n");
if (uri=~"^sip:00[1-9][0-9]*@") { # tried before:
taipei\.elmit\.net") {
# strip leading "00"
# (change example.net to your domainname or skip the stuff after
the "@")
strip(2);
# (adjust, if your international prefix is something else than "00")
prefix("+");
};
# check if request uri starts with an international phone
# number (+X.), if yes, try to ENUM resolve in e164.arpa.
# if no result, try in nrenum.net
if (uri=~"sip:\+[0-9]+@") { # tried before:
taipei\.elmit\.net") {
# (change example.net to your domainname or skip the stuff after
the "@")
####if ( !enum_query("e164.arpa.") ) {
#### enum_query("nrenum.net.");
#### };
if (enum_query()) {
t_relay();
exit;
}
};
I tried to add some log statements, but I never see them in
/var/log/messages either.
Below is the ngrep output. It seems that it does not go anywhere in route()
Any ideas how to track it down?
bye
Ronald
Content-Type: application/sdp.
User-Agent: eyeBeam release 1005g stamp 32576.
Content-Length: 809.
.
v=0.
o=- 2 2 IN IP4 192.168.250.108.
s=CounterPath eyeBeam 1.5.
c=IN IP4 192.168.250.108.
t=0 0.
m=audio 48702 RTP/AVP 107 100 106 6 0 105 18 3 5 101.
a=alt:1 2 : O5/HQNzE iLXVkGqH 5.32.86.166 48702.
a=alt:2 1 : ok7vH1EF jO6dCAlm 192.168.250.108 48702.
a=fmtp:18 annexb=yes.
a=fmtp:101 0-15.
a=rtpmap:107 BV32/16000.
a=rtpmap:100 SPEEX/16000.
a=rtpmap:106 SPEEX-FEC/16000.
a=rtpmap:105 SPEEX-FEC/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.
a=sendrecv.
a=x-rtp-session-id:E4797B0FC1A140648811BD63523C3B70.
m=video 40488 RTP/AVP 125.
a=alt:1 2 : urVBRqXw O9lI2kQp 5.32.86.166 40488.
a=alt:2 1 : LCXVKz4X nxDzxq4V 192.168.250.108 40488.
a=fmtp:125 profile-level-id=42e015; max-br=4000; max-mbps=19800.
a=rtpmap:125 H264/90000.
a=sendrecv.
a=x-rtp-session-id:B8E2EE0EA3944D6DA47E5D98AABCD52B.
#
U 2006/09/28 16:57:11.567171 192.168.250.41:5060 -> 192.168.250.108:40430
SIP/2.0 404 Not Found.
Via: SIP/2.0/UDP
192.168.250.108:40430;branch=z9hG4bK-d87543-0c396723de34cf5a-1--d87543-;rport=40430.
To:
"00886228357765"<sip:00886228357765@192.168.250.41>;tag=329cfeaa6ded039da25ff8cbb8668bd2.e6c9.
From: "Ronald-taipei @ video "<sip:7311@192.168.250.41>;tag=3f7a5072.
Call-ID: YmQ0YzNiYmU4MDJjMjQ4YzAyZjJjMjZiYzA3ZGYxYTk..
CSeq: 1 INVITE.
Server: OpenSer (1.1.0-notls (x86_64/linux)).
Content-Length: 0.
Warning: 392 192.168.250.41:5060 "Noisy feedback tells: pid=11197
req_src_ip=192.168.250.108 req_src_port=40430
in_uri=sip:00886228357765@192.168.250.41
out_uri=sip:+886228357765@192.168.250.41 via_cnt==1".
.
#
U 2006/09/28 16:57:11.569258 192.168.250.108:40430 -> 192.168.250.41:5060
ACK sip:00886228357765@192.168.250.41 SIP/2.0.
Via: SIP/2.0/UDP
192.168.250.108:40430;branch=z9hG4bK-d87543-0c396723de34cf5a-1--d87543-;rport.
To:
"00886228357765"<sip:00886228357765@192.168.250.41>;tag=329cfeaa6ded039da25ff8cbb8668bd2.e6c9.
From: "Ronald-taipei @ video "<sip:7311@192.168.250.41>;tag=3f7a5072.
Call-ID: YmQ0YzNiYmU4MDJjMjQ4YzAyZjJjMjZiYzA3ZGYxYTk..
CSeq: 1 ACK.
Content-Length: 0.
.
Hi
I've installed openser dev 1.2 to test new acc module in my lab but
cant create DB in mysql server using ist openser_mysql, please see
this error:
]# openser_mysql.sh create
MySql password for root:
Domain (realm) for the default user 'admin': 10.0.1.231
creating database openser ...
/usr/local/sbin/openser_mysql.sh: line 262: method: command not found
/usr/local/sbin/openser_mysql.sh: line 262: from_uri: command not found
/usr/local/sbin/openser_mysql.sh: line 262: from_tag: command not found
/usr/local/sbin/openser_mysql.sh: line 262: to_uri: command not found
/usr/local/sbin/openser_mysql.sh: line 262: to_tag: command not found
/usr/local/sbin/openser_mysql.sh: line 262: callid: command not found
/usr/local/sbin/openser_mysql.sh: line 262: cseq_no: command not found
/usr/local/sbin/openser_mysql.sh: line 262: sip_code: command not found
/usr/local/sbin/openser_mysql.sh: line 262: sip_reason: command not found
real 0m0.000s
user 0m0.000s
sys 0m0.000s
/usr/local/sbin/openser_mysql.sh: line 262: callid: command not found
/usr/local/sbin/openser_mysql.sh: line 262: method: command not found
/usr/local/sbin/openser_mysql.sh: line 262: from_uri: command not found
/usr/local/sbin/openser_mysql.sh: line 262: from_tag: command not found
/usr/local/sbin/openser_mysql.sh: line 262: to_uri: command not found
/usr/local/sbin/openser_mysql.sh: line 262: to_tag: command not found
/usr/local/sbin/openser_mysql.sh: line 262: callid: command not found
/usr/local/sbin/openser_mysql.sh: line 262: cseq_no: command not found
/usr/local/sbin/openser_mysql.sh: line 262: sip_code: command not found
/usr/local/sbin/openser_mysql.sh: line 262: sip_reason: command not found
real 0m0.000s
user 0m0.000s
sys 0m0.000s
/usr/local/sbin/openser_mysql.sh: line 262: callid: command not found
ERROR 1064 (42000) at line 80: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL serverversion for the
right syntax to use near '=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wh'at line 2
HI,
The log of xlog are generated in messages. So i would like to know, what
i must do if i want that xlog send its information in an other file for
only one request L_WARN(...)
I want to use this request in order to do stats of connection of UA
Thx for your help.
Hello,
I run ser.0.9.6 and I can use
either
rewritehostport("1.2.3.4:5060");
or
rewritehostport("pstngw.foo.com:5060");
with t_relay() command on INVITE/PSTN handler in order
to route calls to a Cisco PSTN GW.
This works fine.
Is "DNS SRV queries" supported on ser.0.9.6 and is there a specific conf ?
thanx
Kostas
i have install the ser and it installed but i have some problem
1. first i am not able to run the ser command
2. i want to make the scripts for ser and mediaproxy but its show me one error
for running this command i am in /etc/init.d
when i am running this command chkconfig --add ser
error reading information on service ser: No such file or directory
please help me out
with regards
vijay
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
Hi,
I am about to enable TLS support although my current openser.cfg system
works fine and I do not particularly want to damage it, but I would like to
incorporate TLS. I was planning to save my current openser.cfg file and
just add the necessary TLS info and wonder if this can be done?
1) I understand that I can use both TLS(5061) and TCP(5060), so therefore
particular portions in my current openser.cfg should still work, is this a
proper assumption?
2) How would this affect users that are using port TCP(5061) ?
3) So when I remake with TLS support how will this affect the current
system?
4) Will the remake write over all files stored in /usr/local/etc/openser and
other openser directories?
5) Will the remake create new database tables, basiecally would I be able to
keep the current database structure I currently have without reloading
openser_mysql.sh?
6) In a nutshell, how will the remake negatively affect my current openser
system that I should be aware of?
I apologize for the lengthy amount of questions but I am just not sure in
these areas. Thanks in advance.
John
Hi Klaus and all other who read this.
It's not a problem of tcp socket - yesterday i rewrite gateway config for fowarding directed to extgateway requests to gateway itself.
In tcp this problems not occured, but after i switched on tls, i see overfilled queues again. In that case i haven't extgateway, communications with
remote sockets and etc. Did anybody test openser whith big payload? I think this problem occurs because in my case i have big traffic and several process that simultaniously use tls. Did anybody have the same problem?
>Hi Serega!
>
>I'm not sure - just a guess. openser uses "worker threads". This worker
>threads get a SIP message from the listener thread, process them, and
>then they send them.
>
>If for some reason the sending fails - e.g. the gateway sends via
>TCP/TLS to extgateway and extgateway's receiving queue is full. Then
>gateway's sending buffer gets full and the threads wait until they can
>send. Thus, as the threads are all busy, also the receiving queue of
>gateway gets full. I guess after some time the threads give up sending
>and will read again.
>
>The question is: why does the sending buffer gets full? Where is gateway
>sending the messages to?
>
>The sending queue must not get flushed. The queue is in the OS, not in
>openser. As TCP guarantees that there is no loss/reordering the TCP
>stack must not flush the queue.
>
>regards
>klaus
>
>serega wrote:
>> Hi all.
>>
>> I have next problem while using openser with tls. System consists of
>> sip statefull server (in next time, simply, server) and stateless sip
>> gateway (gateway). Server used for connect to jabber server. Server
>> contains rewrote jabber module logic and also use presence module.
>> Gateway used to connect to other sip gateway (extgateway) via tls
>> protocol. Gateway use 1.1 openser version and doesn’t contain changed
>> code. When server together with gateway restarts and server in its
>> database contains above 260 subscriptions (in watcherinfo table) i
>> have error. Socket used by gateway to connect with extgateway
>> contains in receive and sent queues a lot of data (above 50kByte on
>> each sides). This data never flushed out. This happens because after
>> restart sip server through gateway send notifications to extgateway.
>> When I attached using gdb to process that send data, I saw that it
>> was in infinity loop because tls library returns SSL_ERROR_WANT_WRITE
>> and I think it’s correct because we have overfilled send queue. In
>> this case I don’t interest why receive queue not empty (I think it
>> happens because sending process have got block on socket). But I
>> don’t understand why sent queue not flushed. I test this behavior
>> using tcp – all was correct. Socket not closed by other side because
>> this status can be unchanged above one day. Anybody can help me? Why
>> this happens?
>>
>> I use openssl-0.9.8c and redhat os (Linux xdevel1 2.4.21-4.ELsmp #1
>> SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux). Computer
>> have too Pentium 4 processors).
>>
>>
>> Gateway.cfg (sip.qa.hbex.com – gateway address):
>>
>> # # $Id: router_qa.cfg,v 1.1 2006/08/02 18:14:34 ilya Exp $ # #
>> simple quick-start config script #
>>
>> # ----------- global configuration parameters
>> ------------------------
>>
>> debug=9 # debug level (cmd line: -dddddddddd)
>> log_facility=LOG_LOCAL0 fork=yes log_stderror=yes # (cmd line: -E)
>>
>>
>> check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r)
>> rev_dns=no # (cmd. line: -R) children=20
>> fifo="/tmp/openser_fifo" server_signature=no
>>
>> fifo_db_url="mysql://root:@localhost/openser"
>>
>> listen = udp:sip.qa.hbex.com:5060 #incoming sip server address listen
>> = tcp:sip.qa.hbex.com:5060
>>
>> #tls address disable_tls = 0 listen = tls:sip.qa.hbex.com:5061 listen
>> = udp:sip.qa.hbex.com:5061
>>
>> tls_certificate = "/ home/inop/ex.com-cert.pem" tls_private_key =
>> "/home/inop/ex.com-privkey.pem" tls_ca_list =
>> "/home/inop/ex.com-calist.pem" tls_require_client_certificate=0
>> tls_verify_client=0 tls_verify_server=0
>>
>> # ------------------ module loading
>> ---------------------------------- loadmodule
>> "/home/interop/openser/lib/openser/modules/rr.so" loadmodule
>> "/home/interop/openser/lib/openser/modules/xlog.so" loadmodule
>> "/home/interop/openser/lib/openser/modules/textops.so" loadmodule
>> "/home/interop/openser/lib/openser/modules/maxfwd.so" loadmodule
>> "/home/interop/openser/lib/openser/modules/sl.so" loadmodule
>> "/home/interop/openser/lib/openser/modules/mysql.so" loadmodule
>> "/home/interop/openser/lib/openser/modules/tm_unchanged.so"
>> loadmodule "/home/interop/openser/lib/openser/modules/usrloc.so"
>> loadmodule "/home/interop/openser/lib/openser/modules/registrar.so"
>>
>> # ----------------- setting module-specific parameters
>> --------------- modparam("registrar", "default_expires", 120)
>> modparam("registrar", "use_domain", 1)
>>
>> modparam("usrloc", "use_domain", 1) modparam("usrloc", "db_mode",
>> 0) # Uncomment this if you want to use SQL database # for persistent
>> storage and comment the previous line #modparam("usrloc", "db_mode",
>> 2)
>>
>> # add value to ;lr param to make some broken UAs happy modparam("rr",
>> "enable_full_lr", 1) modparam("maxfwd", "max_limit", 10) #
>> ------------------------- request routing logic -------------------
>> # main routing logic route{ if (!mf_process_maxfwd_header("10")) {
>> sl_send_reply("483","To Many Hops"); drop(); }; if (dst_port==5061) {
>> if (search("^To:.*@.*cmnicator.com") || search("^To:.*@.*cihb.com"))
>> { # rewrite destination and forward to jabber (sip server) route(1);
>> return; }; sl_reply_error(); return; } if (method=="REGISTER") {
>> xlog("XXX: saving location msg=$mb\n"); if(!save_noreply("location"))
>> { log("XXX: Error saving location!\n"); sl_reply_error(); }
>> sl_send_reply("200","OK"); return; } if
>> (search("^To:.*@.*cmnicator.com") || search("^To:.*@.*cihb.com")) {
>> #forward to self route(3); return; } ##forward to ext gateway
>> route(2); }
>>
>> route[1]{ if (method!="MESSAGE" && method!="SUBSCRIBE" &&
>> method!="NOTIFY") { log("XXX: Request not forwarded to sip
>> server!\n"); sl_send_reply("202","Accepted"); return; }
>> t_on_reply("1"); record_route();
>>
>> if(!lookup("location")) { if (method!="SUBSCRIBE") { log("XXX: only
>> subscribes are processed for user that are not registered\n");
>> sl_reply_error(); return; }
>> subst_uri('/(.*)@(.*)/\1#\2*jabber.qa.im.hb.com@jabber01.qa.im.hb.com/ig');
>> if(!t_relay()) { log("XXX: error forwarding jabber01...\n");
>> sl_reply_error(); return; } else { sl_send_reply("200","OK"); return;
>> } } else { log("XXX: forwarding to the address of record...\n");
>> if(!t_relay()) { log("XXX: error forwarding to address of record
>> \n"); sl_reply_error(); return; } else { sl_send_reply("200", "OK");
>> return; } }
>>
>> }
>>
>> # forwarding to external gateway route[2]{ log("XXX: rewriting
>> headers\n");
>> subst('/^(From:[^@#]*)#([^@]*)\*jabber.qa.im.hb.com@jabber...qa.im.hb.com(.*)/\1@\2\3/ig');
>>
>> subst('/^(Contact:[^@#]*)#([^@]*)\*jabber.qa.im.hb.com@jabber...qa.im.hb.com(.*)/\1@\2\3/ig');
>>
>>
>> if(!forward("tls:43.123.141.166:3000")) { log("XXX: Error forwarding
>> to external gateway!\n"); sl_reply_error(); } else {
>> sl_send_reply("200", "Accepted"); }; }
>>
>> # forwarding to SELF route[3]{ log("XXX: rewriting headers\n");
>> subst('/^(From:[^@#]*)#([^@]*)\*jabber.qa.im.hb.com@jabber...qa.im.hb.com(.*)/\1@\2\3/ig');
>>
>> subst('/^(Contact:[^@#]*)#([^@]*)\*jabber.qa.im.hb.com@jabber...qa.im.hb.com(.*)/\1@\2\3/ig');
>>
>>
>> log("XXX: about to forward to self\n");
>> if(!forward("tcp:sip.qa.hbex.com:5061")) { log("XXX: Error forwarding
>> to self!\n"); sl_reply_error(); } else { sl_send_reply("200",
>> "Accepted"); }; }
>>
>> # this is executed for replies onreply_route[1]{
>> subst('/^(To:[^@#]*)#([^@]*)\*jabber.qa.im.hb.com@jabber...qa.im.hb.com(.*)/\1@\2\3/ig');
>>
>> subst('/^(Contact:[^@#]*)#([^@]*)\*jabber.qa.im.hb.com@jabber...qa.im.hb.com(.*)/\1@\2\3/ig');
>> route(2); }
>>
>>
>>
>> _______________________________________________ Users mailing list
>> Users(a)openser.org http://openser.org/cgi-bin/mailman/listinfo/users
>
>