Hi there, <br><br>&nbsp;&nbsp; We have a Postgres Database to store the users' informations before we use&nbsp; Openser. To integrate between Postgres and Openser, we write external C&nbsp; programs and call them from Openser with exec_dset function. <br>&nbsp;&nbsp; The issue we have now is with&nbsp; the Caller ID. When the user makes a call to PSTN number from SIP devices (soft phone or hard phone), the telco carrier requests us to send a numerical Caller ID, not the SIP format (such as john.dow@abc.com). What I am doing is to add the Caller ID field into the Postgres for each user and write a C program to query the Caller ID field, then Openser calls it with exec_dset functioin. <br>&nbsp;&nbsp;&nbsp; However, I did not find a way to define a variable in Openser to store this Caller ID and pass it to uac_replace_from function. <br>&nbsp;&nbsp;&nbsp; Appreciate for any suggestions.<br><br>Jeff,<br>&nbsp;&nbsp;&nbsp; You mentioned that you replaced the From Header, may I
 ask how you do it ? <br>Thanks and Regards,<br><br>Don<br><br>------------------------------<br><br>&lt;Message: 4<br>&lt;Date: Tue, 19 Dec 2006 11:11:09 +0900<br>&lt;From: Jeff Williams &lt;jeffw@globaldial.com&gt;<br>&lt;Subject: [Users] (PR)ACK problem with uac_replace_from<br>&lt;To: users@openser.org<br>&lt;Message-ID: &lt;45874A3D.5070206@globaldial.com&gt;<br>&lt;Content-Type: text/plain; charset="iso-8859-1"<br><br>&lt;I seem to have an issue with uac_replace_from.<br><br>&lt;I am using openser as a media proxy. For invites I replace the numbers<br>&lt;with leading 0's with 61 for Australia and forward the call to our LCR<br>&lt;box which then forwards the call to the correct voice to pstn gateway. <br>&lt;I am trying to use uac_replace_from to set the from address so the<br>&lt;callerid appears correct on the outgoing calls.<br><br>&lt;This seems to work fine for the INVITE request, but on subsequent PRACKs <br>&lt;and ACKs (which just get loose routed), something
 strange happens to <br>&lt;the from address.<br><br>&lt;On invite, the From get re-written:<br><br>&lt;From: Jeff &lt;sip:610089001@proxy.sipone.com;user=phone&gt;;tag=1790577941<br>&lt;to<br>&lt;From: Jeff &lt;sip:0892209080@sipone.com&gt;;tag=1790577941<br><br>&lt;For the PRACKs and ACKs, this happens:<br><br>&lt;From: Jeff &lt;sip:610089001@proxy.sipone.com;user=phone&gt;;tag=1790577941<br>&lt;to<br>&lt;From: Jeff<br>&lt;&lt;\032\317\352S\232\222B\230\234K\231*BV\300\030\303\332\ah\303\306i\365\005\016\200\250\000\000\230\016\200\252j\200\002`\000\000\016&gt;;tag=1790577<br>&lt;941<br><br>&lt;There shouldn't be anything happening to the From address on the<br>&lt;(PR)ACKs at all.<br><br>&lt;Anyone have any ideas?<br><br>&lt;I have attached a ethereal dump of the call setup.<br><br>&lt;Jeff<p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com