I have now resolved this issue with;<br><br> <condition field="privacy_hide_number" expression="true" continue="true" break="never"><br> <action application="set" data="sip_h_Privacy=id"/><br>
<action application="set" data="effective_caller_id_number=Unknown"/><br> <action application="set" data="effective_caller_id_name=Unknown"/><br> </condition><br>
<br><br><div class="gmail_quote">On Fri, May 27, 2011 at 4:43 PM, Liam Farr <span dir="ltr"><<a href="mailto:liam@intersys.co.nz">liam@intersys.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div link="blue" vlink="purple" lang="EN-NZ"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Hi,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">When I receive an inbound call with Privacy: id set in the SIP invite freeswitch isn’t stripping off the caller I’d when passing the call onto an internal extension?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">The inbound invite looks like this;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">recv 1091 bytes from udp/[23.51.15.101]:5060 at 04:14:28.246255:</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> ------------------------------------------------------------------------</span></p><p class="MsoNormal">
<span style="font-size:11.0pt;color:#1F497D"> INVITE <a href="mailto:sip%3A92568888@202.55.98.6" target="_blank">sip:92568888@202.55.98.6</a> SIP/2.0</span></p><p class="MsoNormal">
<span style="font-size:11.0pt;color:#1F497D"> Max-Forwards: 69</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Supported: 100rel</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> To: <<a href="mailto:sip%3A92568888@202.55.98.6" target="_blank">sip:92568888@202.55.98.6</a>></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;color:#1F497D"> From: <<a href="mailto:sip%3A225553389@23.51.15.101" target="_blank">sip:225553389@23.51.15.101</a>>;tag=3515458594-499967</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> P-Asserted-Identity: <<a href="mailto:sip%3A225553389@23.51.15.101" target="_blank">sip:225553389@23.51.15.101</a>></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Privacy: id</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Call-ID: <a href="mailto:23213457-3515458594-499959@MSX-101.squiggly.net" target="_blank">23213457-3515458594-499959@MSX-101.squiggly.net</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> CSeq: 1 INVITE</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Allow: INVITE, BYE, OPTIONS, CANCEL, ACK, REGISTER, NOTIFY, INFO, REFER, SUBSCRIBE, PRACK</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Via: SIP/2.0/UDP 23.51.15.101:5060;branch=z9hG4bKf91a7732fbc823dc2c3252d3f7ec83fc</span></p><p class="MsoNormal">
<span style="font-size:11.0pt;color:#1F497D"> Contact: <sip:225553389@23.51.15.101:5060;tgrp=2Degrees_sst03></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Expires: 180</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Call-Info: <sip:23.51.15.101>;method="NOTIFY;Event=telephone-event;Duration=1000"</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Allow-Events: telephone-event</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Content-Type: application/sdp</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Content-Length: 369</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> v=0</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> o=MSX-101 8787 8322 IN IP<a href="tel:4%2023.51.15.101" value="+14235115101" target="_blank">4 23.51.15.101</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> s=sip call</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> c=IN IP<a href="tel:4%2023.51.15.103" value="+14235115103" target="_blank">4 23.51.15.103</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> t=0 0</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> m=audio 29708 RTP/AVP 8 0 18 4 100 101</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=rtpmap:8 PCMA/8000</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=rtpmap:0 PCMU/8000</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=rtpmap:18 G729/8000</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=fmtp:18 annexb=yes</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=rtpmap:4 G723/8000</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=fmtp:4 bitrate=6.3;annexa=yes</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=rtpmap:100 X-NSE/8000</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=fmtp:100 192-194</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=rtpmap:101 telephone-event/8000</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=fmtp:101 0-16</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">With the internal invite looking like this;</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">send 1083 bytes to udp/<a href="tel:%5B202.55.98.122" value="+12025598122" target="_blank">[202.55.98.122</a>]:5080 at 04:14:28.260497:</span></p><p class="MsoNormal">
<span style="font-size:11.0pt;color:#1F497D"> ------------------------------------------------------------------------</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> INVITE <a href="http://sip:555@202.55.98.122:5080" target="_blank">sip:555@202.55.98.122:5080</a> SIP/2.0</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Via: SIP/2.0/UDP 202.55.98.7;rport;branch=z9hG4bK20Bv5jcFpj00c</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Max-Forwards: 67</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> From: "225553389" <<a href="mailto:sip%3A225553389@202.55.98.7" target="_blank">sip:225553389@202.55.98.7</a>>;tag=8eK40BpUtXSUB</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> To: <<a href="http://sip:555@202.55.98.122:5080" target="_blank">sip:555@202.55.98.122:5080</a>></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Call-ID: a7bce49f-02ba-122f-a19a-8903425aa839</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> CSeq: 12898770 INVITE</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Contact: <<a href="http://sip:mod_sofia@202.55.98.7:5060" target="_blank">sip:mod_sofia@202.55.98.7:5060</a>></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> User-Agent: FreeSWITCH-mod_sofia/1.0.7-svn-exported</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Supported: timer, precondition, path, replaces</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Privacy: id</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Content-Type: application/sdp</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Content-Disposition: session</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> Content-Length: 203</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> X-FS-Support: update_display</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> P-Asserted-Identity: "225553389" <<a href="mailto:sip%3A225553389@202.55.98.7" target="_blank">sip:225553389@202.55.98.7</a>></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> v=0</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> o=FreeSWITCH 1306450788 1306450789 IN IP4 202.55.98.7</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> s=FreeSWITCH</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> c=IN IP4 202.55.98.7</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> t=0 0</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> m=audio 18880 RTP/AVP 8 9 0 101 13</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=rtpmap:101 telephone-event/8000</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=fmtp:101 0-16</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> a=ptime:20</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">As you can see the caller id is passed onto the internal extension, where I really need to strip it off / replace it with restricted / anonymous. Is there a way to catch this as a variable in the inbound dial plan?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Thanks</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><font color="#888888">
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Liam <br></span></p></font></div></div>
</blockquote></div>