[Spce-user] reject call from pstn if callee is not local

Francisco Franco Gallego francisco.franco at ethcero.es
Tue Apr 9 09:52:28 EDT 2013


In calls from pstn, if callee is not local, the call go out like outgoing
calls. How can i reject these calls?



Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Call
from PSTN - R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Load
peer preferences for peer host '5' -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Load
dialplan IDs for peer host '5' -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Fetched
dialplan IDs caller_in='5', callee_in='6' -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Dialog
set mark total -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Dialog
set mark peer to '5' -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: IP
authorization for caller not provisioned, allow call -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>:
User-Provided CLI '637510038' taken from From-User -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>:
Network-Provided CLI '637510038' taken from From-User -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Applying
caller-in peer rewrite rules on user-provided CLI using dpid '5' -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: No
matching rewrite rules for '637510038' found -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Applying
caller-in peer rewrite rules on network-provided CLI using dpid '5' -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: No
matching rewrite rules for '637510038' found -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Setting
'637510038 at BBB.BBB.BBB.BBB' as initiating user-provided CLI -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Setting
'637510038 at BBB.BBB.BBB.BBB' as initiating network-provided CLI -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>:
Searching for callee -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Applying
callee-in peer rewrite rules using dpid '6' -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>:
Rewriting callee '968407243' to '34968407243' -
R=sip:968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Clear
callee preferences -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Check
Administrative NCOS level -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Check
User NCOS level -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Checking
URI '34968407243 at AAA.AAA.AAA.AAA' and CLI '34968407243' against block out
lists - R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Admin
caller block mode is 'open' -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Caller
block mode is 'open' -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Call to
foreign domain -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Dialog
set mark type to outgoing -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Setting
acc source-leg for uuid '0':
'0|637510038|CCC.CCC.CCC|637510038|||<null>|||0|call|<null>|1365511476.978240'
- R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Setting
acc destination-leg for uuid '0':
'0|||<null>|968407243|0|34968407243|AAA.AAA.AAA.AAA|34968407243|AAA.AAA.AAA.AAA'
- R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Relaying
request, du='<null>' -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Usage of
mediaproxy forced by preference -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Use
mediaproxy for forward direction for IPv4/IPv4 -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Remove
existing ICE candidates (if any) for callee -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Setting
P-Caller-UUID to '0' -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Setting
P-Callee-UUID to '0' -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Sessions
Timers disabled for caller -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Sessions
Timers disabled for callee -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Prepare
>From display-name setting -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: No
selector set, not setting CLI -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Prepare
>From username setting -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: No
selector set, not setting CLI -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Setting
>From to '<sip:637510038 at BBB.BBB.BBB.BBB>' -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Prepare
PAI username setting -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: No
selector set, not setting CLI -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Prepare
PPI username setting -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: No
selector set, not setting CLI -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Prepare
Diversion setting -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: No
selector set, not setting CLI -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Setting
P-Called-Party-ID '<sip:34968407243 at AAA.AAA.AAA.AAA>' -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Writing
sbc parameters  ;aleg_sst_enable=no;sst_enable=no -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Setting
'sip:AAA.AAA.AAA.AAA:5060' taken from R-URI as next hop after lb for PSTN
call - R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>:
Appending P-D-URI 'sip:127.0.0.1:5060;received=sip:AAA.AAA.AAA.AAA:5060' -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Forcing
request via B2BUA 'sip:127.0.0.1:5080' -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>: Request
leaving server, D-URI='sip:127.0.0.1:5080' -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18127]: INFO: <script>:
NAT-Reply - S=100 - Connecting M=INVITE IP=CCC.CCC.CCC:5060 (127.0.0.1:5080)
ID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: New
request - M=INVITE
R=sip:34968407243 at AAA.AAA.AAA.AAAF=sip:637510038 at BBB.BBB.BBB.BBBT=sip:34968407243 at AAA.AAA.AAA.AAAIP=AAA.AAA.AAA.AAA:5060
(
127.0.0.1:5060) ID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB_b2b-1
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>:
Authentication failed, no credentials -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB_b2b-1
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18128]: INFO: <script>: New
request - M=INVITE
R=sip:34968407243 at AAA.AAA.AAA.AAAF=sip:637510038 at BBB.BBB.BBB.BBBT=sip:34968407243 at AAA.AAA.AAA.AAAIP=AAA.AAA.AAA.AAA:5060
(
127.0.0.1:5060) ID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB_b2b-1
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18128]: INFO: <script>:
Authentication failed, invalid user -
R=sip:34968407243 at AAA.AAA.AAA.AAAID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB_b2b-1
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18130]: INFO: <script>:
NAT-Reply - S=407 - Proxy Authentication Required M=INVITE
IP=CCC.CCC.CCC:5060 (127.0.0.1:5080)
ID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
Apr  9 14:44:36 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: New
request - M=ACK
R=sip:968407243 at AAA.AAA.AAA.AAAF=sip:637510038 at BBB.BBB.BBB.BBBT=sip:968407243 at CCC.CCC.CCCIP=CCC.CCC.CCC:5060
(
127.0.0.1:5060) ID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20130409/409afc77/attachment.html>


More information about the Spce-user mailing list