<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
On 1/28/10 6:44 AM, Eric Hiller wrote:
<blockquote cite="mid:BLU112-W27C82AF4F09557CC6213E8DB5C0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>Thanks
much! Got it all running once I loaded pv.so</blockquote>
welcome! You can create a new wiki page explaining what this config
offers and posting it there:<br>
<a class="moz-txt-link-freetext" href="http://www.kamailio.org/dokuwiki/doku.php/cfg-scripts-bank:main-index">http://www.kamailio.org/dokuwiki/doku.php/cfg-scripts-bank:main-index</a><br>
<br>
It is easy to reference later to others.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote cite="mid:BLU112-W27C82AF4F09557CC6213E8DB5C0@phx.gbl"
type="cite">
<div><br>
</div>
<div>Just in case it helps anyone else out; here is my final config:</div>
<div>
<div>#</div>
<div># switch.5+diag</div>
<div># same script, bug with diagnostic printouts; run with:</div>
<div># /usr/local/sbin/openser -f
/usr/local/etc/openser/openser.cfg.diag</div>
<div>#</div>
<div># ----------- global configuration parameters
------------------------</div>
<div><br>
</div>
<div>debug=3</div>
<div>#fork=yes</div>
<div>#log_stderror=no</div>
<div>children=4</div>
<div><br>
</div>
<div># Uncomment these lines to enter debugging mode</div>
<div>#debug=10</div>
<div>fork=no</div>
<div>log_stderror=yes</div>
<div>listen=xxx</div>
<div>#</div>
<div><br>
</div>
<div>port=5060</div>
<div><br>
</div>
<div># ------------------ module loading
----------------------------------</div>
<div><br>
</div>
<div>#set module path</div>
<div>mpath="/usr/local/lib/kamailio/modules/"</div>
<div><br>
</div>
<div>loadmodule "sl.so"</div>
<div>loadmodule "maxfwd.so"</div>
<div>loadmodule "enum.so"</div>
<div>loadmodule "pv.so"</div>
<div>loadmodule "textops.so"</div>
<div><br>
</div>
<div>#for diagnostic purposes</div>
<div>loadmodule "mi_fifo.so"</div>
<div>loadmodule "xlog.so"</div>
<div><br>
</div>
<div># ----------------- setting module-specific parameters
---------------</div>
<div><br>
</div>
<div>#for diagnostic purposes</div>
<div>modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")</div>
<div><br>
</div>
<div>modparam("enum", "domain_suffix", "xxx")</div>
<div><br>
</div>
<div># ------------------------- request routing logic
-------------------</div>
<div><br>
</div>
<div># main routing logic</div>
<div># ------------------</div>
<div>route{</div>
<div> # initial checks</div>
<div> if (!mf_process_maxfwd_header("10")) {</div>
<div> sl_send_reply("483","Too Many Hops");</div>
<div> exit;</div>
<div> };</div>
<div> if (msg:len >= 2048 ) {</div>
<div> sl_send_reply("513", "Message too big");</div>
<div> exit;</div>
<div> };</div>
<div><br>
</div>
<div> xlog("valid received to=<$ru> from=<$fu>\n");</div>
<div><br>
</div>
<div> # ENUM :: makes uri E164; then checks enum</div>
<div> subst_user('/;(.*)$//');</div>
<div> if(enum_query()){</div>
<div> xlog("ENUM to <$ru>\n");</div>
<div> forward();</div>
<div> exit;</div>
<div> }</div>
<div> # GATEWAY :: forwards all valid unknowns to the gateway</div>
<div> if(is_from_user_enum()){</div>
<div> xlog("SENT TO GATEWAY\n");</div>
<div> $ruri.domain = "xxx";</div>
<div> forward();</div>
<div> } else {</div>
<div> xlog("FROM USER NOT IN ENUM\n");</div>
<div> }</div>
<div>}</div>
<div><br>
</div>
<br>
<hr id="stopSpelling">Date: Wed, 27 Jan 2010 21:36:00 +0100<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:mrraptor98@hotmail.com">mrraptor98@hotmail.com</a><br>
CC: <a class="moz-txt-link-abbreviated" href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>; <a class="moz-txt-link-abbreviated" href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</a><br>
Subject: Re: [Kamailio-Users] isup in invite<br>
<br>
Hello,<br>
<br>
On 1/27/10 7:50 PM, Eric Hiller wrote:
<blockquote cite="mid:BLU112-W145BAEFB7994315C6068C4DB5D0@phx.gbl">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>Klaus,<br>
<br>
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:<br>
$ruri.domain = "216.82.224.202";<br>
forward();<br>
Which worked fine in 1.2, but does not in 1.5. What would be the
equivalent config for 1.5?<br>
</blockquote>
<br>
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.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote cite="mid:BLU112-W145BAEFB7994315C6068C4DB5D0@phx.gbl"><br>
For the enum side I would do:<br>
enum_pv_query("{s.select,$ruri,;}");<br>
<br>
If I did textops then it would be:<br>
subst_user('/;(.*)$//');<br>
Correct?<br>
<br>
Thanks again!<br>
-Eric<br>
<br>
> Date: Sat, 16 Jan 2010 10:51:59 +0100<br>
> From: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a><br>
> To: <a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated"
href="mailto:mrraptor98@hotmail.com">mrraptor98@hotmail.com</a><br>
> CC: <a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated"
href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</a><br>
> Subject: Re: [Kamailio-Users] isup in invite<br>
> <br>
> Hi ERic!<br>
> <br>
> The ENUM lookup is done with the complete userpart. In your case
you <br>
> have to parse the E164 number manually.<br>
> <br>
> You can do this for example with string transformations: e.g.<br>
>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext"
href="http://www.kamailio.org/dokuwiki/doku.php/transformations:1.5.x#sselect_index_separator">http://www.kamailio.org/dokuwiki/doku.php/transformations:1.5.x#sselect_index_separator</a><br>
> <br>
> Then use enum_pv_function() with the pseudo variable (pv) holding
the <br>
> parsed number.<br>
> <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext"
href="http://kamailio.org/docs/modules/1.5.x/enum#id2467740">http://kamailio.org/docs/modules/1.5.x/enum#id2467740</a><br>
> <br>
> <br>
> regards<br>
> klaus<br>
> <br>
> Eric Hiller wrote:<br>
> > I have an issue where my sip endpoint is sending ISUP
information in the <br>
> > invite. IE: <a moz-do-not-send="true"
class="ecxmoz-txt-link-freetext">sip:+1xxxxxxxxxx;npdi=yes;cic=+1-0110@xxxx:5060</a>
and when I <br>
> > run the enum query I am getting:<br>
> > 0(24410) enum_query(): uri user is not an E164 number<br>
> > <br>
> > This is most likely due to the fact that <br>
> > $rU=+17794294010;npdi=yes;cic=+1-0110<br>
> > <br>
> > Does openser not read the user properly? Is there a way to
correct this?<br>
> > <br>
> > I am running openser 1.2.2 notls<br>
> > <br>
> > Thanks for any help!<br>
> > -Eric<br>
> > <br>
> >
------------------------------------------------------------------------<br>
> > Your E-mail and More On-the-Go. Get Windows Live Hotmail
Free. Sign up <br>
> > now. <a moz-do-not-send="true"
class="ecxmoz-txt-link-rfc2396E"
href="http://clk.atdmt.com/GBL/go/196390709/direct/01/"><http://clk.atdmt.com/GBL/go/196390709/direct/01/></a><br>
> > <br>
> > <br>
> >
------------------------------------------------------------------------<br>
> > <br>
> > _______________________________________________<br>
> > Kamailio (OpenSER) - Users mailing list<br>
> > <a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated"
href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
> > <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext"
href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
> >
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext"
href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
> <br>
> <br>
> _______________________________________________<br>
> Kamailio (OpenSER) - Users mailing list<br>
> <a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated"
href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
> <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext"
href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
> <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext"
href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<hr>Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a
moz-do-not-send="true"
href="http://clk.atdmt.com/GBL/go/196390709/direct/01/">Sign
up now.</a>
<pre><fieldset class="ecxmimeAttachmentHeader"></fieldset>
_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated"
href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext"
href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext"
href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></pre>
</blockquote>
<br>
<pre class="ecxmoz-signature">--
Daniel-Constantin Mierla
* <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext"
href="http://www.asipto.com/">http://www.asipto.com/</a>
</pre>
</div>
<br>
<hr>Hotmail: Free, trusted and rich email service. <a
moz-do-not-send="true"
href="http://clk.atdmt.com/GBL/go/196390708/direct/01/" target="_new">Get
it now.</a>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a class="moz-txt-link-freetext" href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
* <a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a>
</pre>
</body>
</html>