<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<div><br></div><div>Yes that works great, I have modified slightly so that with the SBC Im using it removes the +44 and then inserts the remaining digits into the SIP request;</div><div><br></div><div> 100 10 "U" "E2U+sip" "!^44(.*)$!sip:\\1@10.10.10.10!" .  </div><div><br></div><div>So if for example query is for 44123456789, the sip request will be <span style="font-size: 12pt;">123456789</span><span style="font-size: 12pt;">@10.10.10.10 after  the query thanks to the regex above.</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Many thanks to Aki for the help!</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Jon</span></div><div><br><br><div>> Date: Thu, 5 Jun 2014 20:37:22 +0300<br>> From: cmouse@youzen.ext.b2.fi<br>> To: hunterj91@hotmail.com<br>> CC: pdns-users@mailman.powerdns.com<br>> Subject: Re: [Pdns-users] NAPTR wildcard records on PDNS version 3.3<br>> <br>> mysql> update records set content = '100 10 "U" "E2U+sip" "!^\\\\+44(.*)$!sip:\\\\1@10.10.10.10!" .' where type = 'NAPTR';<br>> <br>> This works.<br>> <br>> Aki Tuomi<br>> <br>> On Thu, Jun 05, 2014 at 06:50:07PM +0300, Aki Tuomi wrote:<br>> > I need to verify if this is a bug in 3.3 first (or someone else ofc).<br>> > <br>> > Aki<br>> > <br>> > On Thu, Jun 05, 2014 at 03:15:16PM +0000, Jonathan Hunter wrote:<br>> > > Hi Aki,<br>> > > In fact on closer inspection its version 3.3-2.<br>> > > Any comments/help appreciated.<br>> > > Thanks<br>> > > Jon<br>> > > <br>> > > From: hunterj91@hotmail.com<br>> > > To: cmouse@youzen.ext.b2.fi<br>> > > Date: Thu, 5 Jun 2014 12:14:03 +0000<br>> > > CC: pdns-users@mailman.powerdns.com<br>> > > Subject: Re: [Pdns-users] NAPTR wildcard records on PDNS version 3.3<br>> > > <br>> > > <br>> > > <br>> > > <br>> > > Hi Aki,<br>> > > Thanks for the response, its version 3.3;<br>> > > pdns_control version3.3<br>> > > Thanks<br>> > > Jon<br>> > > > Date: Thu, 5 Jun 2014 14:55:51 +0300<br>> > > > From: cmouse@youzen.ext.b2.fi<br>> > > > To: hunterj91@hotmail.com<br>> > > > CC: pdns-users@mailman.powerdns.com<br>> > > > Subject: Re: [Pdns-users] NAPTR wildcard records on PDNS version 3.3<br>> > > > <br>> > > > On Thu, Jun 05, 2014 at 11:44:23AM +0000, Jonathan Hunter wrote:<br>> > > > > Hi Guys, <br>> > > > > Sorry to trouble you all, just wondered if anyone can help.<br>> > > > > I am using Powerdns as an ENUM server, and for single records its working well, however for wildcard entries I am having issues.<br>> > > > > Im sure its just syntax from my point of view, however looking at the associated RFCs and guides it all looks good.<br>> > > > > I add a wildcard entry such as below, where query is something like;<br>> > > > > 6.6.6.9.9.3.4.3.4.1.4.4.test.domain<br>> > > > > Now with the query number, I want to store this as a variable, prefix it then send it out as a SIP URI.<br>> > > > > So I have added an entry in records such as below;<br>> > > > > INSERT INTO records (id,domain_id,name,type,content,ttl)VALUES('16','3','*.test.domain','NAPTR','100 10 "U" "E2U+sip" "!^\\+44(.*)$!sip:\\1@10.10.10.10!" .','120');<br>> > > > > With the idea that the query number will be stored in the back-referenced parameter \\1 and all will be well and I can use it to generate the request.<br>> > > > > However once I add this, then send a query into the DNS server I get;<br>> > > > > <br>> > > > >  Exception: Unable to parse DNS TXT "!^\\+44(.*)$!sip:\\1@10.10.10.10!"<br>> > > > > Does anyone have any working wildcard examples I can reference as its quite frustrating now!<br>> > > > > Many thanks<br>> > > > > Jon<br>> > > > >                                      <br>> > > > <br>> > > > Which version are you running?<br>> > > > <br>> > > > > _______________________________________________<br>> > > > > Pdns-users mailing list<br>> > > > > Pdns-users@mailman.powerdns.com<br>> > > > > http://mailman.powerdns.com/mailman/listinfo/pdns-users<br>> > > > <br>> > >                                          <br>> > > <br>> > > _______________________________________________<br>> > > Pdns-users mailing list<br>> > > Pdns-users@mailman.powerdns.com<br>> > > http://mailman.powerdns.com/mailman/listinfo/pdns-users                                       <br>> <br>> <br>> <br>> > _______________________________________________<br>> > Pdns-users mailing list<br>> > Pdns-users@mailman.powerdns.com<br>> > http://mailman.powerdns.com/mailman/listinfo/pdns-users<br>> <br></div></div>                                      </div></body>
</html>