Francisco Valentin Vinagrero
2016-Jul-27 11:56 UTC
[asterisk-users] Identify endpoint based on Diversion header
Hello, Is there any way to identify an incoming session based on the Diversion header? In my scenario, I have some unregistered endpoints (mobile phones) that make calls through our Asterisk, which controls the external call rights based on the endpoint's context. In a normal call, their number will be in the From header and the destination in the To an RURI, but when they make a call forwarding I will receive as calling id a number that it is not known to our system (virtually any number in the world) and my endpoint's number will come in the Diversion header. Asterisk rejects the calls as unauthorized. Basically I want to allow my users to forward any call from anywhere to anywhere, but I'll charge them and I need to identify them. Any ideas? I'm running Asterisk 13.10 with PJSIP. Thanks in advance, Francisco. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160727/4ab872ad/attachment.html>
Joshua Colp
2016-Jul-27 11:59 UTC
[asterisk-users] Identify endpoint based on Diversion header
Francisco Valentin Vinagrero wrote:> Hello, > > Is there any way to identify an incoming session based on the Diversion > header?There's no current module to do this and I know of noone actively working on such a thing but the identification system is pluggable, so one could be plugged in. Cheers, -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Francisco Valentin Vinagrero
2016-Jul-27 13:00 UTC
[asterisk-users] Identify endpoint based on Diversion header
Thanks, that?s what I thought, I'll implement something like "res_pjsip_endpoint_identifier_diversion" Cheers. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joshua Colp Sent: 27 July 2016 14:00 To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Subject: Re: [asterisk-users] Identify endpoint based on Diversion header Francisco Valentin Vinagrero wrote:> Hello, > > Is there any way to identify an incoming session based on the > Diversion header?There's no current module to do this and I know of noone actively working on such a thing but the identification system is pluggable, so one could be plugged in. Cheers, -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users