<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1476" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=264164415-18042005><FONT face=Arial color=#0000ff
size=2>Thanks, that's a step in the right direction. I wasn't refering to
5551212 as direc assist (bad example on my part) though. I was just wondering
for to prefix the +1636 to 7 digits. In subst_uri I don't think it can read avp
variables, that's my problem since the ruri will always be different. I was
doing this to elminate all external scripts. </FONT></SPAN></DIV>
<DIV><SPAN class=264164415-18042005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=264164415-18042005><FONT face=Arial color=#0000ff size=2>Thanks
again.</FONT></SPAN></DIV>
<BLOCKQUOTE style="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> Java Rockx
[mailto:javarockx@gmail.com] <BR><B>Sent:</B> Monday, April 18, 2005 9:39
AM<BR><B>To:</B> Matt Schulte<BR><B>Cc:</B>
serusers@lists.iptel.org<BR><B>Subject:</B> Re: [Serusers] e164 rewrite
script<BR><BR></FONT></DIV>Matt,<BR><BR>This is what I use to dial local
directory assistance. When a user dials 411 we rewrite the R-URI. So if use
account 4073191122 dials 411 the R-URI gets massaged to 14075551212 and then
sent out the PSTN gateway.<BR><BR>Regards,<BR>Paul<BR><BR>avp_write("$from",
"i:34");<BR>avp_pushto("$ruri",
"i:34");<BR>strip_tail(7);<BR>subst_uri('/^sip:([0-9]+)@(.*)$/sip:\15551212@\2/i');<BR>avp_delete("i:34");<BR><BR><BR>
<DIV><SPAN class=gmail_quote>On 4/18/05, <B class=gmail_sendername>Matt
Schulte</B> <<A
href="mailto:mschulte@netlogic.net">mschulte@netlogic.net</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Ok
this is all fairly easy except for 7 digit dialing (usa), the problem<BR>I'm
having is how do I get the area code added to the 7 digits. I was<BR>going
to use the user@ to produce this but am unsure how, eg:<BR><BR>from:
+16365551212 <BR>dialed: 5551111<BR><BR>should look like dialed:
+16365551111<BR><BR>Thoughts?<BR><BR>-----Original Message-----<BR>From:
Matt Schulte<BR>Sent: Friday, April 15, 2005 1:44 PM<BR>To: <A
href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A><BR>Subject:
[Serusers] e164 rewrite script<BR><BR>Does anyone have a config to convert
phone numbers (user@) to e164<BR>numbers? Mainly american numbers.. Would
save me a bit of time, else I<BR>can try to write something out.. Thanks.
<BR><BR>_______________________________________________<BR>Serusers mailing
list<BR><A href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> <A
href="http://lists.iptel.org/mailman/listinfo/serusers">http://mail.iptel.org/mailman/listinfo/serusers
</A><BR><BR>_______________________________________________<BR>Serusers
mailing list<BR><A
href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A><BR><A
href="http://lists.iptel.org/mailman/listinfo/serusers">http://mail.iptel.org/mailman/listinfo/serusers
</A><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>