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 Ozan,
please sent a short network dump of a register attempt (from the server) - it will be very helpful to see why it fails. Also, is the client behind a NAT?
regards, bogdan
Ozan Blotter wrote:
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
Hi Ozan,
got the network dump -> it seams your client is not able to response to the auth challenge. I see no Authorization header in the REGISTER requests after first challenge. I say it a client error.
regards, bogdan
Bogdan-Andrei Iancu wrote:
Hi Ozan,
please sent a short network dump of a register attempt (from the server) - it will be very helpful to see why it fails. Also, is the client behind a NAT?
regards, bogdan
Ozan Blotter wrote:
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
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi all,
I want to use openser to create a conference system. It support more than 3 parties conferences. So I need an MCU support conference and only transfer the media stream(no mixed the voice) for the conference. I know that sems and asterisk support conference. Which is better for working with openser? How it works?
Best regards, Jimmy
____________________________________________________ Sell on Yahoo! Auctions no fees. Bid on great items. http://auctions.yahoo.com/
Hi Jimmy,
from openser interaction, their are equivalent. SEMS uses fifo/unix_socket interface, Asterisk uses directly the SIP interface. Because of this, from script complexity point of view, I would say SEMS is more difficult to integrate than Asterisk. On the other hand Asterisk requires specific kernel versions and modules (you may need to recompile) for conference support. So......... :)
But you have to choose first based on service requirements, like codecs (sems doesn't support non-free codecs), conference scenarios - sems is note able to initiate a conference (users may just join), but Asterisk can do this.
so, strictly related to openser, I wouldn't say there is a better one - you should choose depending of how you want to build the conference service.
regards, bogdan
jimmy way wrote:
Hi all,
I want to use openser to create a conference system. It support more than 3 parties conferences. So I need an MCU support conference and only transfer the media stream(no mixed the voice) for the conference. I know that sems and asterisk support conference. Which is better for working with openser? How it works?
Best regards, Jimmy
____________________________________________________ Sell on Yahoo! Auctions – no fees. Bid on great items. http://auctions.yahoo.com/
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hello,
On 07/06/05 11:11, Ozan Blotter wrote:
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 ?
looks like you didn't configure the ATA device to register automatically after start up or the ATA is broken (contact the vendor). So, the issue is in client side, there is no problem with the server.
Cheers, Daniel
Thanks, Ozan