<!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># ------------------------- &nbsp;request routing logic
-------------------</div>
  <div><br>
  </div>
  <div># main routing logic</div>
  <div># ------------------</div>
  <div>route{</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# initial checks</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (!mf_process_maxfwd_header("10")) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("483","Too Many Hops");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (msg:len &gt;= &nbsp;2048 ) {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("513", "Message too big");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;};</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;xlog("valid received to=&lt;$ru&gt; from=&lt;$fu&gt;\n");</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# ENUM :: makes uri E164; then checks enum</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;subst_user('/;(.*)$//');</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if(enum_query()){</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xlog("ENUM to &lt;$ru&gt;\n");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;forward();</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;# GATEWAY :: forwards all valid unknowns to the gateway</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if(is_from_user_enum()){</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xlog("SENT TO GATEWAY\n");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ruri.domain = "xxx";</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;forward();</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;} else {</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xlog("FROM USER NOT IN ENUM\n");</div>
  <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</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>
&gt; Date: Sat, 16 Jan 2010 10:51:59 +0100<br>
&gt; From: <a moz-do-not-send="true"
 class="ecxmoz-txt-link-abbreviated"
 href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a><br>
&gt; To: <a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated"
 href="mailto:mrraptor98@hotmail.com">mrraptor98@hotmail.com</a><br>
&gt; CC: <a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated"
 href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</a><br>
&gt; Subject: Re: [Kamailio-Users] isup in invite<br>
&gt; <br>
&gt; Hi ERic!<br>
&gt; <br>
&gt; The ENUM lookup is done with the complete userpart. In your case
you <br>
&gt; have to parse the E164 number manually.<br>
&gt; <br>
&gt; You can do this for example with string transformations: e.g.<br>
&gt;
    <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>
&gt; <br>
&gt; Then use enum_pv_function() with the pseudo variable (pv) holding
the <br>
&gt; parsed number.<br>
&gt; <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>
&gt; <br>
&gt; <br>
&gt; regards<br>
&gt; klaus<br>
&gt; <br>
&gt; Eric Hiller wrote:<br>
&gt; &gt; I have an issue where my sip endpoint is sending ISUP
information in the <br>
&gt; &gt; 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>
&gt; &gt; run the enum query I am getting:<br>
&gt; &gt; 0(24410) enum_query(): uri user is not an E164 number<br>
&gt; &gt; <br>
&gt; &gt; This is most likely due to the fact that <br>
&gt; &gt; $rU=+17794294010;npdi=yes;cic=+1-0110<br>
&gt; &gt; <br>
&gt; &gt; Does openser not read the user properly? Is there a way to
correct this?<br>
&gt; &gt; <br>
&gt; &gt; I am running openser 1.2.2 notls<br>
&gt; &gt; <br>
&gt; &gt; Thanks for any help!<br>
&gt; &gt; -Eric<br>
&gt; &gt; <br>
&gt; &gt;
------------------------------------------------------------------------<br>
&gt; &gt; Your E-mail and More On-the-Go. Get Windows Live Hotmail
Free. Sign up <br>
&gt; &gt; now. <a moz-do-not-send="true"
 class="ecxmoz-txt-link-rfc2396E"
 href="http://clk.atdmt.com/GBL/go/196390709/direct/01/">&lt;http://clk.atdmt.com/GBL/go/196390709/direct/01/&gt;</a><br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt;
------------------------------------------------------------------------<br>
&gt; &gt; <br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Kamailio (OpenSER) - Users mailing list<br>
&gt; &gt; <a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated"
 href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
&gt; &gt; <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>
&gt; &gt;
    <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>
&gt; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; Kamailio (OpenSER) - Users mailing list<br>
&gt; <a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated"
 href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
&gt; <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>
&gt; <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>