<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.12.1">
</HEAD>
<BODY>
On Thu, 2007-03-22 at 11:39 +0100, Klaus Darilion wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>

<FONT COLOR="#000000">Daryl Sanders wrote:</FONT>
<FONT COLOR="#000000">&gt; I'd love to use uac_replace_to(), but to my knowledge it does not</FONT>
<FONT COLOR="#000000">&gt; exist. I read through the UAC module docs and there is no mention of</FONT>
<FONT COLOR="#000000">&gt; it.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; Any other posibilities?</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; If I were to use subst(), can it be applied it in such a way that it</FONT>
<FONT COLOR="#000000">&gt; does not cause problems with the dialog?</FONT>

<FONT COLOR="#000000">You have to catch everys reply and remove the + sign.</FONT>

<FONT COLOR="#000000">Further you have to check all in-dialog requests received from the PSTN </FONT>
<FONT COLOR="#000000">provider and remove the + sign to, and catch every reply from the user's </FONT>
<FONT COLOR="#000000">client to add the + sign again.</FONT>

</PRE>
</BLOCKQUOTE>
<BR>
Mmmh. In order to prevent this (which is unavoidable if you change the To: header), you might try to use P-Asserted-Identity header instead. This works with most modern SIP gateways implementing RFC3325.<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<B><FONT SIZE="2"><FONT COLOR="#808080">J&#233;r&#244;me Martin </FONT></FONT></B><B><FONT SIZE="2"><FONT COLOR="#bebebe">| </FONT></FONT></B><B><FONT SIZE="2"><FONT COLOR="#99cc00">LongPhone</FONT></FONT></B><BR>
<B><FONT SIZE="2"><FONT COLOR="#808080">Responsable Architecture R&#233;seau</FONT></FONT></B><BR>
<FONT SIZE="2"><FONT COLOR="#bebebe">122, rue la Boetie | 75008 Paris </FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#bebebe">Tel :&nbsp; +33 (0)1 56 26 28 44</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#bebebe">Fax : +33 (0)1 56 26 28 45</FONT></FONT><BR>
<FONT COLOR="#c0c0c0">Mail :</FONT><FONT COLOR="#99cc00"> </FONT><FONT COLOR="#99cc00"><B><FONT SIZE="2">jmartin</FONT></B></FONT><FONT SIZE="2"><FONT COLOR="#bebebe">@longphone.fr</FONT></FONT><BR>
<FONT COLOR="#c0c0c0">Web :</FONT><FONT COLOR="#99cc00"> <A HREF="http://www.longphone.com">www.longphone.com</A></FONT><BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>