John Todd
2003-Aug-04 09:56 UTC
[Asterisk-Users] Syntax for hiding caller ID but still passing ANI?
I have a question regarding the flags for hiding caller ID presentation: My customer has a requirement that they are able to specify if outbound calls (on a T100P) will have the caller ID displayed or not. This could be easily solved, of course, by not setting a caller ID when creating the outbound call. However, the PRI to which this T100P is connected _must_ see a valid caller ID, and the caller ID is used for billing purposes. I know that there is the ability to hide caller ID within the Zaptel libraries, using the presentation flags. If set correctly, the expected behavior would be that the ANI would be sent to the switch, but with a flag that would tell the remote switch to suppress the caller ID from being transmitted to the end user. How does one activate that presentation switch from within a dialplan? Searching the archives gives me some hints, but no answers. Searching the code, I see in channels/chan_zap.c around line 1399 that the PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN and PRES_NUMBER_NOT_AVAILABLE are referenced, but I'm not clear on where "l" is set, or even if that is a trigger. Can someone give me a hand on syntax on this? JT
Martin Pycko
2003-Aug-04 11:34 UTC
[Asterisk-Users] Syntax for hiding caller ID but still passing ANI?
l is set a couple of lines above. Basically l carries the nubmer so if there is no callerid in 'l' then we send this other flag 'callerid not available'. You need to choose one of these flags: /* Presentation */ #define PRES_ALLOWED_USER_NUMBER_NOT_SCREENED 0x00 #define PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN 0x01 #define PRES_ALLOWED_USER_NUMBER_FAILED_SCREEN 0x02 #define PRES_ALLOWED_NETWORK_NUMBER 0x03 #define PRES_PROHIB_USER_NUMBER_NOT_SCREENED 0x20 #define PRES_PROHIB_USER_NUMBER_PASSED_SCREEN 0x21 #define PRES_PROHIB_USER_NUMBER_FAILED_SCREEN 0x22 #define PRES_PROHIB_NETWORK_NUMBER 0x23 #define PRES_NUMBER_NOT_AVAILABLE 0x43 I think it might be PROHIB....PASSED_SCREEN but not sure. Check q931 specs. Martin On Mon, 4 Aug 2003, John Todd wrote:> > I have a question regarding the flags for hiding caller ID presentation: > > My customer has a requirement that they are able to specify if > outbound calls (on a T100P) will have the caller ID displayed or not. > This could be easily solved, of course, by not setting a caller ID > when creating the outbound call. However, the PRI to which this > T100P is connected _must_ see a valid caller ID, and the caller ID is > used for billing purposes. > > I know that there is the ability to hide caller ID within the Zaptel > libraries, using the presentation flags. If set correctly, the > expected behavior would be that the ANI would be sent to the switch, > but with a flag that would tell the remote switch to suppress the > caller ID from being transmitted to the end user. > > How does one activate that presentation switch from within a dialplan? > > Searching the archives gives me some hints, but no answers. > Searching the code, I see in channels/chan_zap.c around line 1399 > that the PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN and > PRES_NUMBER_NOT_AVAILABLE are referenced, but I'm not clear on where > "l" is set, or even if that is a trigger. Can someone give me a hand > on syntax on this? > > JT > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
Linus Surguy
2003-Aug-05 00:13 UTC
[Asterisk-Users] Syntax for hiding caller ID but still passing ANI?
(as a follow up to my own post)> > It seems that there are two options that block the presentation: 0x23and> 0x21 > > No no! Protocol wise, they are different flags in each nibble. If the high > nibble is not zero then the number is not for general use. Any number > presentation block in PRI->SIP conversion should only pass the CLI if the > high nibble is zero.Cut and paste from the ITU Spec Q931 Presentation indicator (octet 3a) Bits 7 6 Meaning 0 0 Presentation allowed 0 1 Presentation restricted 1 0 Number not available due to interworking 1 1 Reserved NOTE 1 - The meaning and the use of this field is defined in 3/Q.951 and 4/Q.951. Screening indicator (octet 3a) Bits 2 1 Meaning 0 0 User-provided, not screened 0 1 User-provided, verified and passed 1 0 User-provided, verified and failed 1 1 Network provided NOTE 2 - The meaning and the use of this field is defined in 3/Q.951 and 4/Q.951. Linus
Florian Overkamp
2003-Aug-05 00:37 UTC
[Asterisk-Users] Syntax for hiding caller ID but still passing ANI?
Hi, At 13:34 4-8-2003 -0500, you wrote:>You need to choose one of these flags: >/* Presentation */ >#define PRES_ALLOWED_USER_NUMBER_NOT_SCREENED 0x00 >#define PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN 0x01 >#define PRES_ALLOWED_USER_NUMBER_FAILED_SCREEN 0x02 >#define PRES_ALLOWED_NETWORK_NUMBER 0x03 >#define PRES_PROHIB_USER_NUMBER_NOT_SCREENED 0x20 >#define PRES_PROHIB_USER_NUMBER_PASSED_SCREEN 0x21 >#define PRES_PROHIB_USER_NUMBER_FAILED_SCREEN 0x22 >#define PRES_PROHIB_NETWORK_NUMBER 0x23 >#define PRES_NUMBER_NOT_AVAILABLE 0x43Interesting. Is there a way to control these flags when doing a Dial or SetCallerid from asterisk ? Met vriendelijke groet, Florian Overkamp ObSimRef BV (http://www.obsimref.com/)