Dear Bogdan,<br><br>thank you for your kind answer. Here I attach 4 different logs, two of them contains the "uac:replace_from" string. This is the expected behaviour.<br><br>The 4 files are:<br><br>v0, v5: calling two different internal numbers from outbound calls, both with caller's number unhide,
<br>v_0, v_5: the same as above but the caller's numbers are hidden<br><br>Only the latter ones contain the uac:replace_from string because this is my setting in the openser.cfg file.<br><br>Currently I have another problem, too. If you are browsing the logs, you will realize that however I initiated all the 4 calls from the same mobile phone to two different targets inside our openser system, I got two absolute different behaviour:
<br><br>
* calling number 06212000000 works OK, both for v0 and v_0,<br>* calling number 06212527755 works only if I unhide the caller's number. In other words, v5 works well but v_5 doesn't.<br><br>The two different internal numbers should be handled in the same way in my opinion, no extra setting is done for any of them.
<br><br>Here are my logs:<br><a href="http://particio.com/problem-1130-2.zip">http://particio.com/problem-1130-2.zip</a><br><br>and my config file:<br><a href="http://particio.com/openser.cfg.txt">http://particio.com/openser.cfg.txt
</a><br><br>Since I'm a novice in writing routing logic scripts, I cannot guarantee that you will see a perfect script in all manner... :-)<br><br><div><span class="gmail_quote">2007/11/28, Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
bogdan@voice-system.ro</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Zoltán,<br><br>could you post the sip traffic (inbound and outbound) ? in what route<br>are you using the uac_restore_from() function?</blockquote><div><br>I'm not sure that my logs contain all the sip traffic. Do they? As I can figure out, I use uac_restore_from in the route() function, in the INVITE part.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">anyhow, my advise is to upgrade to 1.2 version as in ~ 2 weeks the 1.3<br>will be release and
1.1 will become unsupported version.</blockquote><div><br>OK, I'll try to upgrade it to 1.2. Do you think my configuration can be easily upgraded to 1.2?<br></div><br>Thank you for your help in advance!<br><br>Best regards, Zoltan
<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">regards,<br>bogdan<br><br>Zoltán Kovács wrote:<br>> I found out that the uac_replace_from() function has a weird behaviour
<br>> on my system. The same result occurs for all the three
<br>> modparam("uac","from_restore_mode",...) settings ("auto", "none",<br>> "manual").<br>><br>> 1) I cannot change the display or the URI part in FROM header.
<br>> Whatever I do I'll get no change.<br>> 2) If a inbound hidden call is coming from an inbound trunk (#31#...)<br>> then uac_replace_from("XXX", "sip:YYY") unhides the display and the
<br>
> URI in FROM header --- however the displayed phone number will be<br>> independent from XXX or YYY, it will be the original phone number of<br>> the caller (XXX or YYY may be omitted, too). The text "sip:" cannot be
<br>> omitted.<br>><br>> I don't really have an idea what is going on here. Could you please<br>> help? I'm still using openser-1.1.0.<br>><br>> Thank you in advance. Best regards, Zoltan<br>>
<br>> 2007/11/27, Zoltán Kovács < <a href="mailto:kovzol@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">kovzol@gmail.com</a> <mailto:<a href="mailto:kovzol@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
kovzol@gmail.com</a>>>:<br>><br>> Dear Colleagues,<br>><br>> first of all, thank you for the great software which is a very
<br>> nice and convenient way to build up a stable VoIP telephone<br>> system! We already have a working system based on OpenSER and<br>> Asterisk.<br>><br>> After many experiments I finally raise this question to you
<br>> because I cannot figure out the solution. The problem described on<br>> <a href="http://www.openser.org/pipermail/users/2006-January/002747.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.openser.org/pipermail/users/2006-January/002747.html
</a><br>> <<a href="http://www.openser.org/pipermail/users/2006-January/002747.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.openser.org/pipermail/users/2006-January/002747.html
</a>><br>> seems to be very similar to mine.<br>><br>
> I am using openser-1.1.0-9etch1. I tried to replace the FROM<br>> variable as follows:<br>><br>> loadmodule "uac.so"<br>> modparam("uac","from_restore_mode","auto")
<br>> ...<br>> route<br>> {<br>> ...<br>> avp_write("$fU", "$avp(s:display)");<br>> avp_write("$fU", "$avp(s:dispuri)");<br>> avp_subst("$avp(s:display)", "/^36(.*)/06\1/");
<br>> avp_subst("$avp(s:dispuri)", "/^36(.*)/sip:<a>06\1@datanet.hu/</a>");<br>> uac_replace_from("$avp(s:display)", "$avp(s:dispuri)");
<br>> ...<br>> }<br>><br>> Unfortunately nothing seems to happen: no change is made on<br>> several VoIP telephones, including X-Lite as well. loose_route()<br>> and record_route() were also used in my configuration. Could you
<br>> please help me what I am missing here? If needed, I can also send<br>> a full config file.<br>><br>> Thank you in advance,<br>> Zoltan Kovacs<br>> sysadmin<br>><br>><br>>
<br>><br>> --<br>> <a href="http://matek.hu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">matek.hu</a> <<a href="http://matek.hu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://matek.hu</a>> --- mert matekból érettségizni mindenkinek<br>> kell...<br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@lists.openser.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Users@lists.openser.org
</a><br>> <a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>><br><br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://matek.hu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
matek.hu</a> --- mert matekból érettségizni mindenkinek kell...