[asterisk-dev] RE: [Asterisk-Users] CallerID Name problem
Damon Estep
damon at suburbanbroadband.net
Mon May 1 18:05:56 MST 2006
Cross-posted to Dev on purpose.
I missed Astricon (not willing to give up a planned vacation!).
I looks like there is already code that detects the facility IE, as asterisk whines about "do not know what to do with a second ROSE component" (not verified in current version). That second ROSE component is the message that says the CNAM is coming in a facility IE according to the PM sessions I have been able to look at.
Why not put a flag in the config? WaitforfacilityIE=yes|no <- this would allow the user to decide on a per span basis if it is needed.
The Bellcore spec on CNAM states that the SETUP must contain an "information following" message element to indicate that the CNAM will arrive in the Facility IE.
Libpri could be written to look for the "information following" element in SETUP and wait for the FACIILITY IE if it is detected AND the user flag is set to wait for Facility IE.
Of course, when I say "could be written", I mean by someone like Matthew Frederickson, not me :). I do not have the required knowledge of the code to even try and attempt this.
I spent way too much time on this last year trying to use a TNT as a media gateway, now it (the TNT) is an outbound gateway for our 911 trunks and nothing else.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Alexander Lopez
Sent: Monday, May 01, 2006 6:38 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] CallerID Name problem
You explained this very well thank you!!, We discussed (Astricon 2005 Anaheim) having LibPri either wait 1 second before passing the call on to asterisk, or waiting until CNAME was received, both ideas were not good as it will introduce delays for all instead of just those that needed it.
For the time being we will put the Wait(1) in.
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Damon Estep
> Sent: Monday, May 01, 2006 8:24 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: RE: [Asterisk-Users] CallerID Name problem
>
> The CDR is written at the end of the call, the SIP invite is generated
> when you tell it to.
>
> You must wait for the CID name before you "dial" a SIP channel, as this is
> when the SIP invite is created.
>
> Wait 1 seems to be long enough.
>
> For analog TDM this is not an issue as the CNAM is sent between the first
> and second ring.
>
> In nearly every case I have seen, the facility IE that contains the CNAM
> on most NI-2 ISDN PRIs, the Facility IE is not sent until after you send
> progress back to the telco.
>
> Like this;
>
> Telco sends ISDN SETUP message
> You send back ISDN PROGRESS (on a normal call)
> The Telco sends ISDN FACILITY INFORMATION ELEMENT (IE) containing CNAM
>
> I have looked at several protocol monitoring session form both Nortel and
> lucent class 5 switches, and every one seems to send the facility IE in
> less than 500 milliseconds following SETUP assuming you (Zaptel) reply
> PROGRESS in a timely fashion, which does not appear to ever be an issue
> with Asterisk.
>
> I have been lead to believe there are two reasons for sending the CNAM in
> the facility IE.
>
> One explanation is that the SETUP message has a restriction on length, and
> in order to provide other features, the CNAM had to be moved.
>
> The other explanation is that the Telco is saving costs by not dipping
> into LIDB (line information databases) for all calls where PROGRESS is not
> received from the endpoint (a high percentage of all calls). There is a
> cost associated with LIDB dips.
>
> Both are believable explanations, but the result is the same, you have to
> wait 1 second!
>
> Sure would be nice if asterisk could wait 500 milliseconds instead, since
> there is a need to put a "play 1 second of silence" in the first step of
> the IVR (if used) to avoid clipping the first phrase also. The combined 2
> seconds of "wait" gets noticed by some users/callers.
>
> For the archives - The Lucent TNT (as of 11.0 firmware) is not capable of
> "waiting" for CNAM before generating the SIP invite, so it is not
> compatible with PRIs where the CNAM is sent in the facility IE instead of
> the SETUP message, which is the case with most telco switches with current
> software on them.
>
> Damon
>
>
>
>
>
>
>
>
>
>
>
>
> > -----Original Message-----
> > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> > bounces at lists.digium.com] On Behalf Of Josh McAllister
> > Sent: Monday, May 01, 2006 4:25 PM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > Subject: RE: [Asterisk-Users] CallerID Name problem
> >
> >
> > >From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> > bounces at lists.digium.com] On Behalf Of Lacy Moore - Aspendora
> > >Sent: Monday, May 01, 2006 3:06 PM
> > >To: Asterisk Users Mailing List - Non-Commercial Discussion
> > >Subject: Re: [Asterisk-Users] CallerID Name problem
> > >
> > >Do you get caller ID number? If so, WAITing is not going to help,
> since
> > you already get the info. If you >get caller ID number, then your telco
> > is not >sending the name.
> >
> > This is not necessarily true. I've always gotten cID number, but only
> > recently when I added a wait(1) did I start getting channel vars
> populated
> > with cID Name. Same as Eric, I was getting cID Name in the CDR records
> all
> > along as well.
> >
> > Eric -- Go ahead and give it a shot... even if you are getting the cID
> > number. This will likely fix your problem.
> >
> > Josh McAllister
> >
> >
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-dev
mailing list