Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] RDNIS with tel: vs. sip: header


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
positivelyoptimistic a...
Guest





PostPosted: Thu Aug 28, 2014 4:57 am    Post subject: [asterisk-users] RDNIS with tel: vs. sip: header Reply with quote

Has anyone had success patching chan_sip.c so that Asterisk will recognize the tel: header for RDNIS information?



 exten = get_in_brackets(tmp);
        if (!strncasecmp(exten, "sip:", 4)) {
                exten += 4;
        } else if (!strncasecmp(exten, "sips:", 5)) {
                exten += 5;
        } else {
                ast_log(LOG_WARNING, "Huh?  Not an RDNIS SIP header (%s)?\n", exten);
                return -1;
        }



Audiocodes Mediant 2000 devices send this header as a tel:...  


[Aug 28 02:25:42] WARNING[1283][C-00001574] chan_sip.c: Huh?  Not an RDNIS SIP header (tel:41068558XX)?



(number obscured for privacy purposes)
Back to top
patrick at laimbock.com
Guest





PostPosted: Thu Aug 28, 2014 7:02 am    Post subject: [asterisk-users] RDNIS with tel: vs. sip: header Reply with quote

On 28-08-14 11:57, Positively Optimistic wrote:
Quote:
Has anyone had success patching chan_sip.c so that Asterisk will
recognize the tel: header for RDNIS information?


exten = get_in_brackets(tmp);
if (!strncasecmp(exten, "sip:", 4)) {
exten += 4;
} else if (!strncasecmp(exten, "sips:", 5)) {
exten += 5;
} else {
ast_log(LOG_WARNING, "Huh? Not an RDNIS SIP header
(%s)?\n", exten);
return -1;
}

Audiocodes Mediant 2000 devices send this header as a tel:...

*[Aug 28 02:25:42] WARNING[1283][C-00001574] chan_sip.c: Huh? Not an
RDNIS SIP header (tel:41068558XX)?*
*
*
*(number obscured for privacy purposes)*

Not a dev but have you tried something like this (hope the formatting
stays sane):

exten = get_in_brackets(tmp);
if (!strncasecmp(exten, "sip:", 4)) {
exten += 4;
} else if (!strncasecmp(exten, "tel:", 4)) {
exten += 4;
} else if (!strncasecmp(exten, "sips:", 5)) {
exten += 5;
} else {
ast_log(LOG_WARNING, "Huh? Not an RDNIS SIP header (%s)?\n", exten);
return -1;
}

HTH,
Patrick

--
_____________________________________________________________________
-- 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
Back to top
EWieling at nyigc.com
Guest





PostPosted: Fri Aug 29, 2014 8:53 am    Post subject: [asterisk-users] RDNIS with tel: vs. sip: header Reply with quote

Looks like this was resolved recently.

https://reviewboard.asterisk.org/r/3349/


-----Original Message-----
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Patrick Laimbock
Sent: Thursday, August 28, 2014 12:02 PM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] RDNIS with tel: vs. sip: header

On 28-08-14 11:57, Positively Optimistic wrote:
Quote:
Has anyone had success patching chan_sip.c so that Asterisk will
recognize the tel: header for RDNIS information?


exten = get_in_brackets(tmp);
if (!strncasecmp(exten, "sip:", 4)) {
exten += 4;
} else if (!strncasecmp(exten, "sips:", 5)) {
exten += 5;
} else {
ast_log(LOG_WARNING, "Huh? Not an RDNIS SIP header
(%s)?\n", exten);
return -1;
}

Audiocodes Mediant 2000 devices send this header as a tel:...

*[Aug 28 02:25:42] WARNING[1283][C-00001574] chan_sip.c: Huh? Not an
RDNIS SIP header (tel:41068558XX)?*
*
*
*(number obscured for privacy purposes)*

Not a dev but have you tried something like this (hope the formatting
stays sane):

exten = get_in_brackets(tmp);
if (!strncasecmp(exten, "sip:", 4)) {
exten += 4;
} else if (!strncasecmp(exten, "tel:", 4)) {
exten += 4;
} else if (!strncasecmp(exten, "sips:", 5)) {
exten += 5;
} else {
ast_log(LOG_WARNING, "Huh? Not an RDNIS SIP header (%s)?\n", exten);
return -1;
}

HTH,
Patrick

--
_____________________________________________________________________
-- 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

--
_____________________________________________________________________
-- 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services