Hi Klaus, <br> <br> &nbsp;&nbsp; Very grateful for your reply. <br> &nbsp;&nbsp; I read about the avp document and did not quite follow it. Also, it mentioned Mysql. Is there any examples for avp and Postgres ?<br> &nbsp;&nbsp; I agree it is not a nice to re-write the From header, would you suggest how to change the remote party id in Openser and I will give it a shot ?<br><br>Thanks and Regards,<br><br>Don<br><br><b><i>Klaus Darilion &lt;klaus.mailinglists@pernau.at&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <br>The subscriber table has a column called rpid (remote party id). There <br>you can put into the number.<br><br>When a user gets authenticated, this rpid is loaded into the rpid AVP:<br>http://www.openser.org/docs/modules/1.1.x/auth.html#AEN115<br><br>Then you can use uac_replace_from with this AVP to rewrite the From header.<br><br>Nevertheless, rewriting the from header is not
 very nice.<br><br>The nice solution would be to put the phone number (rpid, remote party <br>id) in the Remote-Party-ID header (e.g. for old Cisco Gateways and <br>Asterisk) or into a P-Asserted-Identity Header (newer Cisco gateways).<br><br>Usually Gateways support either one of this header to set the proper CLI <br>when sending the call into the PSTN.<br><br>regards<br>klaus<br><br>don lin wrote:<br>&gt; Hi there,<br>&gt; <br>&gt;    I saw all of you discussed about the postgres and I do have a question which somewhat related to postgres as well (please refer to the end of this email for detail). <br>&gt;   My question is that I have Caller ID (regular phone number) mapping to a SIP account stored in postgres, when I call from SIP device to a PSTN phone, telco carrier does not accept the SIP From field and requested to use regular phone number. I use exec_msg to call the external C program which read the Caller ID mapping to SIP account. However, I do not know how to
 pass this Caller ID into uac_replace_from.  <br>&gt;   Were the postgres version work for this purpose ? Please advise if you have any suggestion. Thanks in advance,<br>&gt; <br>&gt; Don<br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 5<br>&gt; Date: Thu, 21 Dec 2006 12:20:47 +0200<br>&gt; From: Daniel-Constantin Mierla <daniel@voice-system.ro><br>&gt; Subject: Re: [Users] postgres<br>&gt; To: Klaus Darilion <klaus.mailinglists@pernau.at><br>&gt; Cc: users@openser.org<br>&gt; Message-ID: &lt;458A5FFF.4060003@voice-system.ro&gt;<br>&gt; Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>&gt; <br>&gt; Hello Klaus,<br>&gt; <br>&gt; On 12/21/06 12:05, Klaus Darilion wrote:<br>&gt;&gt; Hi Daniel!<br>&gt;&gt;<br>&gt;&gt; I've checked the postgres script: rel_1_1_0 works fine, but there is <br>&gt; a <br>&gt;&gt; problem in unstable: The domain for the default admin user is asked <br>&gt;&gt; not for serweb tables but for the plain openser tables as
 well. Also <br>&gt;&gt; the subscriber table includes all the serweb columns even if serweb <br>&gt;&gt; tables are not installed.<br>&gt; I think a merge with mysql version, with an option to say the <br>&gt; underlaying DB engine is the right solution, to be easy to maintain -- <br>&gt; same as we did with openserctl. I will have that in mind, but the best <br>&gt; will be to register it to tracker.<br>&gt; <br>&gt; Cheers,<br>&gt; Daniel<br>&gt; <br>&gt;&gt; regards<br>&gt;&gt; klaus<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Daniel-Constantin Mierla wrote:<br>&gt;&gt;&gt; Hello,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On 12/20/06 19:36, Mark Price wrote:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; On 12/20/06, *Klaus Darilion* &lt; klaus.mailinglists@pernau.at <br>&gt;&gt;&gt;&gt; <mailto:klaus.mailinglists@pernau.at>&gt; wrote:<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;     Hi Mark!<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;     Postgres should work well - I use it since ser 0.8. Just make
 <br>&gt; sure<br>&gt;&gt;&gt;&gt;     that<br>&gt;&gt;&gt;&gt;     the hard disk does not get full, because this breaks the index <br>&gt;&gt;&gt;&gt; inside<br>&gt;&gt;&gt;&gt;     postgres and postgres is getting real slow (re-create the index <br>&gt;&gt;&gt;&gt; if it<br>&gt;&gt;&gt;&gt;     happens).<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;     Last time I tested openser_postgres.sh it worked fine. If you <br>&gt; find<br>&gt;&gt;&gt;&gt;     a bug<br>&gt;&gt;&gt;&gt;     please let us know.<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;     Please check to use the latest versions from CVS (for 1.1 use <br>&gt; CVS<br>&gt;&gt;&gt;&gt;     rel_1_1_0)<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; The latest version from cvs doesn't work out of the box with <br>&gt; openser <br>&gt;&gt;&gt;&gt; build from the release tarball, because the release tarball doesn't <br>&gt;&gt;&gt;&gt; included /usr/sbin/openser_gen_ha1 (although I could get past this
 <br>&gt;&gt;&gt;&gt; by replacing it with the md5sum equivelant).<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; However, the release tarball doesn't work because of this bug:<br>&gt;&gt;&gt;&gt;<br>&gt; https://sourceforge.net/tracker/?func=detail&amp;atid=743020&amp;aid=1518732&amp;group_id=139143 <br>&gt; <https: //sourceforge.net/tracker/?func="detail&amp;atid=743020&amp;aid=1518732&amp;group_id=139143"> <br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; So, 1. is the cvs version of rel_1_1_0 considered safe for <br>&gt;&gt;&gt;&gt; production use?<br>&gt;&gt;&gt; yes, it is the most recommended version to use -- several issues <br>&gt; were <br>&gt;&gt;&gt; found and fixed since 1.1.0 release.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt;       2. if so and there are important fixes such as this in CVS, <br>&gt;&gt;&gt;&gt; would openser.org <http:> consider<br>&gt;&gt;&gt;&gt;       releasing a point release containing such changes? <br>&gt;&gt;&gt; It is an option, and perhaps should be taken
 in consideration, as <br>&gt;&gt;&gt; patch release with not so much packaging.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; This may help some which want to maintain platforms updated, it is <br>&gt;&gt;&gt; exampled with 1.0.x, bust just replace the version with 1.1.0 in the <br>&gt;&gt;&gt; document and should work (rel_1_0_0 =&gt; rel_1_1_0)<br>&gt;&gt;&gt; http://openser.org/dokuwiki/doku.php/install:openser-from-cvs<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Cheers,<br>&gt;&gt;&gt; Daniel<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Thanks,<br>&gt;&gt;&gt;&gt;<br>&gt;&gt;&gt;&gt; Mark Price<br>&gt; <br>&gt; don lin <don12lin@yahoo.com> wrote: Hi there, <br>&gt; <br>&gt;    We have a Postgres Database to store the users' informations before we use  Openser. To integrate between Postgres and Openser, we write external C  programs and call them from Openser with exec_dset function. <br>&gt;    The issue we have now is with  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>&gt;     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>&gt;     Appreciate for any suggestions.<br>&gt; <br>&gt; Jeff,<br>&gt;     You mentioned that you replaced the From Header, may I  ask how you do it ? <br>&gt; Thanks and Regards,<br>&gt; <br>&gt; Don<br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; <Message: 4=""><br>&gt; <Date: tue="" 19="" dec="" 2006="" 11:11:09="" +0900=""><br>&gt; <From: jeff="" williams=""><jeffw@globaldial.com><br>&gt; <Subject: [users="" (pr)ack="" problem="" with="" uac_replace_from=""><br>&gt; <To:
 users@openser.org=""><br>&gt; <Message-ID:>&lt;45874A3D.5070206@globaldial.com&gt;<br>&gt; <Content-Type: text/plain="" charset="iso-8859-1"><br>&gt; <br>&gt; <i seem="" to="" have="" an="" issue="" with="" uac_replace_from=""><br>&gt; <br>&gt; <i am="" using="" openser="" as="" a="" media="" proxy="" for="" invites="" i="" replace="" the="" numbers=""><br>&gt; <with leading="" 0="" s="" with="" 61="" for="" australia="" and="" forward="" the="" call="" to="" our="" lcr=""><br>&gt; <box which="" then="" forwards="" call="" the="" correct="" voice="" to="" pstn="" gateway=""><br>&gt; <i am="" trying="" use="" uac_replace_from="" to="" set="" from="" address="" so="" the=""><br>&gt; <callerid appears="" correct="" on="" the="" outgoing="" calls=""><br>&gt; <br>&gt; <This seems="" to="" work="" fine="" for="" the="" invite="" request="" but="" on="" subsequent="" pracks=""><br>&gt; <and acks="" (which="" just="" get="" loose="" routed="" something="" strange="" happens=""
 to=""><br>&gt; <the from="" address=""><br>&gt; <br>&gt; <On invite="" the="" from="" get="" re-written=""><br>&gt; <br>&gt; <From: jeff=""><sip:610089001@proxy.sipone.com;user=phone>;tag=1790577941<br>&gt; <to><br>&gt; <From: jeff=""><sip:0892209080@sipone.com>;tag=1790577941<br>&gt; <br>&gt; <For the="" pracks="" and="" acks="" this="" happens=""><br>&gt; <br>&gt; <From: jeff=""><sip:610089001@proxy.sipone.com;user=phone>;tag=1790577941<br>&gt; <to><br>&gt; <From: jeff=""><br>&gt; &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>&gt; &lt;941<br>&gt; <br>&gt; <There shouldn="" t="" be="" anything="" happening="" to="" from="" address="" on="" the=""><br>&gt; &lt;(PR)ACKs at all.<br>&gt; <br>&gt; <Anyone have="" any="" ideas=""><br>&gt; <br>&gt; <i have="" attached="" a="" ethereal="" dump="" of="" the="" call="" setup=""><br>&gt; <br>&gt; <Jeff _=""><br>&gt; Do
 You Yahoo!?<br>&gt; Tired of spam?  Yahoo! Mail has the best spam protection around <br>&gt; http://mail.yahoo.com <br>&gt; <br>&gt; <br>&gt;  __________________________________________________<br>&gt; Do You Yahoo!?<br>&gt; Tired of spam?  Yahoo! Mail has the best spam protection around <br>&gt; http://mail.yahoo.com <br><br><br>-- <br>Klaus Darilion<br>nic.at<br><br></Jeff></i></Anyone></There></From:></to></sip:610089001@proxy.sipone.com;user=phone></From:></For></sip:0892209080@sipone.com></From:></to></sip:610089001@proxy.sipone.com;user=phone></From:></On></the></and></This></callerid></i></box></with></i></i></Content-Type:></Message-ID:></To:></Subject:></jeffw@globaldial.com></From:></Date:></Message:></don12lin@yahoo.com></http:></https:></mailto:klaus.mailinglists@pernau.at></klaus.mailinglists@pernau.at></daniel@voice-system.ro></blockquote><i seem="" to="" have="" an="" issue="" with="" uac_replace_from=""><i am="" using="" openser="" as="" a="" media=""
 proxy="" for="" invites="" i="" replace="" the="" numbers=""><i am="" trying="" use="" uac_replace_from="" to="" set="" from="" address="" so="" the=""><i have="" attached="" a="" ethereal="" dump="" of="" the="" call="" setup=""><br></i></i></i></i><p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com