# How are calls from Asterisk systems tracked?

**URL:** <https://community.asterisk.org/t/how-are-calls-from-asterisk-systems-tracked/88734>\
**Category:** Asterisk Support\
**Created:** [May 27, 2021, 6:19am UTC](https://community.asterisk.org/t/how-are-calls-from-asterisk-systems-tracked/88734 "2021-05-27T06:19:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iforgetmyaccountofte](https://avatars.discourse-cdn.com/v4/letter/i/a9a28c/32.png) [@Iforgetmyaccountofte](https://community.asterisk.org/u/Iforgetmyaccountofte)\
**Post date:** [May 27, 2021, 6:19am UTC](https://community.asterisk.org/t/how-are-calls-from-asterisk-systems-tracked/88734/1 "2021-05-27T06:19:45Z")

</div>

Alternate title: What are the unique identifiers Asterisk sends when you make a call?

This is a general telephony question that’s been on my mind ever since I started learning Asterisk. I really didn’t know how to ask this so I split it into 3 questions.

Part 1:  
It’s common knowledge that if you want to trace a phone call you dial \*57, but how does that apply to calls made from an Asterisk system hosted on a cloud server that might not even have an Inbound route?  
Are they traceable? Could you explain how the tracing system works?

Part 2:  
To make the situation even more complicated what about a DISA call?  
If you attempted to \*57 a call coming from a DISA route would you get information for the original caller or the PBX they are calling through?  
My guess would be the PBX acts as a proxy. Is that correct?

Part 3:  
Is there a way to blacklist another PBX server from calling into your PBX?

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [May 27, 2021, 11:28am UTC](https://community.asterisk.org/t/how-are-calls-from-asterisk-systems-tracked/88734/2 "2021-05-27T11:28:04Z")

</div>

That tracing code probably only applies to one country and possibly only to the analogue network.

I’m not aware of any standard way of tracing a VoIP all (e.g.a SIP call). although the call will typically make log entries from which it can be reconstructed. One might argue that it is a weakness of Asterisk that it doesn’t log the call ID, except in detailed debugging, but that probably stems from being multi-protocol; legacy systems don’t have call IDs.

Asterisk is a toolkit, so, if you want a code to do a trace, you have to write dialplan and features codes to implement it.

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [May 27, 2021, 11:31am UTC](https://community.asterisk.org/t/how-are-calls-from-asterisk-systems-tracked/88734/3 "2021-05-27T11:31:41Z")

</div>

> [@Iforgetmyaccountofte](#):
>
> Is there a way to blacklist another PBX server from calling into your PBX?

Don’t plug the T1 cable in from them!

For SIP, use Permit and Deny. Most people Deny everyone except their ITSP and don’t accept direct SIP calls.

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [May 27, 2021, 11:36am UTC](https://community.asterisk.org/t/how-are-calls-from-asterisk-systems-tracked/88734/4 "2021-05-27T11:36:07Z")

</div>

> [@Iforgetmyaccountofte](#):
>
> \*57

This is, technically, Malicious Call Identification, not trace. It looks like it is North America only and it tells the operator that you consider the call malicious.

---

<div class="post-metadata">

**Author:** ![khamlichi.khalil](https://avatars.discourse-cdn.com/v4/letter/k/e274bd/32.png) [@khamlichi.khalil](https://community.asterisk.org/u/khamlichi.khalil)\
**Post date:** [May 27, 2021, 2:14pm UTC](https://community.asterisk.org/t/how-are-calls-from-asterisk-systems-tracked/88734/5 "2021-05-27T14:14:37Z")

</div>

this is a question for the fbi mailing list or maybe i forgot my account mailing list ?

---

<div class="post-metadata">

**Author:** ![Iforgetmyaccountofte](https://avatars.discourse-cdn.com/v4/letter/i/a9a28c/32.png) [@Iforgetmyaccountofte](https://community.asterisk.org/u/Iforgetmyaccountofte)\
**Post date:** [May 27, 2021, 2:56pm UTC](https://community.asterisk.org/t/how-are-calls-from-asterisk-systems-tracked/88734/6 "2021-05-27T14:56:56Z")

</div>

> [@david551](#):
>
> Asterisk is a toolkit, so, if you want a code to do a trace, you have to write dialplan and features codes to implement it.

That’s pretty cool. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [June 26, 2021, 2:57pm UTC](https://community.asterisk.org/t/how-are-calls-from-asterisk-systems-tracked/88734/7 "2021-06-26T14:57:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
