Hey guys,
Many apologies if im just being totally dense on this one, but I've been
going back and forth for a few days now, and given how new the presence
module is there doesn't seem to be huge amounts of documentation on it.
I'm attempting to get the PA module for the latest (as of a few days
ago) CVS to work. All other config bits in ser seem to work fine. I
think perhaps my confusion is also about how it's supposed to work!
Perhaps if I could ask some questions, people could fill in where they
know the answers, or point me to the right place.
I had in my config:
if (method=="SUBSCRIBE" || method=="PUBLISH") { # BEGIN
method==subscribe
if (t_newtran()) {
log(1,"PRESENCE: Change of state detected\n");
handle_subscription("registrar");
break;
};
};
And like this, a presence aware client could register ok, and I could
see from the debug outputs that they had registered, and when I tried to
add new contacts to the "buddy list" subscribe requests were being
issued. However, I have not yet seen any publish requests. Do I need
to use the function handle_publish? Whenever this subscribe request
happened, I see some errors in the syslog:
Oct 5 10:59:52 sip ser[15409]: PRESENCE: Change of state detected
Oct 5 10:59:52 sip ser[15409]: handle_subscription() entered
Oct 5 10:59:52 sip ser[15409]: parse_hfs(): Error while parsing headers
Oct 5 10:59:52 sip ser[15409]: handle_subscription(): Error while
parsing message header
Oct 5 10:59:52 sip ser[15409]: handle_subscription about to send_reply
and return -2
Also, I am a bit confused about registrations... as there is the
function pa_handle_registration... Originally I did not modify the
registration code, but when I tried to add this:
if (method=="REGISTER") { # BEGIN method==Register checking
if(t_newtran()){
pa_handle_registration("registrar");
break;
};
... etc, before my regular registration code, normal (voice) clients
could no longer register and I got errors such as :
Oct 5 11:02:59 sip ser[15706]: parse_hfs(): Error while parsing headers
Oct 5 11:02:59 sip ser[15706]: pa_handle_registration(): Error while
parsing headers
So I guess my question about that is, do presence-aware clients need to
registered differently? And if so, how do you make sure you don't send
your normal voice clients into that registration as well?
Any guidance on how to these functions are supposed to integrate would
be very very much appreciated.
Many thanks in advance for all the help this list provides..
Dave
-------------------------------------
Dave Bath
dave-at-fuuz-dot-com
www.fuuz.com <http://www.fuuz.com/>
07736 232085
NOTE: The information contained in this email is intended for the named
recipients only, it may be privileged and confidential. If you are not
the intended recipient, you must not copy distribute or take any action
in reliance upon it. No warranties or assurances are made in relation to
the safety and content of this email and any attachments. No liability
is accepted for any consequences arising from it
Hi,
Hope someone can help with the following two queries:
I've set up SER and its now running (I think!) in the background. I
get the following:
linux:/usr/local/sbin # ser
Listening on
127.0.0.1 [127.0.0.1]:5060
192.168.3.77 [192.168.3.77]:5060
10.0.1.4 [10.0.1.4]:5060
However my SIP UA keeps trying to register on iptel.org so obviously
I must set my own domain somewhere. I know it's something got to do
with 'SIP DOMAIN' but where do I set that?
Also im trying to set up a user using the serctl facility. Im getting
the following errors (though this may be something to do with the
fact that my domain isn't set):
linux:/usr/local/sbin # export SIP_DOMAIN=foobar.com
linux:/usr/local/sbin # serctl add newuser secret aisling(a)foobar.co
MySql password:
/usr/local/sbin/serctl: line 316: mysql: command not found
/usr/local/sbin/serctl: line 311: mysql: command not found
Im a Masters student who's struggling-Please help!!
-------------------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.
----------------------------------------------------------------------------------------
Karl,
You could try using radius authentication. Just google the archives for
some docs on how to use it.
Dave
________________________________
From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org] On
Behalf Of karl
Sent: 12 October 2004 08:13
To: serusers(a)lists.iptel.org
Subject: [Serusers] Avoiding storing passwords in mysql "subscriber"
tablein clear-text
Hi guys,
I would appreciate if someone may help me on the subject. While still
requiring users to be authenticated against user credentials (username,
password, realm), on the other hand I want to avoid storing passwords in
clear text in mysql "subscriber" table. Any ideas?
Thank you in advanced.
Best regards,
Karl
________________________________
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
Hi,
Right now we're using SER as proxy with Asterisk servers in combination
with Digium Wildcard Quad-E1 cards for terminating our customers to our
voice-switch. In the near future it may be more interesting to connect
with STM-1 instead of E1's.
What brands/products do other providers use as mediagateway ?
And what products have a good price/quality ?
Thanks,
Leon de Rooij
leon(a)scarlet-internet.nl
Hi,
I have a particular UA which can't seem to send the correct "487 request
terminated". Hope that someone can help me here.
The complete sip scenario is at http://o-matrix.org/sip/asf.html.
The relevant call is from Phone A 66.175.65.82, via ser 66.175.65.80 to
Phone B 66.135.241.191.
When Phone A hangs up before B picking up, Phone A sends a CANCEL to ser.
The problem happens when ser forwards the 487 from Phone B to phone A. It
seems the message has some errors which cause Phone A not sending back ACK.
I am pretty sure that this is a problem with the 487 sent by Phone B. I
tested several other type of phones with Phone A and have no problem. But I
can't figure out what's wrong with the 487 message from phone B. All headers
of 487 seems to match the original INVITE.
I noticed SIP packet F14 has "Extra Information: Packet is not a complete
SIP message". Not sure about this.
Thanks,
Richard
hello everyone:
I have some problems when I configure the SIP server.I hope you can
help me to solve them.
The first problem: when two users communicate with Windows Messenger
5.0(SIP),they cannot send Instant Messaging.How should I configurate the
SIP server to surport it?
The second problem:when a user login in the SIP system,the data of
field "domain"( database "ser",table "location") is NULL.It should be
"voipv6.edu.cn".So I cannot find the online user through SERWEB.What should
I do to solve the problem?
Thanks a lot!
EMAIL:cyatx1234@hotmail.com
These are some informations related to my setting and problem:
1、operating system:Linux 7.0
2、SER distribution: ser-0.8.14_linux_i386.tar.gz
3、SER build: version: 0.8.14 (i386/linux)
flags: STATS:Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, DNS_IP_HACK, SHM_MEM,
SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
@(#) $Id: main.c,v 1.168.4.3 2004/06/28 15:41:21 andrei Exp $
main.c compiled on 12:28:01 Jul 27 2004 with gcc 2.95
4、SER configuration file :
#
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
#debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
debug=7
fork=yes
log_stderror=no
*/
check_via=yes # (cmd. line: -v)
dns=yes # (cmd. line: -r)
rev_dns=yes # (cmd. line: -R)
port=5060
#children=4
fifo="/tmp/ser_fifo"
alias="voipv6.edu.cn" "210.25.130.252" "localhost"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/acc.so"
loadmodule "/usr/local/lib/ser/modules/exec.so"
loadmodule "/usr/local/lib/ser/modules/group.so"
loadmodule "/usr/local/lib/ser/modules/msilo.so"
loadmodule "/usr/local/lib/ser/modules/print.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
#loadmodule "/usr/local/lib/ser/modules/jabber.so"
loadmodule "/usr/local/lib/ser/modules/uri.so"
loadmodule "/usr/local/lib/ser/modules/vm.so"
# ----------------- setting module-specific parameters ---------------
modparam("usrloc","db_url","sql://ser:heslo@localhost/ser")
# -- usrloc params --
#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)
# -- auth params --
# Uncomment if you are using auth module
#
modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
modparam("auth_db", "password_column", "password")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# main routing logic
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");
break;
};
if ( msg:len > max_len ) {
sl_send_reply("513", "Message too big");
break;
};
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
break;
};
# if the request is for other domain use UsrLoc
# (in case, it does not work, use the following command
# with proper names and addresses in it)
if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("voipv6.edu.cn", "subscriber")) {
www_challenge("voipv6.edu.cn", "0");
break;
};
save("location");
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
# forward to current uri now; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
Hey Karl,
It might be possible to use encrypted mysql passwords - someone else on
the list seems to have mentioned that it might be possible, but I
haven't used this before. Otherwise, use radius authentication and it's
up to you how you get radius to store the passwords (which could be in a
mysql database...) hope that helps slightly?!
Dave
________________________________
From: karl [mailto:ser_newbie@yahoo.com]
Sent: 13 October 2004 16:28
To: Dave Bath; serusers(a)lists.iptel.org
Subject: RE: [Serusers] Avoiding storing passwords in mysql "subscriber"
tablein clear-text
Hi Dave,
Thanks for your response. Does this mean that it is not possible to
achieve this mysql authentication. I happen to be using mysql.
Thanks once again.
Karl
Dave Bath <dave(a)fuuz.com> wrote:
Karl,
You could try using radius authentication. Just google the
archives for some docs on how to use it.
Dave
________________________________
From: serusers-bounces(a)lists.iptel.org
[mailto:serusers-bounces@lists.iptel.org] On Behalf Of karl
Sent: 12 October 2004 08:13
To: serusers(a)lists.iptel.org
Subject: [Serusers] Avoiding storing passwords in mysql
"subscriber" tablein clear-text
Hi guys,
I would appreciate if someone may help me on the subject. While
still requiring users to be authenticated against user credentials
(username, password, realm), on the other hand I want to avoid storing
passwords in clear text in mysql "subscriber" table. Any ideas?
Thank you in advanced.
Best regards,
Karl
________________________________
Do you Yahoo!?
vote.yahoo.com <http://vote.yahoo.com/> - Register online to
vote today!
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete
<http://us.rd.yahoo.com/mail_us/taglines/aac/*http:/promotions.yahoo.com
/new_mail/static/ease.html> - You start. We finish.
I am trying to register a Sipura ATA to ser. I am using nathelper to fix
contact in the register method. Probably Iam implementing nathelper in
the wrong way but it works with a cisco router but not with a netopia or
linksys router. I append SIP traces. Please help me!
if (method=="REGISTER") {
if (nat_uac_test("2")) {
log(1, "Se detecta cliente con NAT src address
different than via header\n");
fix_nated_contact();
append_hf("P-hint: fixed NAT contact for
request\r\n");
};
if (!www_authorize("65.77.23.7", "subscriber")) {
www_challenge("65.77.23.7", "0");
break;
};
save("location");
break;
};
The following trace is taken when the Sipura is using a netopia router.
Sipura has IP address 192.168.1.50 and the public Ip address is
200.52.114.200. These messages are repeated too many times, I have the
following question:
* In the VIA header I see that Sipura is sending private IP address not
public. Is that correct? Can I solve it using nathelper?
U 200.52.114.200:49174 -> 65.77.23.7:5060
REGISTER sip:ser.transtelco.com.mx SIP/2.0..Via: SIP/2.0/UDP
192.168.1.50:5060;branch=z9hG4bK-62ae5363..From: 915534820
0 <sip:9155348200@ser.transtelco.com.mx>;tag=72c2198bafad6ea5..To:
9155348200 <sip:9155348200@ser.transtelco.com.mx>..C
all-ID: e38c8da3-fe5bc96d@192.168.1.50..CSeq: 19
REGISTER..Max-Forwards: 70..Contact: 9155348200 <sip:9155348200@192.16
8.1.50:5060>;expires=3600..User-Agent:
Sipura/SPA2000-2.0.7(f)..Content-Length: 0..Allow: ACK, BYE, CANCEL,
INFO, INVIT
E, NOTIFY, OPTIONS, REFER..Supported: x-sipura....
#
U 65.77.23.7:5060 -> 200.52.114.200:5060
SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP
192.168.1.50:5060;branch=z9hG4bK-62ae5363;received=200.52.114.200..From: 915
5348200
<sip:9155348200@ser.transtelco.com.mx>;tag=72c2198bafad6ea5..To:
9155348200 <sip:9155348200@ser.transtelco.com.
mx>;tag=b27e1a1d33761e85846fc98f5f3a7e58.44b5..Call-ID:
e38c8da3-fe5bc96d@192.168.1.50..CSeq: 19 REGISTER..WWW-Authenti
cate: Digest realm="65.77.23.7",
nonce="416f3a1843fa3327f66e89ac738fff54f5842d41"..Server: Sip EXpress
router (0.8.99-d
ev10 (i386/linux))..Content-Length: 0..Warning: 392 65.77.23.7:5060
"Noisy feedback tells: pid=1864 req_src_ip=200.52.
114.200 req_src_port=49174 in_uri=sip:ser.transtelco.com.mx
out_uri=sip:ser.transtelco.com.mx via_cnt==1"....
This trace is taken from a Cisco router. When I use this router I do not
have any problems with regitration. VIA haeders are correct. I would
like to know if using nathelper can I solve the problem when there is a
UA behind netopia or similar router?
U 200.52.114.47:5060 -> 65.77.23.7:5060
REGISTER sip:ser.transtelco.com.mx SIP/2.0..Via: SIP/2.0/UDP
200.52.114.47:1199;branch=z9hG4bK-fc8090f5..From: 91553482
00 <sip:9155348200@ser.transtelco.com.mx>;tag=dd7e91a3ab719570..To:
9155348200 <sip:9155348200@ser.transtelco.com.mx>..
Call-ID: 9822f6af-701b93d4@192.168.1.50..CSeq: 1
REGISTER..Max-Forwards: 70..Contact: 9155348200 <sip:9155348200@200.52
.114.47:1199>;expires=3600..User-Agent:
Sipura/SPA2000-2.0.7(f)..Content-Length: 0..Allow: ACK, BYE, CANCEL,
INFO, INVI
TE, NOTIFY, OPTIONS, REFER..Supported: x-sipura....
#
U 65.77.23.7:5060 -> 200.52.114.47:1199
SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP
200.52.114.47:1199;branch=z9hG4bK-fc8090f5..From: 9155348200 <sip:9155348200
@ser.transtelco.com.mx>;tag=dd7e91a3ab719570..To: 9155348200
<sip:9155348200@ser.transtelco.com.mx>;tag=b27e1a1d33761e8
5846fc98f5f3a7e58.54fb..Call-ID: 9822f6af-701b93d4@192.168.1.50..CSeq:
1 REGISTER..WWW-Authenticate: Digest realm="65.7
7.23.7", nonce="416f3af0550c9a868bfcf2f00543c882422c96c3"..Server: Sip
EXpress router (0.8.99-dev10 (i386/linux))..Cont
ent-Length: 0..Warning: 392 65.77.23.7:5060 "Noisy feedback tells:
pid=1882 req_src_ip=200.52.114.47 req_src_port=5060
in_uri=sip:ser.transtelco.com.mx out_uri=sip:ser.transtelco.com.mx
via_cnt==1"....
#
U 200.52.114.47:1199 -> 65.77.23.7:5060
REGISTER sip:ser.transtelco.com.mx SIP/2.0..Via: SIP/2.0/UDP
200.52.114.47:5060;branch=z9hG4bK-c0d8c0ed..From: 91553482
00 <sip:9155348200@ser.transtelco.com.mx>;tag=dd7e91a3ab719570..To:
9155348200 <sip:9155348200@ser.transtelco.com.mx>..
Call-ID: 9822f6af-701b93d4@192.168.1.50..CSeq: 2
REGISTER..Max-Forwards: 70..Authorization: Digest username="9155348200
",realm="65.77.23.7",nonce="416f3af0550c9a868bfcf2f00543c882422c96c3",uri="sip:9155348200@ser.transtelco.com.mx",algori
thm=MD5,response="1a1164b79300476badb8832b86a0ec27"..Contact:
9155348200 <sip:9155348200@200.52.114.47:5060>;expires=36
00..User-Agent: Sipura/SPA2000-2.0.7(f)..Content-Length: 0..Allow:
ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REF
ER..Supported: x-sipura....
#
U 65.77.23.7:5060 -> 200.52.114.47:5060
SIP/2.0 200 OK..Via: SIP/2.0/UDP
200.52.114.47:5060;branch=z9hG4bK-c0d8c0ed..From: 9155348200
<sip:9155348200@ser.trans
telco.com.mx>;tag=dd7e91a3ab719570..To: 9155348200
<sip:9155348200@ser.transtelco.com.mx>;tag=b27e1a1d33761e85846fc98f5
f3a7e58.16ad..Call-ID: 9822f6af-701b93d4@192.168.1.50..CSeq: 2
REGISTER..Contact: <sip:9155348200@200.52.114.47:5060>;e
xpires=2245, <sip:9155348200@200.52.114.47:1199>;expires=3600..Server:
Sip EXpress router (0.8.99-dev10 (i386/linux))..
Content-Length: 0..Warning: 392 65.77.23.7:5060 "Noisy feedback
tells: pid=1873 req_src_ip=200.52.114.47 req_src_port=
1199 in_uri=sip:ser.transtelco.com.mx
out_uri=sip:ser.transtelco.com.mx via_cnt==1"....
Hi all.
Can anyone give me some guidance as to when fix_nated_register() should be
used? Should it be used anytime fix_nated_contact() is called?
Regards,
Paul
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com