[Spce-user] reject call from pstn if callee is not local
Jon Bonilla (Manwe)
jbonilla at sipwise.com
Tue Apr 9 13:21:42 EDT 2013
El Tue, 9 Apr 2013 19:13:59 +0200
Francisco Franco Gallego <francisco.franco at ethcero.es> escribió:
> This is after creating the ip-domain. Proxy return 404
>
> Option in config.yml
> proxy:
> allow_peer_relay: 'no'
>
>
>
What you send below is exactly what I would expect.
>
> INVITE sip:868189707 at AAA.AAA.AAA.AAA SIP/2.0
> Record-Route: <sip:CCC.CCC.CCC.CCC;lr=on;did=d3a.e5f3808>
> Via: SIP/2.0/UDP CCC.CCC.CCC.CCC;branch=z9hG4bKc852.8c5ee8d.0
> Via: SIP/2.0/UDP
> BBB.BBB.BBB.BBB:5060;branch=z9hG4bK1d4e605e41131b763INV2e8033cb516442ee
> Max-Forwards: 34
> Contact: <sip:637510038 at BBB.BBB.BBB.BBB:5060>
> To: <sip:868189707 at CCC.CCC.CCC.CCC;noa=national>
> From: <sip:637510038 at BBB.BBB.BBB.BBB
> ;noa=national>;tag=2e8033cb-co2962-INS001
> Call-ID: 516442ee000012c800000013724c76af at ens.com
> CSeq: 296201 INVITE
> Content-Type: application/sdp
> Date: Tue, 09 Apr 2013 16:33:50 GMT
> User-Agent: ENSR2.5.48.35-IS1-RMRG484-RG3061-CPO4809
> Content-Length: 305
> v=0
> o=- 780153803 780153803 IN IP4 BBB.BBB.BBB.BBB
> s=ENSResip
> c=IN IP4 DDD.DDD.DDD.DDD
> t=0 0
> m=audio 20888 RTP/AVP 8 0 4 18 101
> a=rtpmap:8 PCMA/8000
> a=rtpmap:0 PCMU/8000
> a=rtpmap:4 G723/8000
> a=rtpmap:18 G729/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:18 annexb=no
> a=fmtp:101 0-15
> a=sendrecv
>
> SIP/2.0 100 Trying
> Via: SIP/2.0/UDP CCC.CCC.CCC.CCC;rport=5060;branch=z9hG4bKc852.8c5ee8d.0
> Via: SIP/2.0/UDP
> BBB.BBB.BBB.BBB:5060;branch=z9hG4bK1d4e605e41131b763INV2e8033cb516442ee
> To: <sip:868189707 at CCC.CCC.CCC.CCC;noa=national>
> From: <sip:637510038 at BBB.BBB.BBB.BBB
> ;noa=national>;tag=2e8033cb-co2962-INS001
> Call-ID: 516442ee000012c800000013724c76af at ens.com
> CSeq: 296201 INVITE
> Server: Sipwise NGCP Proxy 2.X
> Content-Length: 0
>
> SIP/2.0 404 Not Found
> Via: SIP/2.0/UDP CCC.CCC.CCC.CCC;rport=5060;branch=z9hG4bKc852.8c5ee8d.0
> Via: SIP/2.0/UDP
> BBB.BBB.BBB.BBB:5060;branch=z9hG4bK1d4e605e41131b763INV2e8033cb516442ee
> To: <sip:868189707 at CCC.CCC.CCC.CCC
> ;noa=national>;tag=f3067022b00c564156251ba2f28f331f-7b2f
> From: <sip:637510038 at BBB.BBB.BBB.BBB
> ;noa=national>;tag=2e8033cb-co2962-INS001
> Call-ID: 516442ee000012c800000013724c76af at ens.com
> CSeq: 296201 INVITE
> Server: Sipwise NGCP Proxy 2.X
> Content-Length: 0
>
> ACK sip:868189707 at AAA.AAA.AAA.AAA SIP/2.0
> Via: SIP/2.0/UDP CCC.CCC.CCC.CCC;branch=z9hG4bKc852.8c5ee8d.0
> Max-Forwards: 34
> To: <sip:868189707 at CCC.CCC.CCC.CCC
> ;noa=national>;tag=f3067022b00c564156251ba2f28f331f-7b2f
> From: <sip:637510038 at BBB.BBB.BBB.BBB
> ;noa=national>;tag=2e8033cb-co2962-INS001
> Call-ID: 516442ee000012c800000013724c76af at ens.com
> CSeq: 296201 ACK
> Content-Length: 0
>
>
>
>
>
>
>
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: New
> request - M=INVITE
> R=sip:868189707 at AAA.AAA.AAA.AAAF=sip:637510038 at BBB.BBB.BBB.BBB;noa=national
> T=sip:868189707 at CCC.CCC.CCC.CCC;noa=national IP=CCC.CCC.CCC.CCC:5060 (
> 127.0.0.1:5060) ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Call
> from PSTN - R=sip:868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Load
> peer preferences for peer host '5' - R=sip:868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Load
> dialplan IDs for peer host '5' - R=sip:868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Fetched
> dialplan IDs caller_in='5', callee_in='6' - R=sip:868189707 at AAA.AAA.AAA.AAAID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Dialog
> set mark total - R=sip:868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Dialog
> set mark peer to '5' - R=sip:868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: IP
> authorization for caller not provisioned, allow call -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>:
> User-Provided CLI '637510038' taken from From-User -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>:
> Network-Provided CLI '637510038' taken from From-User -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Applying
> caller-in peer rewrite rules on user-provided CLI using dpid '5' -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: No
> matching rewrite rules for '637510038' found -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Applying
> caller-in peer rewrite rules on network-provided CLI using dpid '5' -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: No
> matching rewrite rules for '637510038' found -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Setting
> '637510038 at BBB.BBB.BBB.BBB' as initiating user-provided CLI -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Setting
> '637510038 at BBB.BBB.BBB.BBB' as initiating network-provided CLI -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>:
> Searching for callee - R=sip:868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Applying
> callee-in peer rewrite rules using dpid '6' -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>:
> Rewriting callee '868189707' to '34868189707' -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Clear
> callee preferences - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Callee
> is not local - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Check
> Administrative NCOS level - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Check
> User NCOS level - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Checking
> URI '34868189707 at AAA.AAA.AAA.AAA' and CLI '34868189707' against block out
> lists - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Admin
> caller block mode is 'open' - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Caller
> block mode is 'open' - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Call to
> unknown user - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>:
> Accounting failed request for uuid '0' - R=sip:34868189707 at AAA.AAA.AAA.AAAID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Setting
> acc source-leg for uuid '0':
> '0|637510038|CCC.CCC.CCC.CCC|637510038|||<null>|||0|call|<null>|1365525184.942300'
> - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: Setting
> acc destination-leg for uuid '0':
> '0|||<null>|868189707|0|34868189707|AAA.AAA.AAA.AAA|34868189707|AAA.AAA.AAA.AAA'
> - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:04 SIPWISE /usr/sbin/kamailio[18125]: INFO: <script>: New
> request - M=ACK
> R=sip:868189707 at AAA.AAA.AAA.AAAF=sip:637510038 at BBB.BBB.BBB.BBB;noa=national
> T=sip:868189707 at CCC.CCC.CCC.CCC;noa=national IP=CCC.CCC.CCC.CCC:5060 (
> 127.0.0.1:5060) ID=516442c100000c1d00000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: New
> request - M=INVITE
> R=sip:868189707 at AAA.AAA.AAA.AAAF=sip:637510038 at BBB.BBB.BBB.BBB;noa=national
> T=sip:868189707 at CCC.CCC.CCC.CCC;noa=national IP=CCC.CCC.CCC.CCC:5060 (
> 127.0.0.1:5060) ID=516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Call
> from PSTN - R=sip:868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Load
> peer preferences for peer host '5' - R=sip:868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Load
> dialplan IDs for peer host '5' - R=sip:868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Fetched
> dialplan IDs caller_in='5', callee_in='6' - R=sip:868189707 at AAA.AAA.AAA.AAAID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Dialog
> set mark total - R=sip:868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Dialog
> set mark peer to '5' - R=sip:868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: IP
> authorization for caller not provisioned, allow call -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>:
> User-Provided CLI '637510038' taken from From-User -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>:
> Network-Provided CLI '637510038' taken from From-User -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Applying
> caller-in peer rewrite rules on user-provided CLI using dpid '5' -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: No
> matching rewrite rules for '637510038' found -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Applying
> caller-in peer rewrite rules on network-provided CLI using dpid '5' -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: No
> matching rewrite rules for '637510038' found -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Setting
> '637510038 at BBB.BBB.BBB.BBB' as initiating user-provided CLI -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Setting
> '637510038 at BBB.BBB.BBB.BBB' as initiating network-provided CLI -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>:
> Searching for callee - R=sip:868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Applying
> callee-in peer rewrite rules using dpid '6' -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>:
> Rewriting callee '868189707' to '34868189707' -
> R=sip:868189707 at AAA.AAA.AAA.AAA ID=516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Clear
> callee preferences - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Callee
> is not local - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Check
> Administrative NCOS level - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Check
> User NCOS level - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Checking
> URI '34868189707 at AAA.AAA.AAA.AAA' and CLI '34868189707' against block out
> lists - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Admin
> caller block mode is 'open' - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Caller
> block mode is 'open' - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Call to
> unknown user - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>:
> Accounting failed request for uuid '0' - R=sip:34868189707 at AAA.AAA.AAA.AAAID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Setting
> acc source-leg for uuid '0':
> '0|637510038|CCC.CCC.CCC.CCC|637510038|||<null>|||0|call|<null>|1365525230.244168'
> - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18129]: INFO: <script>: Setting
> acc destination-leg for uuid '0':
> '0|||<null>|868189707|0|34868189707|AAA.AAA.AAA.AAA|34868189707|AAA.AAA.AAA.AAA'
> - R=sip:34868189707 at AAA.AAA.AAA.AAA ID=
> 516442ee000012c800000013724c76af at ens.com
> Apr 9 18:33:50 SIPWISE /usr/sbin/kamailio[18132]: INFO: <script>: New
> request - M=ACK
> R=sip:868189707 at AAA.AAA.AAA.AAAF=sip:637510038 at BBB.BBB.BBB.BBB;noa=national
> T=sip:868189707 at CCC.CCC.CCC.CCC;noa=national IP=CCC.CCC.CCC.CCC:5060 (
> 127.0.0.1:5060) ID=516442ee000012c800000013724c76af at ens.com
>
>
>
> 2013/4/9 Jon Bonilla <jbonilla at sipwise.com>
>
> > El Tue, 9 Apr 2013 17:11:57 +0200
> > Francisco Franco Gallego <francisco.franco at ethcero.es> escribió:
> >
> > > Like this?
> > >
> > > Apr 9 14:44:36 SIPWISE /usr/sbin/kamailio[18126]: INFO: <script>:
> > Relaying
> > > request, du='<null>' - R=sip:34968407243 at AAA.AAA.AAA.AAA
> > > ID=4D966B7D-A05211E2-9850AA41-32F302A7 at BBB.BBB.BBB.BBB
> > >
> >
> > No. This is not your case. And I don't think you enabled that option in
> > config.yml, right?
> >
> >
> > Please go back in the thread and send the ngrep capture and the proxy logs
> > to
> > check that the system is sending back a 404 after creating the ip-domain.
> >
> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130409/d62437ed/attachment-0001.asc>
More information about the Spce-user
mailing list