Dear List,
I work with SER and as you see i do auth and acc together with mediaproxy and pstn gateway. i create users, i connect my ATA, it does not register :( then i dial a PSTN number, it dials and we speak, after this part it's so strange... i can only register after doing this, what you think... i add another ATA, again it does not register, i do same things and call a cellular or landline, i talk a bit and after it register itself with SER. when both registered i can make calls from each other and there's no problem.
Anyone have an idea ?
Thanks,
Ozan
<<<<< starts here <<<<<
debug=1
fork=yes
log_stderror=no
listen=212.XXX.104.YYY
port=5060
children=4
alias=212.XXX.104.YYY
dns=no
rev_dns=no
fifo="/tmp/openser_fifo"
fifo_db_url="mysql://openser:openserrw@localhost/openser"
loadmodule "/usr/local/lib/openser/modules/mysql.so"
loadmodule "/usr/local/lib/openser/modules/sl.so"
loadmodule "/usr/local/lib/openser/modules/tm.so"
loadmodule "/usr/local/lib/openser/modules/rr.so"
loadmodule "/usr/local/lib/openser/modules/maxfwd.so"
loadmodule "/usr/local/lib/openser/modules/usrloc.so"
loadmodule "/usr/local/lib/openser/modules/registrar.so"
loadmodule "/usr/local/lib/openser/modules/auth.so"
loadmodule "/usr/local/lib/openser/modules/auth_db.so"
loadmodule "/usr/local/lib/openser/modules/uri.so"
loadmodule "/usr/local/lib/openser/modules/uri_db.so"
loadmodule "/usr/local/lib/openser/modules/mediaproxy.so"
loadmodule "/usr/local/lib/openser/modules/nathelper.so"
loadmodule "/usr/local/lib/openser/modules/textops.so"
loadmodule "/usr/local/lib/openser/modules/domain.so"
loadmodule "/usr/local/lib/openser/modules/acc.so"
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "password_column", "password")
modparam("auth_db", "use_domain", 1)
modparam("domain", "db_mode", 1)
modparam("nathelper", "rtpproxy_disable", 1)
modparam("nathelper", "natping_interval", 0)
modparam("mediaproxy","natping_interval", 30)
modparam("mediaproxy","mediaproxy_socket", "/var/run/mediaproxy.sock")
modparam("mediaproxy","sip_asymmetrics","/usr/local/etc/openser/sip-asymmetric-clients")
modparam("mediaproxy","rtp_asymmetrics","/usr/local/etc/openser/rtp-asymmetric-clients")
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "use_domain", 1)
modparam("usrloc", "timer_interval", 120)
modparam("registrar", "nat_flag", 6)
modparam("registrar", "use_domain", 1)
modparam("rr", "enable_full_lr", 1)
modparam("acc", "db_url", "mysql://openser:openserrw@localhost/openser")
modparam("acc", "log_level", 1)
modparam("acc", "log_flag", 1)
modparam("acc", "db_flag", 1)
route {
# -----------------------------------------------------------------
# Sanity Check Section
# -----------------------------------------------------------------
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483", "Too Many Hops");
break;
};
if (msg:len > max_len) {
sl_send_reply("513", "Message Overflow");
break;
};
# -----------------------------------------------------------------
# Record Route Section and Acc section
# -----------------------------------------------------------------
if (method=="INVITE" && client_nat_test("3")) {
# INSERT YOUR IP ADDRESS HERE
record_route_preset("212.XXX.104.YYY:5060;nat=yes");
} else if (method!="REGISTER") {
record_route();
setflag(1);
};
# -----------------------------------------------------------------
# Call Tear Down Section
# -----------------------------------------------------------------
if (method=="BYE" || method=="CANCEL") {
end_media_session();
};
# -----------------------------------------------------------------
# Loose Route Section
# -----------------------------------------------------------------
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;
};
# -----------------------------------------------------------------
# Call Type Processing Section
# -----------------------------------------------------------------
if (uri!=myself) {
route(1);
break;
};
if (uri==myself) {
if (method=="CANCEL") {
route(3);
break;
} else if (method=="INVITE") {
route(3);
break;
} else if (method=="REGISTER") {
route(2);
break;
};
lookup("aliases");
if (uri!=myself) {
route(1);
break;
};
if (!lookup("location")) {
sl_send_reply("404", "User Not Found");
break;
};
};
route(1);
}
route[1] {
# -----------------------------------------------------------------
# Default Message Handler
# -----------------------------------------------------------------
t_on_reply("1");
if (!t_relay()) {
if (method=="INVITE" || method=="ACK") {
end_media_session();
};
sl_reply_error();
};
}
route[2] {
# -----------------------------------------------------------------
# REGISTER Message Handler
# ----------------------------------------------------------------
if (!search("^Contact:\ +\*") && client_nat_test("7")) {
setflag(6);
fix_nated_register();
force_rport();
};
sl_send_reply("100", "Trying");
if (!www_authorize("","subscriber")) {
www_challenge("","0");
break;
};
if (!check_to()) {
sl_send_reply("401", "Unauthorized");
break;
};
consume_credentials();
if (!save("location")) {
sl_reply_error();
};
}
route[3] {
# -----------------------------------------------------------------
# CANCEL and INVITE Message Handler
# -----------------------------------------------------------------
if (client_nat_test("3")) {
setflag(7);
force_rport();
fix_nated_contact();
};
lookup("aliases");
if (uri!=myself) {
route(1);
break;
};
if (uri=~"^sip:0[0-9]*@*") {
rewritehost("P.S.T.N");
route(1);
break;
};
if (!lookup("location")) {
sl_send_reply("404", "User Not Found");
break;
};
if (method=="CANCEL") {
route(1);
break;
};
if (!proxy_authorize("","subscriber")) {
proxy_challenge("","0");
break;
} else if (!check_from()) {
sl_send_reply("403", "Use From=ID");
break;
};
consume_credentials();
if (isflagset(6) || isflagset(7)) {
use_media_proxy();
};
route(1);
}
onreply_route[1] {
if ((isflagset(6) || isflagset(7)) && (status=~"(180)|(183)|2[0-9][0-9]")) {
if (!search("^Content-Length:\ +0")) {
use_media_proxy();
};
};
if (client_nat_test("1")) {
fix_nated_contact();
};
}
>>>>> ends here >>>>>
Hi,
Just an update. I manually created the presence tables in the SER
database according to the following link:
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/pa/pa.s
ql?rev=1.7
<http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/pa/pa.
sql?rev=1.7&content-type=text/vnd.viewcvs-markup>
&content-type=text/vnd.viewcvs-markup
That has gotten rid of the errors in the below email. However errors
still exist when the clients sent their subscribe messages
handle_subscription() entered
get_pres_uri: _puri=sip:2093@xxx.xxx.xxx.xxx
update_presentity() found watcher
handle_subscription about to return 1: w->event_package=1 w->accept=0
p->flags=4 w=>flags=1 w=0X407c1da0
ERROR: get_hdr_field: bad to header
ERROR: bad header field
ERROR:maxfwd:is_maxfwd_present : parsing MAX_FORWARD header failed!
ERROR: get_hdr_field: bad to header
ERROR: bad header field
ERROR:parse_from_header: bad msg or missing FROM header
Insert_RR(): From parsing failed
record_route(): Error while inserting Record-Route line
ERROR: get_hdr_field: bad to header
ERROR: bad header field
find_first_route: Error while parsing headers
ERROR: get_hdr_field: bad to header
ERROR: bad header field
ERROR: t_newtran: parse_headers failed
ERROR: get_hdr_field: bad to header
ERROR: bad header field
ERROR: t_newtran: parse_headers failed
ERROR: get_hdr_field: bad to header
ERROR: bad header field
ERROR: get_hdr_field: bad to header
ERROR: bad header field
ERROR: build_res_buf_from_sip_req: alas, parse_headers failed
ERROR: sl_reply_error used: I'm terribly sorry, server error occurred
(1/SL)
Has anybody experienced these errors? Is it a problem with the
compatibility of SER and KPhone?
Many Thanks,
Aisling.
-----Original Message-----
From: Aisling [mailto:ashling.odriscoll@cit.ie]
Sent: 06 July 2005 10:15
To: 'serusers(a)lists.iptel.org'
Subject: SER 0.9.0. Presence KPhone
Hi all,
I was just wondering if SER 0.9.0 is working for presence with KPhone? I
have two KPhone clients and I am trying to get presence working -
However when the SUBSCRIBE message is sent the following errors appear
in SER:
handle_subscription() entered
get_pres_uri: _puri=sip:2093@xxx.xxx.xxx.xxx
submit_query(): Table 'ser.presentity' doesn't exist
submit_query(): Error while submitting query
pdomain_load_presentities: Error while querying presentity
submit_query(): Table 'ser.presentity' doesn't exist
submit_query(): Error while submitting query
new_presentity: Error while querying presentity
create_presentity(): Error while creating presentity
handle_subscription(): Error while creating new presentity
handle_subscription about to return -1
The relevant part of the ser.cfg:
loadmodule "/opt/ser/lib/ser/modules/pa.so"
modparam ("pa", "default_expires", 3600)
modparam ("pa", "pa_domain", xxx.xxx.xxx.xxx)
modparam ("pa", "use_db", 1)
modparam ("pa", "db_url", "mysql://username:password@localhost/ser")
if (uri==myself){
if (method=="SUBSCRIBE"){
if (t_newtran()){
handle_subscription("registrar");
break;
};
};
Any ideas?
Many thanks,
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,
what can i do to make Winndows Messenger accept NOTIFY messages,
i have the following error in the log of SER
check_message(): Accepts application/xpidf+xml, text/xml+msrtc.pidf, application/pidf+xml not valid for event package et=presence
handle_subscription(): Error while checking message
handle_subscription about to send_reply and return -2
i have seen that other clients use 'application/cpim-pidf+xml' in Accept header
Does it mean that NOTIFY messages that sends Windows Messenger will never work whith SER
thanks
> Hi Harry,
> I'am a new user , and would like to test
> my call over the
> internet, i have an internet connection at home,
> where can i find a publicly available SIP server to
> route the call to you,
> so that i can test th functionality ?
Look at www.ingate.com
> please can u suggest a way, or if you are on Public
> IP, i can use direct
> call, but as you have a domain name,
> i would like the call to be routed using a Public
> running SIP Server ,
try sip:bob@nxs.yi.org or sip:bob@80.119.9.7
i have somme problems to receive calls !!?
Regards
Harry
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
Hi,
I want to use a Java application to add ser users to the Database. I want to enter the SQL command to the Database straight away (without using serctl), but the problem is that some fields need some calculation (phplib_id, ha1...). Basically calculate the function gen_ha1.
Do you know what does this function calculates?, it is a SHA-1 function?
Have any of you implemented it using Java?
Thanks,
Marcos
Thanks for help,
I set:
# Checking Authorization to use proxy sip
if (method=="INVITE" && !allow_trusted()) {
if (!proxy_authorize("","subscriber")) {
proxy_challenge("","0");
sl_send_reply("407", "Proxy Authentication
Required");
break;
};
};
This block is for my user agents not incoming calls
!!??
Harry
--- casey attwell <case(a)blueraq.co.uk> a écrit :
> Hi
>
> I get proxy authentication required!
>
> Its the part in your ser.cfg
>
> #if (!proxy_authorize("","subscriber")) {
> # proxy_challenge("","0");
> # break;
> #} else if (!check_from()) {
> # sl_send_reply("403", "Use From=ID");
> # break;
> #};
>
> Comment it out to allow all host to call you!
>
> Regards
>
> Casey
>
> -----Original Message-----
> From: serusers-bounces(a)lists.iptel.org
> [mailto:serusers-bounces@lists.iptel.org] On
> Behalf Of harry gaillac
> Sent: 06 July 2005 11:05
> To: serusers(a)lists.iptel.org
> Subject: [Serusers] Test
>
> Hi all,
>
> Anybody could call me to sip:bob@nxs.yi.org just for
> test s
>
> My english spoken is terrible !!!!!
>
> Regards
> Harry
>
>
>
>
>
>
>
___________________________________________________________________________
>
> Appel audio GRATUIT partout dans le monde avec le
> nouveau Yahoo! Messenger
> Téléchargez cette version sur
> http://fr.messenger.yahoo.com
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
Dear List,
I work with SER and as you see i do auth and acc together with mediaproxy and pstn gateway. i create users, i connect my ATA, it does not register :( then i dial a PSTN number, it dials and we speak, after this part it's so strange... i can only register after doing this, what you think... i add another ATA, again it does not register, i do same things and call a cellular or landline, i talk a bit and after it register itself with SER. when both registered i can make calls from each other and there's no problem.
Anyone have an idea ?
Thanks,
Ozan
<<<<< starts here <<<<<
debug=1
fork=yes
log_stderror=no
listen=212.XXX.104.YYY
port=5060
children=4
alias=212.XXX.104.YYY
dns=no
rev_dns=no
fifo="/tmp/openser_fifo"
fifo_db_url="mysql://openser:openserrw@localhost/openser"
loadmodule "/usr/local/lib/openser/modules/mysql.so"
loadmodule "/usr/local/lib/openser/modules/sl.so"
loadmodule "/usr/local/lib/openser/modules/tm.so"
loadmodule "/usr/local/lib/openser/modules/rr.so"
loadmodule "/usr/local/lib/openser/modules/maxfwd.so"
loadmodule "/usr/local/lib/openser/modules/usrloc.so"
loadmodule "/usr/local/lib/openser/modules/registrar.so"
loadmodule "/usr/local/lib/openser/modules/auth.so"
loadmodule "/usr/local/lib/openser/modules/auth_db.so"
loadmodule "/usr/local/lib/openser/modules/uri.so"
loadmodule "/usr/local/lib/openser/modules/uri_db.so"
loadmodule "/usr/local/lib/openser/modules/mediaproxy.so"
loadmodule "/usr/local/lib/openser/modules/nathelper.so"
loadmodule "/usr/local/lib/openser/modules/textops.so"
loadmodule "/usr/local/lib/openser/modules/domain.so"
loadmodule "/usr/local/lib/openser/modules/acc.so"
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "password_column", "password")
modparam("auth_db", "use_domain", 1)
modparam("domain", "db_mode", 1)
modparam("nathelper", "rtpproxy_disable", 1)
modparam("nathelper", "natping_interval", 0)
modparam("mediaproxy","natping_interval", 30)
modparam("mediaproxy","mediaproxy_socket", "/var/run/mediaproxy.sock")
modparam("mediaproxy","sip_asymmetrics","/usr/local/etc/openser/sip-asymmetric-clients")
modparam("mediaproxy","rtp_asymmetrics","/usr/local/etc/openser/rtp-asymmetric-clients")
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "use_domain", 1)
modparam("usrloc", "timer_interval", 120)
modparam("registrar", "nat_flag", 6)
modparam("registrar", "use_domain", 1)
modparam("rr", "enable_full_lr", 1)
modparam("acc", "db_url", "mysql://openser:openserrw@localhost/openser")
modparam("acc", "log_level", 1)
modparam("acc", "log_flag", 1)
modparam("acc", "db_flag", 1)
route {
# -----------------------------------------------------------------
# Sanity Check Section
# -----------------------------------------------------------------
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483", "Too Many Hops");
break;
};
if (msg:len > max_len) {
sl_send_reply("513", "Message Overflow");
break;
};
# -----------------------------------------------------------------
# Record Route Section and Acc section
# -----------------------------------------------------------------
if (method=="INVITE" && client_nat_test("3")) {
# INSERT YOUR IP ADDRESS HERE
record_route_preset("212.XXX.104.YYY:5060;nat=yes");
} else if (method!="REGISTER") {
record_route();
setflag(1);
};
# -----------------------------------------------------------------
# Call Tear Down Section
# -----------------------------------------------------------------
if (method=="BYE" || method=="CANCEL") {
end_media_session();
};
# -----------------------------------------------------------------
# Loose Route Section
# -----------------------------------------------------------------
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;
};
# -----------------------------------------------------------------
# Call Type Processing Section
# -----------------------------------------------------------------
if (uri!=myself) {
route(1);
break;
};
if (uri==myself) {
if (method=="CANCEL") {
route(3);
break;
} else if (method=="INVITE") {
route(3);
break;
} else if (method=="REGISTER") {
route(2);
break;
};
lookup("aliases");
if (uri!=myself) {
route(1);
break;
};
if (!lookup("location")) {
sl_send_reply("404", "User Not Found");
break;
};
};
route(1);
}
route[1] {
# -----------------------------------------------------------------
# Default Message Handler
# -----------------------------------------------------------------
t_on_reply("1");
if (!t_relay()) {
if (method=="INVITE" || method=="ACK") {
end_media_session();
};
sl_reply_error();
};
}
route[2] {
# -----------------------------------------------------------------
# REGISTER Message Handler
# ----------------------------------------------------------------
if (!search("^Contact:\ +\*") && client_nat_test("7")) {
setflag(6);
fix_nated_register();
force_rport();
};
sl_send_reply("100", "Trying");
if (!www_authorize("","subscriber")) {
www_challenge("","0");
break;
};
if (!check_to()) {
sl_send_reply("401", "Unauthorized");
break;
};
consume_credentials();
if (!save("location")) {
sl_reply_error();
};
}
route[3] {
# -----------------------------------------------------------------
# CANCEL and INVITE Message Handler
# -----------------------------------------------------------------
if (client_nat_test("3")) {
setflag(7);
force_rport();
fix_nated_contact();
};
lookup("aliases");
if (uri!=myself) {
route(1);
break;
};
if (uri=~"^sip:0[0-9]*@*") {
rewritehost("P.S.T.N");
route(1);
break;
};
if (!lookup("location")) {
sl_send_reply("404", "User Not Found");
break;
};
if (method=="CANCEL") {
route(1);
break;
};
if (!proxy_authorize("","subscriber")) {
proxy_challenge("","0");
break;
} else if (!check_from()) {
sl_send_reply("403", "Use From=ID");
break;
};
consume_credentials();
if (isflagset(6) || isflagset(7)) {
use_media_proxy();
};
route(1);
}
onreply_route[1] {
if ((isflagset(6) || isflagset(7)) && (status=~"(180)|(183)|2[0-9][0-9]")) {
if (!search("^Content-Length:\ +0")) {
use_media_proxy();
};
};
if (client_nat_test("1")) {
fix_nated_contact();
};
}
>>>>> ends here >>>>>
Hi all,
Anybody could call me to sip:bob@nxs.yi.org just for
test s
My english spoken is terrible !!!!!
Regards
Harry
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
Hi all,
I was just wondering if SER 0.9.0 is working for presence with KPhone? I
have two KPhone clients and I am trying to get presence working -
However when the SUBSCRIBE message is sent the following errors appear
in SER:
handle_subscription() entered
get_pres_uri: _puri=sip:2093@xxx.xxx.xxx.xxx
submit_query(): Table 'ser.presentity' doesn't exist
submit_query(): Error while submitting query
pdomain_load_presentities: Error while querying presentity
submit_query(): Table 'ser.presentity' doesn't exist
submit_query(): Error while submitting query
new_presentity: Error while querying presentity
create_presentity(): Error while creating presentity
handle_subscription(): Error while creating new presentity
handle_subscription about to return -1
The relevant part of the ser.cfg:
loadmodule "/opt/ser/lib/ser/modules/pa.so"
modparam ("pa", "default_expires", 3600)
modparam ("pa", "pa_domain", xxx.xxx.xxx.xxx)
modparam ("pa", "use_db", 1)
modparam ("pa", "db_url", "mysql://username:password@localhost/ser")
if (uri==myself){
if (method=="SUBSCRIBE"){
if (t_newtran()){
handle_subscription("registrar");
break;
};
};
Any ideas?
Many thanks,
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.