<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Rod,<br>
<br>
You can set it directly:<br>
&lt;action
application="set"&gt;&lt;![CDATA[sip_h_Remote-Party-Identity="${caller_id_number}"
<a class="moz-txt-link-rfc2396E" href="sip:{$caller_id_number}@1.2.3.4">&lt;sip:{$caller_id_number}@1.2.3.4&gt;</a>;screen=yes;privacy=off]]&gt;&lt;/action&gt;<br>
&lt;action application="bridge" data="sofia/gateway/wherever/+$1"/&gt;<br>
<br>
--Dave<br>
<br>
<blockquote cite="mid:49B0D603.502@laposte.net" type="cite">
  <pre wrap="">using these functions like this did nothing on the SIP INVITE packet :'(

seven wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">try  
bridge 
({effective_caller_id_name 
="your_name",effective_caller_id_number="0000"}sofia/b-leg)

On Mar 5, 2009, at 9:00 PM, rod wrote:

  
    </pre>
    <blockquote type="cite">
      <pre wrap="">the A leg invite looks like this:
From: "Anonymous"<a class="moz-txt-link-rfc2396E" href="sip:anonymous@anonymous.invalid;user=phone">&lt;sip:anonymous@anonymous.invalid;user=phone&gt;</a>

it has been rewritten like this:
From: "Anonymous" <a class="moz-txt-link-rfc2396E" href="sip:000000anonymous@172.29.0.5">&lt;sip:000000anonymous@172.29.0.5&gt;</a>

rod

rod wrote:
    
      </pre>
      <blockquote type="cite">
        <pre wrap="">Hi Brian,

if I use the function effective_caller_id_number with my INVITE, I  
get this:

From: "Anonymous" <a class="moz-txt-link-rfc2396E" href="sip:000000anonymous@172.29.0.5">&lt;sip:000000anonymous@172.29.0.5&gt;</a>;tag=17geyFjX5p0gS.

this is not exactly what I'm looking for :p

rod


Brian West wrote:

      
        </pre>
        <blockquote type="cite">
          <pre wrap="">Well this depends on how you're placing the call.. if its a standard
bridge you can on the A-Leg set
"effective_caller_id_number=000${caller_id_number}" before you call
bridge.

Is the from already in the correct format?

/b

On Mar 5, 2009, at 6:12 AM, rod wrote:


        
          </pre>
          <blockquote type="cite">
            <pre wrap="">Dear list,

I'd like to rewrite the number in the Remote Party ID header and  
only in
this header.

ex: I'd like to prefix the caller  ID with a prefix code (000 in  
this
example) in the  RPID header :

      From: Anonymous<a class="moz-txt-link-rfc2396E" href="sip:anonymous@anonymous.invalid">&lt;sip:anonymous@anonymous.invalid&gt;</a>;tag=1208367
      Remote-Party-ID:
<a class="moz-txt-link-rfc2396E" href="sip:123456@10.10.10.10:5062;user=phone">&lt;sip: 
123456 
@10.10.10.10:5062;user=phone&gt;</a>;privacy=full;screen=yes;party=calling

should become:
      From: Anonymous<a class="moz-txt-link-rfc2396E" href="sip:anonymous@anonymous.invalid">&lt;sip:anonymous@anonymous.invalid&gt;</a>;tag=1208367
      Remote-Party-ID:
<a class="moz-txt-link-rfc2396E" href="sip:000123456@10.10.10.10:5062;user=phone">&lt;sip: 
000123456 
@10.10.10.10:5062;user=phone&gt;</a>;privacy=full;screen=yes;party=calling

But the From field should remain unchanged.

And how to strip this prefix:
      From: Anonymous<a class="moz-txt-link-rfc2396E" href="sip:anonymous@anonymous.invalid">&lt;sip:anonymous@anonymous.invalid&gt;</a>;tag=1208367
      Remote-Party-ID:
<a class="moz-txt-link-rfc2396E" href="sip:000123456@10.10.10.10:5062;user=phone">&lt;sip: 
000123456 
@10.10.10.10:5062;user=phone&gt;</a>;privacy=full;screen=yes;party=calling

should become:
      From: Anonymous<a class="moz-txt-link-rfc2396E" href="sip:anonymous@anonymous.invalid">&lt;sip:anonymous@anonymous.invalid&gt;</a>;tag=1208367
      Remote-Party-ID:
<a class="moz-txt-link-rfc2396E" href="sip:123456@10.10.10.10:5062;user=phone">&lt;sip: 
123456 
@10.10.10.10:5062;user=phone&gt;</a>;privacy=full;screen=yes;party=calling


regards.

          
            </pre>
          </blockquote>
          <pre wrap="">------------------------------------------------------------------------

_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>


        
          </pre>
        </blockquote>
        <pre wrap="">_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>



      
        </pre>
      </blockquote>
      <pre wrap="">_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
    
      </pre>
    </blockquote>
    <pre wrap="">
_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>


  
    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>


  </pre>
</blockquote>
<br>
</body>
</html>