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(&quot;$from&quot;, &quot;i:34&quot;);<br>
avp_pushto(&quot;$ruri&quot;, &quot;i:34&quot;);<br>
strip_tail(7);<br>
subst_uri('/^sip:([0-9]+)@(.*)$/sip:\15551212@\2/i');<br>
avp_delete(&quot;i:34&quot;);<br>
<br><br><div><span class="gmail_quote">On 4/18/05, <b class="gmail_sendername">Matt Schulte</b> &lt;<a href="mailto:mschulte@netlogic.net">mschulte@netlogic.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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>