Summary: | ASTERISK-04422: [patch] Record "network provided number" as ANI and "user provided number" as Caller*ID | ||
Reporter: | Thorsten Lockert (tholo) | Labels: | |
Date Opened: | 2005-06-16 13:35:16 | Date Closed: | 2005-06-21 16:37:45 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) ani.diff | |
Description: | Currently there is no way of receiving both the user and the network provided phone numbers on a PRI. With the attached patch, a "network provided" number will be saved as ANI while "user provided" number is stored as caller id as before. ****** STEPS TO REPRODUCE ****** Receive a call on a PRI where both user and network provded numbers are present. Try to get at both after the call is established. Use "pri intense debug" to see what is going on. A sample trace is found below. Note that this only adds the support to libpri -- it does not add code to Asterisk to pick up the ANI. ****** ADDITIONAL INFORMATION ****** < Protocol Discriminator: Q.931 (8) len=51 < Call Ref: len= 2 (reference 3/0x3) (Originator) < Message type: SETUP (5) < [a1] < Sending Complete (len= 1) < [04 03 80 90 a3] < Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0) < Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16) < Ext: 1 User information layer 1: A-Law (35) < [18 03 a1 83 92] < Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Preferred Dchan:0 < ChanSel: Reserved < Ext: 1 Coding: 0 Number Specified Channel Type: 3 < Ext: 1 Channel: 18 ] < [6c 0a 21 80 31 32 31 32 33 34 33 34] < Calling Number (len=12) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) < Presentation: Presentation permitted, user number not screened (0) '12123434' ] < [6c 0a 21 83 31 32 31 32 30 30 30 30] < Calling Number (len=12) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) < Presentation: Presentation allowed of network provided number (3) '12120000' ] < [70 09 a1 31 32 31 32 31 32 31 32] < Called Number (len=11) [ Ext: 1 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '12121212' ] [Actual numbers modified for privacy] | ||
Comments: | By: Michael Jerris (mikej) 2005-06-16 14:13:25 Is this redundant to http://bugs.digium.com/view.php?id=3521 By: Thorsten Lockert (tholo) 2005-06-16 14:33:22 It would seem so -- aside from being in the right category and having a patch. I guess I'll get two more negative karma points again... By: Michael Jerris (mikej) 2005-06-16 14:42:58 I added the relationship. Can somone please comment on how this fits in with the plans for 3521? By: Michael Jerris (mikej) 2005-06-16 14:43:31 How does this work with your plans for callerid? By: Brian West (bkw918) 2005-06-17 11:51:35 tholo.. you should NEVER get any negative karma.. who did that? i'll go thump them. /b By: petersv (petersv) 2005-06-17 13:26:32 Regardless of future plans for CallerId (unless they are imminent of course) this does seem to be the correct way under the current framework in libpri/asterisk. By: Kevin P. Fleming (kpfleming) 2005-06-21 16:37:12 Committed to CVS HEAD, thanks! |