<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: [Asterisk-Users] ANI on a PRI</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY dir=ltr>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=361294916-10042006>Is this on a PRI???</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=361294916-10042006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=361294916-10042006>On a RBS T1 this is called "Feature Group D (Adtran
Style)"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=361294916-10042006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=361294916-10042006>If they are sending you this via a PRI they may have
their Trunk Group setup wrong, as I have never seen this type or data element
structure on a PRI.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=361294916-10042006>. </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=361294916-10042006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=361294916-10042006>But in a pinch you could use the Cut function to
separate the two fields.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=361294916-10042006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=361294916-10042006>Alex</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=361294916-10042006></SPAN></FONT> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Steve
Totaro<BR><B>Sent:</B> Monday, April 10, 2006 12:20 PM<BR><B>To:</B> Asterisk
Users Mailing List - Non-Commercial Discussion<BR><B>Subject:</B> RE:
[Asterisk-Users] ANI and DNIS Seperation on a PRI (Telephony Numbering Plan
(E.164/E.163) (1) '*4105556654*8005550215*' ])<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT size=2>OK I am going to do it again. </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Global Crossing is now sending ANI but it is not in the
format I expected. Any one know of a way to get this data into two
seperate variables? The first number is ANI and the second is DNIS so it
is "*tendigits*tendigits* on one line like below.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>< Called Number (len=26) [ Ext: 1 TON: National
Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
'*4105949603*8005640215*' ]</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks,</FONT></DIV>
<DIV><FONT size=2>Steve</FONT></DIV><FONT size=2></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><FONT size=2>
<DIV><BR>-----Original Message----- <BR><B>From:</B> Steve Totaro
<BR><B>Sent:</B> Sun 4/9/2006 8:10 PM <BR><B>To:</B> Asterisk Users Mailing
List - Non-Commercial Discussion <BR><B>Cc:</B> <BR><B>Subject:</B> Re:
[Asterisk-Users] ANI on a PRI<BR><BR></DIV></FONT>
<P><FONT size=2>Hate to reply to my own posting but I wonder if anyone know
the answer?<BR><BR>Steve Totaro wrote:<BR>> Is there a setting somewhere
in * to define whether I am receiving<BR>> callerID or true ANI?
Global Crossing claims they are sending ANI but<BR>> I dont think
so. My understanding of ANI is that it is always sent,<BR>>
regardless if callerID is blocked. If I dial *67 and my DID, I
get<BR>> "Presentation: Presentation prohibited of network provided
number" and<BR>> no number.<BR>><BR>> Before I call GC on Monday to
complain, I want to make sure I am<BR>> correct in my understanding of
ANI and not missing something on my side.<BR>> < Protocol
Discriminator: Q.931 (8) len=33<BR>> < Call Ref: len= 2
(reference 16/0x10) (Originator)<BR>> < Message type: SETUP
(5)<BR>> < [04 03 80 90 a2]<BR>> < Bearer Capability (len= 5) [
Ext: 1 Q.931 Std: 0 Info transfer<BR>> capability: Speech
(0)<BR>>
<
Ext: 1 Trans mode/rate: 64kbps,<BR>> circuit-mode (16)<BR>>
<
Ext: 1 User information layer 1: u-Law<BR>> (34)<BR>> < [18
04 e1 81 83 81]<BR>> < Channel ID (len= 6) [ Ext: 1 IntID:
Explicit, PRI Spare: 0,<BR>> Preferred Dchan: 0<BR>>
<
ChanSel: Reserved<BR>>
<
Ext: 1 DS1 Identifier: 1<BR>>
<
Ext: 1 Coding: 0 Number Specified
Channel<BR>> Type: 3<BR>>
<
Ext: 1 Channel: 1 ]<BR>> < [6c 02 21 a3]<BR>> < Calling
Number (len= 4) [ Ext: 0 TON: National Number (2) NPI:<BR>>
ISDN/Telephony Numbering Plan (E.164/E.163) (1)<BR>>
<
Presentation: Presentation prohibited of<BR>> network provided number
(35) '' ]<BR>> < [70 0b a1 38 30 30 35 36 34 30 38 31 39]<BR>> <
Called Number (len=13) [ Ext: 1 TON: National Number (2)
NPI:<BR>> ISDN/Telephony Numbering Plan (E.164/E.163) (1) '8005640819'
]<BR>> -- Making new call for cr 16<BR>> -- Processing Q.931 Call
Setup<BR>> -- Processing IE 4 (cs0, Bearer Capability)<BR>> --
Processing IE 24 (cs0, Channel Identification)<BR>> -- Processing IE 108
(cs0, Calling Party Number)<BR>> -- Processing IE 112 (cs0, Called Party
Number)<BR>> > Protocol Discriminator: Q.931 (8) len=11<BR>>
> Call Ref: len= 2 (reference 16/0x10) (Terminator)<BR>> > Message
type: CALL PROCEEDING (2)<BR>> > [18 04 e9 81 83 81]<BR>> >
Channel ID (len= 6) [ Ext: 1 IntID: Explicit, PRI Spare: 0,<BR>>
Exclusive Dchan: 0<BR>>
>
ChanSel: Reserved<BR>>
>
Ext: 1 DS1 Identifier: 1<BR>>
>
Ext: 1 Coding: 0 Number Specified
Channel<BR>> Type: 3<BR>>
>
Ext: 1 Channel: 1 ]<BR>> > Protocol Discriminator: Q.931
(8) len=15<BR>> > Call Ref: len= 2 (reference 16/0x10)
(Terminator)<BR>> > Message type: CONNECT (7)<BR>> > [18 04 e9
81 83 81]<BR>> > Channel ID (len= 6) [ Ext: 1 IntID: Explicit,
PRI Spare: 0,<BR>> Exclusive Dchan: 0<BR>>
>
ChanSel: Reserved<BR>>
>
Ext: 1 DS1 Identifier: 1<BR>>
>
Ext: 1 Coding: 0 Number Specified
Channel<BR>> Type: 3<BR>>
>
Ext: 1 Channel: 1 ]<BR>> > [1e 02 81 82]<BR>> > Progress
Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard<BR>> (0)
0: 0 Location: Private network serving the local user
(1)<BR>>
>
Ext: 1 Progress Description: Called<BR>> equipment is non-ISDN. (2)
]<BR>> < Protocol Discriminator: Q.931 (8) len=5<BR>> <
Call Ref: len= 2 (reference 16/0x10) (Originator)<BR>> < Message type:
CONNECT ACKNOWLEDGE (15)<BR>> < Protocol Discriminator: Q.931
(8) len=9<BR>> < Call Ref: len= 2 (reference 16/0x10)
(Originator)<BR>> < Message type: DISCONNECT (69)<BR>> < [08 02
80 90]<BR>> < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU)
standard (0) 0: 0 <BR>> Location: User (0)<BR>>
<
Ext: 1 Cause: Unknown (16), class = Normal Event<BR>> (1) ]<BR>>
-- Processing IE 8 (cs0, Cause)<BR>> NEW_HANGUP DEBUG: Calling
q931_hangup, ourstate Disconnect Indication,<BR>> peerstate Disconnect
Request<BR>> > Protocol Discriminator: Q.931 (8) len=9<BR>>
> Call Ref: len= 2 (reference 16/0x10) (Terminator)<BR>> > Message
type: RELEASE (77)<BR>> > [08 02 81 90]<BR>> > Cause (len= 4) [
Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 <BR>>
Location: Private network serving the local user (1)<BR>>
>
Ext: 1 Cause: Unknown (16), class = Normal Event<BR>> (1) ]<BR>>
< Protocol Discriminator: Q.931 (8) len=5<BR>> < Call Ref:
len= 2 (reference 16/0x10) (Originator)<BR>> < Message type: RELEASE
COMPLETE (90)<BR>> NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null,
peerstate Null<BR>> NEW_HANGUP DEBUG: Destroying the call, ourstate Null,
peerstate
Null<BR>><BR><BR>_______________________________________________<BR>--Bandwidth
and Colocation provided by Easynews.com --<BR><BR>Asterisk-Users mailing
list<BR>To UNSUBSCRIBE or update options visit:<BR> <A
href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A><BR></FONT></P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>