asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb [2013/06/03 21:32]
admin
asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb [2014/04/30 16:35] (current)
admin [Config File]
Line 1389: Line 1389:
 # Authentication route # Authentication route
 route[AUTH] { route[AUTH] {
 +
 + # if caller is not local subscriber, then check if it calls
 + # a local destination,​ otherwise deny, not an open relay here
 + if (from_uri!=myself && uri!=myself)
 + {
 + sl_send_reply("​403","​Not relaying"​);​
 + exit;
 + }
 +
 #!ifdef WITH_AUTH #!ifdef WITH_AUTH
  
Line 1420: Line 1429:
  consume_credentials();​  consume_credentials();​
  }  }
- # if caller is not local subscriber, then check if it calls 
- # a local destination,​ otherwise deny, not an open relay here 
- if (from_uri!=myself && uri!=myself) 
- { 
- sl_send_reply("​403","​Not relaying"​);​ 
- exit; 
- } 
- 
 #!endif #!endif
  return;  return;


Copyright 2010-2020 Asipto.com