#
# switch.5+diag
# same script, bug with diagnostic printouts; run with:
# /usr/local/sbin/openser -f
/usr/local/etc/openser/openser.cfg.diag
#
# ----------- global configuration parameters
------------------------
debug=3
#fork=yes
#log_stderror=no
children=4
# Uncomment these lines to enter debugging mode
#debug=10
fork=no
log_stderror=yes
listen=xxx
#
port=5060
# ------------------ module loading
----------------------------------
#set module path
mpath="/usr/local/lib/kamailio/modules/"
loadmodule "sl.so"
loadmodule "maxfwd.so"
loadmodule "enum.so"
loadmodule "pv.so"
loadmodule "textops.so"
#for diagnostic purposes
loadmodule "mi_fifo.so"
loadmodule "xlog.so"
# ----------------- setting module-specific parameters
---------------
#for diagnostic purposes
modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")
modparam("enum", "domain_suffix", "xxx")
# ------------------------- request routing logic
-------------------
# main routing logic
# ------------------
route{
# initial checks
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
};
if (msg:len >= 2048 ) {
sl_send_reply("513", "Message too big");
exit;
};
xlog("valid received to=<$ru> from=<$fu>\n");
# ENUM :: makes uri E164; then checks enum
subst_user('/;(.*)$//');
if(enum_query()){
xlog("ENUM to <$ru>\n");
forward();
exit;
}
# GATEWAY :: forwards all valid unknowns to the gateway
if(is_from_user_enum()){
xlog("SENT TO GATEWAY\n");
$ruri.domain = "xxx";
forward();
} else {
xlog("FROM USER NOT IN ENUM\n");
}
}
Date: Wed, 27 Jan 2010 21:36:00 +0100
From:
miconda@gmail.com
To:
mrraptor98@hotmail.com
CC:
klaus.mailinglists@pernau.at;
users@lists.kamailio.org
Subject: Re: [Kamailio-Users] isup in invite
Hello,
On 1/27/10 7:50 PM, Eric Hiller wrote:
Klaus,
Thanks for the help, I am working on getting 1.5
installed now as this functionality isn't available in 1.2 it would
appear. In 1.5 I am getting an error for my code:
$ruri.domain = "216.82.224.202";
forward();
Which worked fine in 1.2, but does not in 1.5. What would be the
equivalent config for 1.5?
have you loaded the pv.so module? In 1.5.0 and greater most of
pseudo-variables are implemented in pv module. instead of $ruri.domain
you can use the shorter version $rd.
Cheers,
Daniel
For the enum side I would do:
enum_pv_query("{s.select,$ruri,;}");
If I did textops then it would be:
subst_user('/;(.*)$//');
Correct?
Thanks again!
-Eric
> Date: Sat, 16 Jan 2010 10:51:59 +0100
> From: klaus.mailinglists@pernau.at
> To: mrraptor98@hotmail.com
> CC: users@lists.kamailio.org
> Subject: Re: [Kamailio-Users] isup in invite
>
> Hi ERic!
>
> The ENUM lookup is done with the complete userpart. In your case
you
> have to parse the E164 number manually.
>
> You can do this for example with string transformations: e.g.
>
http://www.kamailio.org/dokuwiki/doku.php/transformations:1.5.x#sselect_index_separator
>
> Then use enum_pv_function() with the pseudo variable (pv) holding
the
> parsed number.
> http://kamailio.org/docs/modules/1.5.x/enum#id2467740
>
>
> regards
> klaus
>
> Eric Hiller wrote:
> > I have an issue where my sip endpoint is sending ISUP
information in the
> > invite. IE: sip:+1xxxxxxxxxx;npdi=yes;cic=+1-0110@xxxx:5060
and when I
> > run the enum query I am getting:
> > 0(24410) enum_query(): uri user is not an E164 number
> >
> > This is most likely due to the fact that
> > $rU=+17794294010;npdi=yes;cic=+1-0110
> >
> > Does openser not read the user properly? Is there a way to
correct this?
> >
> > I am running openser 1.2.2 notls
> >
> > Thanks for any help!
> > -Eric
> >
> >
------------------------------------------------------------------------
> > Your E-mail and More On-the-Go. Get Windows Live Hotmail
Free. Sign up
> > now. <http://clk.atdmt.com/GBL/go/196390709/direct/01/>
> >
> >
> >
------------------------------------------------------------------------
> >
> > _______________________________________________
> > Kamailio (OpenSER) - Users mailing list
> > Users@lists.kamailio.org
> > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> >
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users@lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign
up now.
_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
--
Daniel-Constantin Mierla
* http://www.asipto.com/