<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000"><span>Hi Abel,<br>
  <br>
this is a issue with different domain vs R-URI when call comes from 
PSTN, see below:<br>
  <br>
Abel Alejandro wrote:</span><br>
<blockquote 
cite="mid:CAKiNg215_YW55QfEc3oEe2S2hu8iX8Qn=C_8tQsVkPD1fGh3eQ@mail.gmail.com"
 type="cite">
  <div>According to MySQL its on the database:</div>
  <div><br></div>
  <div><div>mysql> select * from dbaliases where 
alias_username='17879217782';</div><div>+------+----------------+---------------------+-------------+---------------------+------------+</div><div>|
 id   | alias_username | alias_domain        | username    | domain      
        | is_primary |</div><div>+------+----------------+---------------------+-------------+---------------------+------------+</div><div>|
 1721 | 17879217782    | <a moz-do-not-send="true" 
href="http://sip.fusetelecom.com">sip.fusetelecom.com</a> | 17879217782 |
 <a moz-do-not-send="true" href="http://sip.fusetelecom.com">sip.fusetelecom.com</a>
 |          1 |</div><div>+------+----------------+---------------------+-------------+---------------------+------------+</div><div>1
 row in set (0.00 sec)</div><div><br></div><div>mysql> </div></div>
  <div><br></div>
  <div>Log from proxy:</div>
  <div><br></div>
  <div><div>root@<a class="moz-txt-link-freetext" href="sip:/var/log/ngcp#">sip:/var/log/ngcp#</a> grep <a moz-do-not-send="true" 
href="mailto:2A7EACF0@10.246.9.8">2A7EACF0@10.246.9.8</a> 
kamailio-proxy.log </div><div><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;">Mar  5
 00:20:28</span></span></span></span></span></span></span></span> sip 
proxy[3757]: NOTICE: <script>: New request on proxy - M=INVITE 
R=<a class="moz-txt-link-freetext" href="sip:7879217782@74.85.156.17:5060;transport=udp">sip:7879217782@74.85.156.17:5060;transport=udp</a> F=<a 
moz-do-not-send="true" href="http://sip:17875868313@196.12.170.244:5060">sip:17875868313@196.12.170.244:5060</a>
 T=<a moz-do-not-send="true" 
href="http://sip:7879217782@74.85.156.17:5060">sip:7879217782@74.85.156.17:5060</a>
 IP=<a moz-do-not-send="true" href="http://196.12.170.244:5060">196.12.170.244:5060</a>
 (<a moz-do-not-send="true" href="http://127.0.0.1:5060">127.0.0.1:5060</a>)
 ID=<a moz-do-not-send="true" href="mailto:2A7EACF0@10.246.9.8">2A7EACF0@10.246.9.8</a>
 UA='<null>'</div><div><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;"><span 
__postbox-detected-content="__postbox-detected-date" 
class="__postbox-detected-content __postbox-detected-date" 
displaystyle="display: inline; font-size: inherit; padding: 0pt;">Mar  5
 00:20:28</span></span></span></span></span></span></span></span> sip 
proxy[3757]: NOTICE: <script>: Call from PSTN - 
R=<a class="moz-txt-link-freetext" href="sip:7879217782@74.85.156.17:5060;transport=udp">sip:7879217782@74.85.156.17:5060;transport=udp</a> ID=<a 
moz-do-not-send="true" href="mailto:2A7EACF0@10.246.9.8">2A7EACF0@10.246.9.8</a>
 UA='<null>'</div></div>
</blockquote>
The difference is that the failed call is coming from PSTN and has an IP
 address in request line.<br>
In that case you should add 74.85.156.17 as an empty domain for the 
proxy to be able to find the subscriber.<br>
<br>
In working call you have @ <a moz-do-not-send="true" 
href="http://sip.fusetelecom.com">sip.fusetelecom.com</a> domain.<br>
<br>
Andrew<br>
</body></html>