<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.3395" name=GENERATOR></HEAD>
<BODY
style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space">
<DIV><SPAN class=109462118-28082008><FONT face=Tahoma color=#0000ff size=2>Thank
you Brian,</FONT></SPAN></DIV>
<DIV><SPAN class=109462118-28082008><FONT face=Tahoma color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=109462118-28082008><FONT face=Tahoma color=#0000ff size=2>it
worked.</FONT></SPAN></DIV>
<DIV><SPAN class=109462118-28082008><FONT face=Tahoma color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=109462118-28082008><FONT face=Tahoma color=#0000ff
size=2>regards</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV class=Section1>
<DIV align=left><SPAN class=109462118-28082008><FONT face=Tahoma color=#0000ff
size=2>Duan</FONT></SPAN></DIV>
<P class=MsoNormal> </P></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <B>On Behalf Of
</B>Brian West<BR><B>Sent:</B> Thursday, August 28, 2008 11:07
AM<BR><B>To:</B> freeswitch-users@lists.freeswitch.org<BR><B>Subject:</B> Re:
[Freeswitch-users] dialpaln<BR><BR></FONT></DIV>
<DIV>For extensions you usually have a 4 digit number so you would do this:
^(\d{4})$ then for the pstn you would not want to match just all
digits like that. ^(\d{7,15})$</DIV>
<DIV><BR></DIV>
<DIV>/b</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV><BR>
<DIV>
<DIV>On Aug 28, 2008, at 1:01 PM, Cliconnect wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite"><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0">
<DIV><FONT face=Tahoma color=#000080 size=2>
<DIV><FONT face=Tahoma color=#000080 size=2><SPAN
class=484171816-28082008>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Tahoma color=#000080 size=2><SPAN
class=484171816-28082008></SPAN></FONT> </DIV>
<DIV><FONT face=Tahoma color=#000080 size=2><SPAN
class=484171816-28082008> I can call extensions like 1000
with</SPAN></FONT></DIV>
<DIV><FONT face=Tahoma color=#000080 size=2><SPAN
class=484171816-28082008></SPAN></FONT> </DIV>
<DIV><FONT face=Tahoma color=#000080 size=2><SPAN
class=484171816-28082008><extension
name="extensions"><BR> <condition
field="destination_number"
expression="^(\d+)$"><BR>
<action application="bridge" data="sofia/doublenat/$1%voipclic.com
"/><BR> </SPAN></FONT><FONT face=Tahoma color=#000080
size=2><SPAN class=484171816-28082008>
</condition><BR>
</extension></SPAN></FONT></DIV>
<DIV><FONT face=Tahoma color=#000080 size=2><SPAN
class=484171816-28082008></SPAN></FONT> </DIV>
<DIV><FONT face=Tahoma color=#000080 size=2><SPAN
class=484171816-28082008>and I can call PSTN with</SPAN></FONT></DIV>
<DIV><FONT face=Tahoma color=#000080 size=2><SPAN
class=484171816-28082008></SPAN></FONT> </DIV>
<DIV><FONT face=Tahoma color=#000080 size=2><SPAN
class=484171816-28082008><extension
name="PSTN"><BR> <condition
field="destination_number"
expression="^(\d+)$"><BR> <action
application="bridge"
data="sofia/gateway/inphonex/$0"/></SPAN></FONT></DIV>
<DIV><SPAN class=484171816-28082008><FONT face=Tahoma color=#000080
size=2> </condition><BR>
</extension><BR></FONT></SPAN></DIV>
<DIV><BR><SPAN class=484171816-28082008><FONT face=Tahoma color=#000080
size=2>Both config being in the same default.xml dialplan but I must
use one or the other config. What I have to do in order to have them working
at the same time. In other words the<SPAN class=671505817-28082008><SPAN
class=Apple-converted-space> </SPAN>same<SPAN
class=Apple-converted-space> </SPAN></SPAN> user can call PSTN and
the extension.</FONT></SPAN></DIV>
<DIV><SPAN class=484171816-28082008><FONT face=Tahoma color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=484171816-28082008><FONT face=Tahoma color=#000080
size=2>thanks</FONT></SPAN></DIV>
<DIV><SPAN class=484171816-28082008><FONT face=Tahoma color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=484171816-28082008><FONT face=Tahoma color=#000080
size=2>Duan</FONT></SPAN></DIV></FONT></DIV>
<DIV> </DIV></SPAN></BLOCKQUOTE></DIV><BR>
<DIV apple-content-edited="true"><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0">
<DIV
style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space">
<DIV>Brian West</DIV>
<DIV><A href="sip:brian@freeswitch.org">sip:brian@freeswitch.org</A></DIV>
<DIV><BR></DIV></DIV></SPAN><BR
class=Apple-interchange-newline></DIV><BR></BLOCKQUOTE></BODY></HTML>