<div dir="ltr"><div>Hi <br></div><div>I have a configuration with sip accounts which authenticate with the real name of the customers</div><div>ex:</div><div><br></div><div><a href="mailto:customer1@sip.myvoip.dev" target="_blank">customer1@sip.myvoip.dev</a></div><div><div><a href="mailto:customer2@sip.myvoip.dev" target="_blank">customer2@sip.myvoip.dev</a></div><div><div>...</div><div><br></div><div><br></div><div>INBOUND call of multiple numbers are connected with alias_db to the accounts <br></div><div><br></div><div>ex: <br>+331234567890 | <a href="http://sip.myvoip.dev" target="_blank">sip.myvoip.dev</a>        | customer1      | <a href="http://sip.myvoip.dev" target="_blank">sip.myvoip.dev</a> |<br>+331234567891 | <a href="http://sip.myvoip.dev" target="_blank">sip.myvoip.dev</a>        | customer1      | <a href="http://sip.myvoip.dev" target="_blank">sip.myvoip.dev</a> |</div><div><br>+341234567893 | <a href="http://sip.myvoip.dev" target="_blank">sip.myvoip.dev</a>        | customer2      | <a href="http://sip.myvoip.dev" target="_blank">sip.myvoip.dev</a> |<br>+341234567894 | <a href="http://sip.myvoip.dev" target="_blank">sip.myvoip.dev</a>        | customer2      | <a href="http://sip.myvoip.dev" target="_blank">sip.myvoip.dev</a> |<br>...</div><div><br></div><div>and all works perfectly.<br></div><div><br></div><div><br></div><div>OUTBOUND call </div><div>after authentication with the username kamailio change the caller id and the ip of my ISP-SIP-TRUNK</div><div>to relay the call with the correct CID for the ISP using the variable $fn  (display name in the From header)</div><div><br></div><div>[SIP-GW-ISP]</div><div>{<br></div><div>                #out with ISP<br>                route(CID);<br>                $ru = "sip:" + $rU + "@" + "IP_ADDRESS_MY-ISP";       <br>                route(RELAY);</div><div>                exit;</div><div>}</div><div><br></div><div>ROUTE[CID]</div><div>{<br>        $var(caller) = $(fn{re.subst,/"//g});<br>        uac_replace_from("$var(caller)","sip:$var(caller)@$fd");<br> }<br></div><div><br></div><div><span dir="ltr" class="gmail-_3-8er gmail-selectable-text gmail-copyable-text"><span>Is possible do it with a different approach for example using Remote-Party-ID ,  PPI P-Preferred-Identity ? <br></span></span></div><div><span dir="ltr" class="gmail-_3-8er gmail-selectable-text gmail-copyable-text"><span>Is possible to check if the customer uses the correct outbound number present in the alias_db table ?
</span></span></div><br><div>ex <br></div><div>for customer1 only +331234567890 or +331234567891 numbers<br></div><div><br></div><div><br></div><div>many thanks</div><div><br></div><div>Luca<br></div></div></div></div>