-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diversion header #81
Comments
In my case, the call with a diversion header is completely ignored. INVITE sip:[email protected];user=phone SIP/2.0 |
hi please attach pcap |
61272091827-61414674199-61294964040.zip I have some entries in filter_telnum. I tried adding two more entries to cover the numbers in the diversion header but it didn't make any difference. |
I was having a look at rfc5806 (Diversion Indication in SIP) call-4083-4044-0414674199.display.info.on.pcap.zip To cover all the diversion details you may want add a new database table. EG. cdr_diversion I am happy to help and provide further examples or help with whatever you need. |
within one sip session there can be multiple diversion headers with different content? Creating new table would be nice but it would be too much data if the only thing to extract and store would be the 61294964026 number? |
Yes, one SIP session can have multiple diversion headers with different content. I have been dealing with this quite a lot during recent times. Australian carriers have been very strict on correct diversion information in an effort to reduce SPAM calls. In the scenario below: INVITE sip:[email protected];user=phone SIP/2.0 In a call centre environment we often see counter=2 (or 3) if the calls have been forward from agent to agent the externally. |
ok thank you. We have put it into the list of features which is quite long. |
Hi Martin,
Great, thanks for putting it in the list.
If there is anything I can do to help, let me know.
I have many years of experience in VoIP and telecommunications but I only do PERL and PHP for web services.
Best regards,
Stuart Edge
Main Office: +61 2 9496-4000<tel:+61294964000>
Direct Phone: +61 2 9496-4040<tel:+61294964040/>
Chat with us: Live Chat<https://oscc.olcs.com.au/on-line-web/contact-info.html>
From: Martin Vit ***@***.***>
Sent: Tuesday, 20 September 2022 5:44 PM
To: voipmonitor/sniffer ***@***.***>
Cc: Stuart Edge ***@***.***>; Comment ***@***.***>
Subject: Re: [voipmonitor/sniffer] Diversion header (#81)
ok thank you. We have put it into the list of features which is quite long.
—
Reply to this email directly, view it on GitHub<#81 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJCS7DHOKKWMCQSIKK6C27DV7FTLNANCNFSM5BCKFUAA>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Hi Martin,
Yes, one SIP session can have multiple diversion headers with different content.
There are often multiple diversions.
There are multiple parameters in each diversion.
So a new database table would be the best way to record this information.
I have been dealing with this quite a lot during recent times. Australian carriers have been very strict on correct diversion information in an effort to reduce SPAM calls.
There are many spammers who use fake caller IDs to make calls.
If someone is attempting a call via a carrier and they do not own the caller ID they are using, the call is rejected.
EG.
If a call from a carrier A to carrier B arrives with a caller ID +61294964040 but carrier B recognises this call ID belongs to Carrier B, Carrier B will reject the call because the caller ID shouldn’t be coming from carrier A.
To avoid valid call being rejected, diversion headers must provide the path of the call.
In the scenario below:
61272091827 called 0493363501
0493363501 diverted (reason-no-answer) to 0414674199
0414674199 diverted (reason=unknown) to 61294964040
INVITE ***@***.***;user=phone SIP/2.0
Max-Forwards: 70
Session-Expires: 3600;refresher=uac
Min-SE: 600
Supported: 100rel,timer
To: ***@***.***;user=phone>
From: ***@***.***>;tag=3872015738-350219619
P-Asserted-Identity: ***@***.***;user=phone>
Call-ID: ***@***.***
CSeq: 1 INVITE
Allow: PUBLISH,MESSAGE,UPDATE,PRACK,SUBSCRIBE,REFER,INFO,NOTIFY,REGISTER,OPTIONS,BYE,INVITE,ACK,CANCEL
Via: SIP/2.0/UDP 203.134.5.10:5060;branch=z9hG4bKd8d3644ae6d77678a012416bc27a1cda
Contact: ***@***.***:5060;tgrp=C20-OLC1BQBNCVC>
Diversion: ***@***.***>;reason=no-answer;privacy=off;counter=1
Diversion: ***@***.***>;reason=unknown;privacy=off;counter=1
Content-Type: application/sdp
Accept: application/sdp
Content-Length: 363
In a call centre environment we often see counter=2 (or 3) if the calls have been forward from agent to agent the externally.
Best regards,
Stuart Edge
Main Office: +61 2 9496-4000<tel:+61294964000>
Direct Phone: +61 2 9496-4040<tel:+61294964040/>
Chat with us: Live Chat<https://oscc.olcs.com.au/on-line-web/contact-info.html>
From: Martin Vit ***@***.***>
Sent: Tuesday, 13 September 2022 2:53 AM
To: voipmonitor/sniffer ***@***.***>
Cc: Stuart Edge ***@***.***>; Comment ***@***.***>
Subject: Re: [voipmonitor/sniffer] Diversion header (#81)
within one sip session there can be multiple diversion headers with different content? Creating new table would be nice but it would be too much data if the only thing to extract and store would be the 61294964026 number?
—
Reply to this email directly, view it on GitHub<#81 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJCS7DEWMYTPYCNHADJPUULV55NYPANCNFSM5BCKFUAA>.
You are receiving this because you commented.Message ID: ***@***.******@***.***>>
|
Hi!
Sniffer parses and adds numbers to the database only from the URIs of the "From" and "To" headers.
The numbers from the "Diversion" headers are not analyzed and are not written to the database.
As a result, it is impossible to find calls by the forwarding number in the database and analyze all calls forwarded from the required number.
The text was updated successfully, but these errors were encountered: