[Kamailio-Users] isup in invite
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jan 28 11:50:51 CET 2010
On 1/28/10 6:44 AM, Eric Hiller wrote:
> Thanks much! Got it all running once I loaded pv.so
welcome! You can create a new wiki page explaining what this config
offers and posting it there:
http://www.kamailio.org/dokuwiki/doku.php/cfg-scripts-bank:main-index
It is easy to reference later to others.
Cheers,
Daniel
>
> Just in case it helps anyone else out; here is my final config:
> #
> # 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 at gmail.com
> To: mrraptor98 at hotmail.com
> CC: klaus.mailinglists at pernau.at; users at 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 at pernau.at
> <mailto:klaus.mailinglists at pernau.at>
> > To: mrraptor98 at hotmail.com <mailto:mrraptor98 at hotmail.com>
> > CC: users at lists.kamailio.org <mailto:users at 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 at 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 at lists.kamailio.org <mailto:Users at 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 at lists.kamailio.org <mailto:Users at 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. <http://clk.atdmt.com/GBL/go/196390709/direct/01/>
>
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org <mailto:Users at 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/
>
>
> ------------------------------------------------------------------------
> Hotmail: Free, trusted and rich email service. Get it now.
> <http://clk.atdmt.com/GBL/go/196390708/direct/01/>
>
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at 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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100128/770564fa/attachment.htm>
More information about the sr-users
mailing list