<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Mike,<div class=""><br class=""></div><div class="">yes.</div><div class="">In fact, the behavior I am looking to alter is the one documented on Confluence as:</div><div class=""><br class=""></div><div class="">caller_id_number:</div><div class=""><p style="margin: 10px 0px 0px; padding: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif;" class="">The caller id phone number set by the inbound call, not a real variable. Practically it is read only. From sofia.c, the values used (in precedence) are the user parts from: P-Preferred-Identity, P-Asserted-Identity, Remote-Party-ID, and the From header.</p><div class=""><br class=""></div><div class="">I am trying to figure out a good reason to prevent this behavior to be altered.</div><div class="">As there is no real normalization on PPI/PAI/RPID/From usage (is there at least an attempt ?), one should be able to define its own order of priority per profile.</div><div class="">If if was better at &nbsp;C, I would write the patch myself, but I generally write awful code :)</div><div class=""><br class=""></div><div class="">
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div style="color: rgb(0, 0, 0); " class=""><span class="Apple-style-span" style="color: rgb(0, 34, 243); font-family: 'Helvetica Neue'; "><font class="Apple-style-span" color="#1C00FF">David Ponzone<font class="Apple-style-span" face="Arial" size="2"><span class="Apple-converted-space">&nbsp;</span>&nbsp;</font></font></span><span class="Apple-style-span" style="color: rgb(0, 34, 243); font-family: 'Helvetica Neue'; "><font class="Apple-style-span" color="#000000">Direction Technique</font></span></div><div class=""><div style="font-family: Arial; font-size: 10px; " class=""><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email:&nbsp;<a href="mailto:david.ponzone@ipeva.fr" class="">david.ponzone@ipeva.fr</a></span></font></font></div><div style="font-family: Arial; font-size: 10px; " class=""><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: &nbsp; &nbsp; &nbsp;01 74 03 18 97</span></font></font></div><div style="font-family: Arial; font-size: 10px; " class=""><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: &nbsp; 06 66 98 76 34</span></font></font></div><div style="color: rgb(0, 34, 243); font-family: Arial; font-size: 10px; " class=""><font class="Apple-style-span" face="'Helvetica Neue'"><br class=""></font></div><div style="color: rgb(0, 34, 243); " class=""><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client&nbsp;</font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div style="color: rgb(0, 34, 243); font-family: Arial; font-size: 10px; " class=""><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div class=""><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: &nbsp; &nbsp; &nbsp;0811 46 26 26</span></font></font></div><div class=""><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); " class=""><span style="text-decoration: underline; " class=""><a href="blocked::http://www.ipeva.fr/" class="">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); " class="">&nbsp; -&nbsp; &nbsp;<span style="color: rgb(0, 34, 243); text-decoration: underline; " class=""><a href="blocked::http://www.ipeva-studio.com/" class="">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); " class=""><span class="Apple-style-span" style="text-decoration: underline; "><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); " class=""><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); " class=""><i class="">Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération.&nbsp;</i><b class=""><i class="">IPeva</i></b><i class="">&nbsp;décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div class=""><i class=""><br class=""></i></div></span></div></span></font></div></span></font></div></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">Le 15 déc. 2016 à 16:58, Michael Jerris &lt;<a href="mailto:mike@jerris.com" class="">mike@jerris.com</a>&gt; a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class="">think that's good to affect send... in this case probably need to set profile var and override it in dialplan</div><div class=""><br class=""><div class="gmail_quote"><div class="">On Thu, Dec 15, 2016 at 10:51 AM Ítalo Rossi &lt;<a href="mailto:italo@freeswitch.org" class="">italo@freeswitch.org</a>&gt; wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try caller-id-type profile param <br class="gmail_msg"><div class="gmail_quote gmail_msg"><div class="gmail_msg">Em qui, 15 de dez de 2016 às 12:12, David Ponzone &lt;<a href="mailto:david.ponzone@ipeva.fr" class="gmail_msg" target="_blank">david.ponzone@ipeva.fr</a>&gt; escreveu:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg">Hello all,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">when FS receives an inbound call with a PAID header, it uses this number to fill the caller_id_number channel variable.</div><div class="gmail_msg">I can’t manage to alter this behavior for inbound legs.</div><div class="gmail_msg">At least, I’d like to tell FS to ignore the PAID because it’s wrong, and to use the SIP From for the caller_id_number.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Ideas ? Am I missing something obvious ?</div><div class="gmail_msg"><br class="gmail_msg"><div class="gmail_msg"><br class=""><br class=""><span class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word" class="gmail_msg"><div style="" class="gmail_msg"><span class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" style="color:rgb(0,34,243);font-family:'Helvetica Neue'"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" color="#1C00FF">David Ponzone<font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" face="Arial" size="2"><span class="m_-3567889854758676967m_8008713150110931266Apple-converted-space gmail_msg">&nbsp;</span>&nbsp;</font></font></span><span class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" style="color:rgb(0,34,243);font-family:'Helvetica Neue'"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span">Direction Technique</font></span></div><div class="gmail_msg"><div style="font-family:Arial;font-size:10px" class="gmail_msg"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" face="'Helvetica Neue'"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" size="3"><span class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" style="font-size:13px">email:&nbsp;<a href="mailto:david.ponzone@ipeva.fr" class="gmail_msg" target="_blank">david.ponzone@ipeva.fr</a></span></font></font></div><div style="font-family:Arial;font-size:10px" class="gmail_msg"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" face="'Helvetica Neue'"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" size="3"><span class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" style="font-size:13px">tel: &nbsp; &nbsp; &nbsp;01 74 03 18 97</span></font></font></div><div style="font-family:Arial;font-size:10px" class="gmail_msg"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" face="'Helvetica Neue'"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" size="3"><span class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" style="font-size:13px">gsm: &nbsp; 06 66 98 76 34</span></font></font></div><div style="color:rgb(0,34,243);font-family:Arial;font-size:10px" class="gmail_msg"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" face="'Helvetica Neue'"><br class="gmail_msg"></font></div><div style="color:rgb(0,34,243)" class="gmail_msg"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client&nbsp;</font><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" face="'Helvetica Neue'"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" color="#FF0000">IP</font></font><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div style="color:rgb(0,34,243);font-family:Arial;font-size:10px" class="gmail_msg"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" style="font-family: Helvetica;"><div class="gmail_msg"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" face="'Helvetica Neue'"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" size="3"><span class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" style="font-size:13px">tel: &nbsp; &nbsp; &nbsp;0811 46 26 26</span></font></font></div><div class="gmail_msg"><font class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" face="'Helvetica Neue'" size="3"><span class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" style="font-size:13px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Arial;color:rgb(0,34,243)" class="gmail_msg"><span style="text-decoration:underline" class="gmail_msg"><a class="gmail_msg">www.ipeva.fr</a></span><span style="color:rgb(101,104,149)" class="gmail_msg">&nbsp; -&nbsp; &nbsp;<span style="color:rgb(0,34,243);text-decoration:underline" class="gmail_msg"><a class="gmail_msg">www.ipeva-studio.com</a></span></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Arial;color:rgb(0,34,243)" class="gmail_msg"><span class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span" style="text-decoration:underline"><br class="gmail_msg"></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 10px/normal Arial;color:rgb(0,34,243)" class="gmail_msg"><span class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-style-span"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;text-align:justify;font:normal normal normal 10px/normal Arial;color:rgb(192,192,192)" class="gmail_msg"><i class="gmail_msg">Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération.&nbsp;</i><b class="gmail_msg"><i class="gmail_msg">IPeva</i></b><i class="gmail_msg">&nbsp;décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div class="gmail_msg"><i class="gmail_msg"><br class="gmail_msg"></i></div></span></div></span></font></div></span></font></div></div></div></span><br class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-interchange-newline"></span><br class="gmail_msg m_-3567889854758676967m_8008713150110931266Apple-interchange-newline"><br class=""><br class=""></div><br class=""><br class=""><br class="gmail_msg"></div></div>_________________________________________________________________________<br class="gmail_msg"><br class=""><br class="">Professional FreeSWITCH Consulting Services:<br class="gmail_msg"><br class=""><br class=""><a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg"><br class=""><br class=""><a href="http://www.freeswitchsolutions.com/" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg"><br class=""><br class=""><br class="gmail_msg"><br class=""><br class="">Official FreeSWITCH Sites<br class="gmail_msg"><br class=""><br class=""><a href="http://www.freeswitch.org/" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg"><br class=""><br class=""><a href="http://confluence.freeswitch.org/" rel="noreferrer" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg"><br class=""><br class=""><a href="http://www.cluecon.com/" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg"><br class=""><br class=""><br class="gmail_msg"><br class=""><br class="">FreeSWITCH-users mailing list<br class="gmail_msg"><br class=""><br class=""><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg"><br class=""><br class=""><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg"><br class=""><br class="">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg"><br class=""><br class=""><a href="http://www.freeswitch.org/" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a></blockquote></div><br class=""><br class="">_________________________________________________________________________<br class="gmail_msg"><br class="">Professional FreeSWITCH Consulting Services:<br class="gmail_msg"><br class=""><a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg"><br class=""><a href="http://www.freeswitchsolutions.com/" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg"><br class=""><br class="gmail_msg"><br class="">Official FreeSWITCH Sites<br class="gmail_msg"><br class=""><a href="http://www.freeswitch.org/" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg"><br class=""><a href="http://confluence.freeswitch.org/" rel="noreferrer" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg"><br class=""><a href="http://www.cluecon.com/" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg"><br class=""><br class="gmail_msg"><br class="">FreeSWITCH-users mailing list<br class="gmail_msg"><br class=""><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg"><br class=""><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg"><br class="">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg"><br class=""><a href="http://www.freeswitch.org/" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a></blockquote></div></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>