Hi,
Iam too interested in this discussion, can some one explicitly elaborate
how iam gonna satisfy all the conditions in a situation whereby OpenSER
is relaying to Asterisk for local PSTN calls and to another a voip
provider for International PSTN calls, ofcourse this applies for any
numeric uri.
I have a Sipwise generated config with offnet-termination which i tried
to edit route [5] 'invite-find-calee' using t_relay() and
rewritehostport conditions, but my concern is the role of LCR module
which is supposed to be taking care of the GWs especially in route[7]
"Request route invite-to-external", will it gonna disrupt/conflict my
set conditions??
########################################################################
# Request route 'invite-find-callee'
########################################################################
route[5]
{
if(alias_db_lookup("dbaliases"))
{
xlog("L_INFO", "Callee was aliased - M=$rm RURI=$ru F=$fu T=$tu IP=$si
ID=$ci\n");
#CHECK WHERE THE REQUEST IS FROM???-edit by me
if($fd=="sip.domain")
{
#FORWARD THEM TO ASTERISK -edit by me
rewritehostport("asterisk IP");
#AND THEN TAKE THEM TO REQUEST ROUTE 'base-outbound'-edit by me
route(3);
}
else if(uri=~"Sip:00[0-9]+@"){
#RELAY THEM TO INTERNETIONAL PSTN-edit by me
t_relay("IP_of_international_PSTN_ provider");
route (3);
}
if(!is_domain_local("$rd"))
{
setflag(20);
route(7);
}
if(does_uri_exist())
{
xlog("L_INFO", "Callee is local - M=$rm RURI=$ru F=$fu T=$tu IP=$si
ID=$ci\n");
route(6);
}
else
{
xlog("L_INFO", "Callee is not local - M=$rm RURI=$ru F=$fu T=$tu IP=
$si ID=$ci\n");
route(7);
}
exit;
}
########################################################################
# Request route 'invite-to-external'
########################################################################
route[7]
{
if(isflagset(20))
{
xlog("L_INFO", "Call to foreign domain - M=$rm RURI=$ru F=$fu T=$tu
IP=$si ID=$ci\n");
route(3);
exit;
}
if(!isflagset(23))
{
# don't allow calls relaying from PSTN to PSTN, if not explicitely
forwarded
if(uri =~ "^sip:[0-9]+@")
{
# only route numeric users to PSTN
if(!load_gws())
{
xlog("L_ERR", "Error loading PSTN gateways - M=$rm RURI=$ru F=$fu T=
$tu IP=$si ID=$ci\n");
sl_send_reply("503", "PSTN Termination Currently Unavailable");
exit;
}
if(!next_gw())
{
xlog("L_ERR", "No PSTN gateways available - M=$rm RURI=$ru F=$fu T=
$tu IP=$si ID=$ci\n");
sl_send_reply("503", "PSTN Termination Currently Unavailable");
exit;
}
setflag(21);
t_on_failure("1");
route(3);
}
}
xlog("L_INFO", "Call to unknown user - M=$rm RURI=$ru F=$fu T=$tu IP=
$si ID=$ci\n");
sl_send_reply("404", "User Not Found");
exit;
}
WBR,
LU.
On Tue, 2007-11-06 at 06:35 +0000, users-request(a)lists.openser.org
wrote:
> Send Users mailing list submissions to
> users(a)lists.openser.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-request(a)lists.openser.org
>
> You can reach the person managing the list at
> users-owner(a)lists.openser.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
> 1. Re: Openser as a conditional stateless proxy (Christian Schlatter)
> 2. Presence RLS module: initialization error (Schumann Sebastian)
> 3. CPL and XML schema (Daniel)
> 4. Re: MediaProxy 1.9.0 - Radius (Miles Scruggs)
> 5. Re: Is it possible to insert avp to reply message? (Tung Tran)
> 6. Re: Is it possible to insert avp to reply message?
> (I?aki Baz Castillo)
> 7. Cellphones and voicemail (Chris Heiser)
> 8. dispatcher with GeoIP (Victor Sergeev)
> 9. Re: Cellphones and voicemail (Christian Schlatter)
> 10. Re: retransmissions after final response (Vasile Zaharia)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 05 Nov 2007 10:16:18 -0500
> From: Christian Schlatter <cs(a)unc.edu>
> Subject: Re: [OpenSER-Users] Openser as a conditional stateless proxy
> To: Padmaja <padmaja.rv(a)vodcalabs.com>
> Cc: users(a)lists.openser.org
> Message-ID: <472F33C2.90900(a)unc.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Padmaja wrote:
> > Hi,
> >
> > Thanks for the reply,
> > Could you provide me the example script for stateless forwarding of
> > invite when a call is received from say a 911 operator to the server?
> > I suppose this should be implemented by checking the From field of the
> > invite and if it is from a certain 911, then it should be forwarded
> > statelessly (or is this logic incorrect?). I am new to the Openser
> > stuff, so I do not wish to change the script myself.
>
>
> Your logic is correct, you can either check the From: header or the
> request URI or any other part of an incoming SIP message to make the
> routing decision.
>
> A simple example looks like:
>
> if (is_method('INVITE'))
> {
> # check if from URI domain equals 911operator.com
> if ($fd == '911operator.com')
> {
> # relay stateless using request URI
> forward();
> exit;
> }
> else
> {
> # relay statefull using request URI
> if (!t_relay())
> {
> sl_reply_error();
> };
> exit;
> }
> }
>
> Please always CC users(a)lists.openser.org so that others can take
> advantage of the discussion.
>
> /Christian
>
> >
> > Thanks again,
> > Padmaja
> >
> > ----- Original Message ----- From: "Christian Schlatter" <cs(a)unc.edu>
> > To: "Padmaja" <padmaja.rv(a)vodcalabs.com>
> > Cc: <users(a)lists.openser.org>
> > Sent: Monday, November 05, 2007 4:53 AM
> > Subject: Re: [OpenSER-Users] Openser as a conditional stateless proxy
> >
> >
> >> Padmaja wrote:
> >>> Hi all,
> >>>
> >>> Can any one tell me if the same running instance of Openser can be
> >>> configured as a stateful proxy for some user accounts and for some
> >>> numbers like emergency services, it acts like a stateless proxy, just
> >>> forwarding the request to the destination?
> >>
> >> Yes, it only depends on what forwarding function is used in the
> >> routing script:
> >>
> >> - t_forward(..) --> stateless
> >>
> >> - t_relay(..) --> stateful
> >>
> >> /Christian
Hey Guys, just looking for some input on this, thanks!
Basic Topology
-------------------------------
Core Route Servers - Server A, B
Registration Server, Collects USRLOC which all reports to the SAME DATABASE.
Server C (User A initial registration server)
User A -> it will tell me location
Server D
User A -> it will tell me location
Any complications, I should be aware of?
So Call Flow will look like so:
INBOUND CALL: (Server A|Server B) -> (Server C|Server D) -> (END USER)
Now should I be weary of any "lockings" such as a client end such as
cable/dsl modem, the ata itself, etc? Thanks.
--
Brandon Armstead
hi,
is there a way to automatically restart it when it crashes?
thanks
stefan
--
Stefan Sayer
VoIP Services
stefan.sayer(a)iptego.de
www.iptego.de
iptego GmbH
Am Borsigturm 40
13507 Berlin
Germany
Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
Hi all,
I'm trying to setup Openser with two Mysql server configured as
Master-Master.
Is it possible to configure Openser to read data from the first Mysql server
(192.168.1.4) and if that fails to read data from the second Mysql server
(192.168.1.5)?
If not, which alternatives I have to instruct Openser to use the second
Mysql server when the first is down?
Thanks in advance.
--
Antonio
Hi All,
I am trying to make a call from userA to userB, but the call is failing
and I am seeing "Proxy Authrorization Fail" in the logs. Have attached
the logs and configuration file.
Please help me debug this problem.
Thanks,
Kiran.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
Hi, in order to use chat rooms I'd like to manage them just from a web
interface that handles imc_rooms and imc_members table, but sincerely I don't
know how to use them, I don't see doc about hot to use the tables.
What I'd like is to have "fixed" chat rooms without the need of creating them
with commands, but via web.
Could anyone explain me how to use those tables?
Please, explain me with this example:
- I want a chat room for domain "domain1.org" and name "chat1".
- I want three members for that room:
- user1(a)domain1.org
- user2(a)domain1.org
- other_user(a)other_domain.org
Could you fill the tables please?
** imc_rooms table **
name domain flag
** imc_members table **
username domain room flag
What is flag for? I suppose it's for features as private/public tables and so.
Maybe it's not possible to manage those tables and the only way is using chat
commands?
Thanks for any help and best regards.
--
Iñaki Baz Castillo
Hi,
I need the possibility of users in many groups. This is not allowed by "grp"
table where username, domain and grp are UNIQUE key.
So It could be valid for me using "re_grp" table and managing numeric groups.
But "re_grp" table doesn't allow realtime (if I do a INSERT or UPDATE in the
table I need to restat OpenSer).
Is not possible to use "re_grp" table in realtime mode?
Thanks.
--
Iñaki Baz Castillo
ibc(a)in.ilimit.es
Hi Gregorio,
Probably you need to link the module against some other lib provided by
xmlrpc-c package. Try to use the latest 1.2.x (stable) or 1.3.x
(testing) as they have some auto lib detection.
Otherwise, you need to change in modules/mi_xmlrpc/Makefile the list of
libraries to be used for linking the module.
regards,
bogdan
Gregorio wrote:
>
> Hi all.
>
> I have a problem starting ‘mi_xmlrpc’ module. This is my configuration:
>
> My system is a CentOS 5.
>
> OpenSER revision 2327, as suggested in
> http://uctimsclient.berlios.de/xcap_server_howto.html.
>
> ‘xmlrpc-c-0.9.10’ correctly installed.
>
> ‘xmlrpc-c-devel-0.9.10-1.i386.rpm’ installed but with ‘nodeps’ because
> it didn´t find dependencies installed without RPMs.
>
> Starting openSer I get this:
>
> Oct 23 07:50:21 localhost openser: ERROR: load_module: could not open
> module </usr/local/lib/openser/modules/mi_xmlrpc.so>:
> /usr/local/lib/openser/modules/mi_xmlrpc.so: undefined symbol:
> ConfReadServerFile
>
> I have checked ‘mi_xmlrpc.so’ and that symbol is undefined.
>
> Any idea of what is wrong?
>
> Thanks a lot.
>
> Note: some weeks ago I successfully installed this same version of
> openSER in a similar machine but It broke L, so I know it can be done.
> I must be missing something.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
Hi :
I have a flow UE -> gateway (use openser and runs proxy mode) ( ip : 192.168.1.2) -> SIP Proxy ( ip: 192.168.1.3),
if i have two user , UE1(192.168.1.5) and UE2(192.168.1.6) send REGISTER request to SIP proxy through gateway,
but our gateway add a maddr = "192.168.1.2" string in contact header,so the contact in REGISTER becomes <username@ host ; maddr="192.168.1.2">.
now , if UE1 send INVITE message to UE2, how does sip proxy to do if receive INVITE message? it will send invite message to UE2 through gateway ( maddr parameter) ?
and does openser has support maddr in contact or not . thx.
allan