<!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">
Hi Richard,<br>
<br>
Big thanks, been playing around with the dialplan module - really rocks.<br>
<br>
Just a question though, I'm using $fn to check the CLID, however, $fn
has double-quotes encasing it. Is there a way that I can strip the
double quotes from $fn (I'll copy it to an AVP first obviously) before
passing it to dp_translate, otherwise, it doesn't match my regexes.<br>
<br>
Thanks<br>
Doug<br>
<br>
On 2010/04/16 10:00 PM, Richard Revels wrote:
<blockquote
cite="mid:AF078D57-7815-4C75-A30A-00C2B0F04C3C@bandwidth.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=us-ascii">
dialplan module
<div><br>
<div>
<div>On Apr 16, 2010, at 3:46 PM, Douglas Lane wrote:</div>
<br>
<blockquote type="cite">
<div>Hi Guys,<br>
<br>
Firstly, big thanks for assisting me with the username and raelm issue
I was having - seems to have worked itself out nicely.<br>
<br>
I'm looking for some guidance on how to do the following the "right"
way:<br>
<br>
We currently have some wholesale clients signed up with us now, and
they have a few 1000 numbers in their assigned number ranges. We'd like
to transit their CLID, but I really don't want to troll through my
usr_preferences to pull 1000 CLID, and then identify which number
they're sending and checking to see if it exists.<br>
<br>
I was thinking of loading a range of sorts using a regex, like
1800777XXXX which would be a 10000 number range. Then when the client
sends us their CLID in the display name section of the From header, say
18007775566, we could check against the XXXX portion using a regex, and
if it returns true, we accept the CLID and instruct the C4 to present
the CLID. If not, we return a SIP error saying "Invalid CLID" or
something like that.<br>
<br>
I'm open to suggestions here, what I need to achieve is the following:<br>
<ol>
<li>Don't want to load 10000 numbers at a time into my
usr_preferences database, as this could get very big</li>
<li>Need a way to check that the CLID we've loaded is checked
against
the display name in the From header</li>
<li>Check must be quick to ensure we don't kill opensips doing
1000's
of db queries</li>
</ol>
I look forward to the assistance.<br>
<br>
Thanks<br>
Doug<br>
<br>
</div>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
</div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>