Hi all
I'm testing pa module on ser and I have some questions. I would thank you if you could help me.
I'm not using Jabber, so can I use pa Module to manage presence of SIP users?
I have added
loadmodule "/usr/local/lib/ser/modules/pa.so" modparam("pa", "default_expires", 3600)
Where have I to add handle_subscription ("registrar")?
Thank you very much
Curro
I'll attach my ser.cfg
# ------------------------- 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("cdshuesca.es", "subscriber")) { www_challenge("cdshuesca.es", "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(); }; #lookup("aliases"); #save("aliases");
See sip_router/etc/pa.cfg
Jan.
On 23-01 13:25, CURRO_DOMINGUEZ wrote:
Hi all
I'm testing pa module on ser and I have some questions. I would thank you if you could help me.
I'm not using Jabber, so can I use pa Module to manage presence of SIP users?
I have added
loadmodule "/usr/local/lib/ser/modules/pa.so" modparam("pa", "default_expires", 3600)
Where have I to add handle_subscription ("registrar")?
Thank you very much
Curro
I'll attach my ser.cfg
# ------------------------- 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("cdshuesca.es", "subscriber")) { www_challenge("cdshuesca.es", "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(); }; #lookup("aliases"); #save("aliases");
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers