Hi All,
Can I account via IP address of the client? I have one client using a sip
pbx appliance. they are using me as a gatewyay using one of my sip
extension. I acocunt their calls based on the calls from that extension.
But can i also do it such a way that he does need an extension from me, he
will just send everything to me and i'll process it via his IP address. And
then i will also do accounting via his IP address from the acc table. Is
this possible?
TIA
Nhadie
________________________________________________
Message sent using UebiMiau 2.7
Hi,
I am tring to set the presence server on SER according to the presence cookbook.
when I start ser i encounter the following error with loading of the dlg library.
What could be the reason for this?
May 28 16:33:49 sen ser[19892]: ... common libraries
May 28 16:33:49 sen ser[19892]: init the content
May 28 16:33:49 sen ser[19892]: init the content
May 28 16:33:49 sen ser[19892]: find_export_record: found <load_tm> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <register_tmcb> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_newtran> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_relay_to_tcp> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_relay_to_udp> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_relay> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_reply_with_body> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_is_local> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_get_trans_ident> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_lookup_ident> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_add_blind> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_forward_nonack> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_request_within> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_request_outside> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_request> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <new_dlg_uac> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <dlg_response_uac> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <new_dlg_uas> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <update_dlg_uas> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <dlg_request_uas> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <set_dlg_target> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <free_dlg> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <print_dlg> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_gett> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <calculate_hooks> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_uac> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_uac_with_ids> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_release> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <t_unref> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <run_failure_handlers> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: found <cancel_uacs> in module tm [/home/ser/ser/ser-2.0/modules/tm/tm.so]
May 28 16:33:49 sen ser[19892]: find_export_record: <bind_dlg_mod> not found
May 28 16:33:49 sen ser[19892]: Can't import dlg
May 28 16:33:49 sen ser[19892]: init_mod(): Error while initializing module pa
May 28 16:33:49 sen ser[19892]: PA module cleanup
----- Forwarded Message ----
From: Cyprian Clement <cyprian_clement(a)yahoo.co.uk>
To: serusers(a)lists.iptel.org
Sent: Monday, 28 May, 2007 12:38:57 PM
Subject: [Serusers] Call Fwd Unconditional for PABX users
Hi,
I can get an SER proxied CFU(serial forking) working ok for registered users with their corresponding data populated in the "usr_preferences" table. However, when use the same approach when an incoming INVITE(RURI) to the SER has a number that belongs to a PABX the new INVITE does not get generated by the SER.
is there any specific area in any module that I need to look out for?
Thanks in advance.
Regards,
Cyp.
-------
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today.
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
----- Forwarded Message ----
From: Cyprian Clement <cyprian_clement(a)yahoo.co.uk>
To: serweb-users(a)lists.iptel.org; serusers(a)lists.iptel.org
Sent: Monday, 28 May, 2007 12:30:08 PM
Subject: [Serusers] Call Fwd On No Answer
Hi,
I have managed to get Call Fwd Unconditional working by making the SER re-route the call to a different from that of the original INVITE by simply using the lookup table "usr_preferences" of the Mysql server.
However, am unable to get "Call Fwd On No Answer" work despite having the mentioned table populated with CFNA.
The server sends CANCEL ok but does not generate a new INVITE after that.
Any suggestion will be much appreciated.
Thanks,
Cyp.
------------
Inbox full of unwanted email? Get leading protection and 1GB storage with All New Yahoo! Mail.
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
___________________________________________________________
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.ht…
Hi
I've configure two ser box in my local network:
1. one box with mysql auth (SER A)
2. without any auth (just make install) (SER B)
in both boxes 2-2 users are registered and they are able to call each other.
my SER A users are able to call SER B user (sip:2001@SER-B) but SER B user
can't call SER A (sip:3001@SER-A) user. here is my config file for SER A
box:
------------------
debug=5
fork=no
log_stderror=yes
listen=176.249.2.69 # INSERT YOUR IP ADDRESS HERE
port=5060
children=4
dns=no
rev_dns=no
fifo="/tmp/ser_fifo"
fifo_db_url="mysql://ser:heslo@localhost/ser"
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"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/uri.so"
loadmodule "/usr/local/lib/ser/modules/uri_db.so"
loadmodule "/usr/local/lib/ser/modules/domain.so"
loadmodule "/usr/local/lib/ser/modules/nathelper.so"
loadmodule "/usr/local/lib/ser/modules/avpops.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/mediaproxy.so"
loadmodule "/usr/local/lib/ser/modules/permissions.so"
loadmodule "/usr/local/lib/ser/modules/acc.so"
loadmodule "/usr/local/lib/ser/modules/xlog.so"
modparam("auth_db|uri_db|usrloc", "db_url", "mysql://ser:heslo@localhost
/ser")
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "password_column", "password")
modparam("usrloc", "db_mode", 2)
modparam("rr", "enable_full_lr", 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
# -----------------------------------------------------------------
if (method!="REGISTER") {
record_route();
};
# -----------------------------------------------------------------
# Loose Route Section
# -----------------------------------------------------------------
if (loose_route()) {
if ((method=="INVITE" || method=="REFER") && !has_totag()) {
sl_send_reply("403", "Forbidden Cant cross 1st bridge");
break;
};
route(1);
break;
};
# -----------------------------------------------------------------
# Call Type Processing Section
# -----------------------------------------------------------------
if (uri!=myself) {
route(1);
break;
};
if (method=="ACK") {
route(1);
break;
} 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
# -----------------------------------------------------------------
if (!t_relay()) {
sl_reply_error();
};
}
route[2] {
# -----------------------------------------------------------------
# REGISTER Message Handler
# ----------------------------------------------------------------
sl_send_reply("100", "Trying");
if (!www_authorize("","subscriber")) {
www_challenge("","1");
break;
};
if (!check_to()) {
sl_send_reply("401", "Unauthorized");
break;
};
consume_credentials();
if (!save("location")) {
sl_reply_error();
};
}
route[3] {
# -----------------------------------------------------------------
# INVITE Message Handler
# -----------------------------------------------------------------
if (!proxy_authorize("","subscriber")) {
proxy_challenge("","1");
break;
} else if (!check_from()) {
sl_send_reply("403", "Use From=ID");
break;
};
consume_credentials();
lookup("aliases");
if (uri!=myself) {
route(1);
break;
};
if (!lookup("location")) {
sl_send_reply("404", "User Not Found");
break;
};
route(1);
}
-------------
please guide me how to do this.
thanks
arun
Hi,
I can get an SER proxied CFU(serial forking) working ok for registered users with their corresponding data populated in the "usr_preferences" table. However, when use the same approach when an incoming INVITE(RURI) to the SER has a number that belongs to a PABX the new INVITE does not get generated by the SER.
is there any specific area in any module that I need to look out for?
Thanks in advance.
Regards,
Cyp.
-------
___________________________________________________________
Inbox full of unwanted email? Get leading protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
Hi,
I have managed to get Call Fwd Unconditional working by making the SER re-route the call to a different from that of the original INVITE by simply using the lookup table "usr_preferences" of the Mysql server.
However, am unable to get "Call Fwd On No Answer" work despite having the mentioned table populated with CFNA.
The server sends CANCEL ok but does not generate a new INVITE after that.
Any suggestion will be much appreciated.
Thanks,
Cyp.
------------
___________________________________________________________
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
Hi,
I have the great pleasure to inform that this year, OpenSER will be
present at LinuxTAG expo in Berlin 30 May - 2 June 2007.
LinuxTAG is one of the most important Open Source event in Europe, with
the main purpose of promoting the Open Source projects to the public.
About more details and history of this event, you can read at
http://www.linuxtag.org/2007/ .
OpenSER has a booth reserved - unfortunately the numbers are still
subject of changes, but as soon as it is final, we will updated the news
on the project's site.
As the participation of the projects is for free (sponsored by
LinuxTAG), each year, representative projects are selected to exhibit.
OpenSER will be part of a larger "island" (group of booths) of "VoIP".
The goal is to let more people know about OpenSER by presenting what is
openser, what is good for, what makes it special, etc. We will bring
publicity materials, as well as Polo shirts and hats with OpenSER ;).
As we want to have at the booth a large representation for the project,
once the project was approved, I contacted several people (non Voice
System) to join me and Daniel at the booth. We are still working on the
final team (it will be listed as soon as we get confirmations), but we
welcome other OpenSER addicted to join to the booth.
I will keep you posted (email and site) about the details of the event.
Regards,
Bogdan
Hi,
I've done the config of my ser and is allowing me to call other user on my
ser server. Using my ser server I can call ohter sip user on some other
server but he is not able to call me. Please guide me how to do this ? what
additional code do I've to write if someone has sample please share with me.
thanks
arun
Hi all,
I use two X-Lite SIP clients with Contact list supported. I want to use chat
(text mode) with each sip clients(X-Lite) via Openser.
I study the documents of Openser ( http://openser.org/docs/ ), I think the
modules ( presence, pua, pua_usrloc, pua_mi ) should what I need.
But I don't know how to set it up. I can't see any online or offline
information for both Xlite1 and Xlite2. Of couse, I add both of them as
friends in contact list on X-Lite software.
Can anyone kind to give me some tips or any URL to reference please?
Xlite1 ==chat==> Openser ==Chat==> Xlite2
# -- presence params --
loadmodule "presence.so"
modparam("presence", "db_url", "mysql://openser:openserrw@localhost
/openser")
modparam("presence", "max_expires", 3600)
modparam("presence", "force_active", 1)
modparam("presence", "server_address", "sip:127.0.0.1:5060" )
#### I don't know how to configure them in DB
# loadmodule "pua.so"
# modparam("pua", "db_url", "mysql://openser:openserrw@localhost/openser")
# loadmodule "pua_mi.so"
# loadmodule "pua_usrloc.so"
route[0]
{
xlog("L_INFO", "New request - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
force_rport();
if(msg:len > max_len)
{
xlog("L_INFO", "Message too big - M=$rm RURI=$ru F=$fu T=$tu IP=$si
ID=$ci\n");
sl_send_reply("513", "Message Too Big");
exit;
}
if (!mf_process_maxfwd_header("10"))
{
xlog("L_INFO", "Too many hops - M=$rm RURI=$ru F=$fu T=$tu IP=$si
ID=$ci\n");
sl_send_reply("483", "Too Many Hops");
exit;
}
if(!is_method("REGISTER"))
{
if(nat_uac_test("19"))
{
record_route(";nat=yes");
}
else
{
record_route();
}
}
if(is_method("CANCEL") || is_method("BYE"))
{
end_media_session();
}
if (is_method("NOTIFY")) {
sl_send_reply("200", "OK");
exit;
};
if(loose_route())
{
if(!has_totag())
{
xlog("L_INFO", "Initial loose-routing rejected - M=$rm RURI=$ru F=$fu
T=$tu IP=$si ID=$ci\n");
sl_send_reply("403", "Initial Loose-Routing Rejected");
exit;
}
if(nat_uac_test("19") || search("^Route:.*;nat=yes"))
{
fix_nated_contact();
if(!search("^Content-Length:[ ]*0"))
{
setbflag(6);
}
}
if(is_method("BYE"))
{
setflag(24); # account failed transactions
setflag(25); # account successful transactions
}
# mark as loose-routed for acc
setflag(26);
route(11);
}
if(is_method("REGISTER"))
{
route(10);
}
setflag(24); # account failed transactions
setflag(25); # account successful transactions
if(is_method("INVITE"))
{
route(12);
}
if(is_method("CANCEL") || is_method("ACK"))
{
route(16);
}
## Added for Presence
if(is_method("PUBLISH") || is_method("SUBSCRIBE") || is_method("MESSAGE"))
{
route(19);
}
route(17);
}
route[19]
{
xlog("L_INFO", "route[19] Presence Handling Router - M=$rm RURI=$ru F=$fu
T=$tu IP=$si ID=$ci\n");
# absorb retransmissions
if (! t_newtran())
{
sl_reply_error();
exit;
};
if(is_method("PUBLISH"))
{
handle_publish();
t_release();
} else if(is_method("SUBSCRIBE")) {
handle_subscribe();
t_release();
};
exit;
}
--
Best Regards
Charles