but that’s just because of the way we process SIP and the way the protocol works.
Just for the record, don’t confuse how a B2BUA like Asterisk does things compared to the rest. With many softswitches/SBCs/Proxies that have call accounting they can tell you exactly who hung up the call. That’s because BYE and CANCEL are out-of-dialog transactions that are related to the current SIP transaction.
You are viewing: How To Check Who Hung Up A Call
Read more : Who Owns The Inn At Perry Cabin
Not only can you see the source of the request but the From and To headers are also updated because if I was the one called (To user) and then I sent the BYE it shows the From user as me and then to To user as the caller.
This is part of why I don’t use Asterisk for CDRs (along with they only do completed calls) or certain functions like Call Forwarding. When a use has CF set up (which can support multiple numbers in my case) the proxies/switches deal with it so to Asterisk it’s just one call while the other systems can call the CF numbers in order (or at once) and it will track each call and create CDRs for each attempt and tag the connected one as the call.
Read more : Who Will Be Eliminated On The Voice Tonight
So PSTN Caller to User A, User A CF always to User B, User B rings for 30 seconds with no Answer and User B has a CFU that is a mobile number to it calls the PSTN. Now I have a CDR/accounting record of PSTN Caller to User A then User A to User B and User B to PSTN however now I have all three CDRs for a single call
There are multiple benefits for this. 1) Asterisk still thinks this is a single call. It’s not hanging up channels and creating new channels for each leg of this call. Which reduces the load on Asterisk. 2) I can bill User A for the origination of the call. 3) I can bill User B for termination of the call. 4) I can bill User A for calling User B however I have free On-Net calling so since they are both users on the network the call between them is free. 5) As I said I have three CDRs for this call not the 10-15 Asterisk is going to generate for each exten/context the call lands on.
Source: https://t-tees.com
Category: WHO