<!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.2800.1479" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=164070723-01012005><FONT face=Arial size=2>I am trying to 
manipulate the 'from' header to add a leading zero - our PSTN gateway does not 
send it over in the from header for CLI.</FONT></SPAN></DIV>
<DIV><SPAN class=164070723-01012005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=164070723-01012005><FONT face=Arial size=2>If I use the replace 
function - replace ( "From:.*&lt;sip:", "From: &lt;sip:0"), then this is OK for 
the subsequent messages that are forwarded, but not for the current message that 
is in memory and this is the one that is being put into the database for 
accounting.</FONT></SPAN></DIV>
<DIV><SPAN class=164070723-01012005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=164070723-01012005><FONT face=Arial size=2>Looking at the 
source it looks like the replace function is effecting the main buffer, but if 
the from header has already been read then I can manipulate it ! 
!</FONT></SPAN></DIV>
<DIV><SPAN class=164070723-01012005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=164070723-01012005><FONT face=Arial size=2>Am I right in this 
thinking. Is there a way around it other then writing my own module ? I'm 
currently running the ser from the development CVS</FONT></SPAN></DIV>
<DIV><SPAN class=164070723-01012005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=164070723-01012005><FONT face=Arial 
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=164070723-01012005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=164070723-01012005><FONT face=Arial 
size=2>Simon</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=164070723-01012005></SPAN></FONT>&nbsp;</DIV></BODY></HTML>