[Solved] Help: Cannot get DID Caller Number

Dear All Asterisk pro…

Need help…

I’m currently trying to configure a ISDN-Pri line from Telekom Malaysia with the following:
System: CentOS 5.10
Asterisk: 1.6.2.20
Dahdi-Compete: 2.8.0+2.8.1
RedFone PhoneBridge2 7500-4000 EC

I’m able to make outgoing call and receiving call without error or problem, this account have a subscription of 200 numbers of DID, but I’m not able to get the “Caller Number” when people dialled in. I have another set up on different location using same hardware and subscription I can get the last 4 digits of which people dialled in.

Here is some configurations for debug:

/etc/redfone.conf

## Automatically Generated REDFONE Config
## Generator Version 0.3.4

[globals]
fb=10.10.10.10
port=1
server=f8:bc:12:36:f9:f2
priorities=0,1,2,3

[span1]
framing=ccs
encoding=hdb3

/etc/dahdi/system.conf

##Automatically Generated dahdi configuration file
##Generator Version 0.3.4

dynamic=ethmf,eth1/00:50:c2:65:dd:81/0,31,1

bchan=1-15
dchan=16
bchan=17-31
alaw=1-31


loadzone=my
defaultzone=my

/etc/asterisk/chan_dahdi.conf

;Automatically Generated chan_dahdi.conf configuration file
;Generator Version 0.3.4

[trunkgroups]

[channels]
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=no
echocancelwhenbridged=no
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1

callerid=asreceived
overlapdial=yes
immediate=no
pridialplan = unknown
prilocaldialplan = national
priindication=outofband
restrictcid=no
usecallingpres=no

context=from-pstn
switchtype=euroisdn
signalling=pri_cpe
channel => 1-15, 17-31

/etc/asterisk/users.conf

[general]

#include "users_Office.conf"
#include "users_VenueRoom.conf"
#include "users_LiftLanding.conf"
#include "users_Room8.conf"
#include "users_Room9.conf"
#include "users_Room10.conf"
#include "users_Room11.conf"
#include "users_Room12.conf"
#include "users_Room13.conf"
#include "users_Room14.conf"
#include "users_Room15.conf"
#include "users_Room16.conf"

[span_1]
group = 1
callerid = asreceived
overlapdial=yes
immediate=no
hasexten = no
switchtype = euroisdn
signalling = pri_cpe
trunkname = Telekom
pridialplan = unknown
prilocaldialplan = national
trunkstyle = digital  ; GUI metadata
hassip = no
hasiax = no
context = from-pstn
faxdetect = both
dahdichan = 1-15,17-31

Output from fonulator -vq

Detecting foneBRIDGE
Span 1 configured as: E1,HDB3
SW ver: 3.0
SW Compile date: Sep  9 2009 07:23:30
SW Build: 79
MAC Address: 00:50:c2:65:dd:81
IP Address[0]: 10.10.10.10
IP Address[1]: 255.255.255.255
DSP Status: Available

Output from dahdi_cfg -vvv

DAHDI Tools Version - 2.8.0

DAHDI Version: 2.8.0.1
Echo Canceller(s): 
Configuration
======================

Dynamic span 1: driver ethmf, addr eth1/00:50:c2:65:dd:81/0, channels 31, timing 1

Channel map:

Channel 01: Clear channel (A-law) (Echo Canceler: none) (Slaves: 01)
Channel 02: Clear channel (A-law) (Echo Canceler: none) (Slaves: 02)
Channel 03: Clear channel (A-law) (Echo Canceler: none) (Slaves: 03)
Channel 04: Clear channel (A-law) (Echo Canceler: none) (Slaves: 04)
Channel 05: Clear channel (A-law) (Echo Canceler: none) (Slaves: 05)
Channel 06: Clear channel (A-law) (Echo Canceler: none) (Slaves: 06)
Channel 07: Clear channel (A-law) (Echo Canceler: none) (Slaves: 07)
Channel 08: Clear channel (A-law) (Echo Canceler: none) (Slaves: 08)
Channel 09: Clear channel (A-law) (Echo Canceler: none) (Slaves: 09)
Channel 10: Clear channel (A-law) (Echo Canceler: none) (Slaves: 10)
Channel 11: Clear channel (A-law) (Echo Canceler: none) (Slaves: 11)
Channel 12: Clear channel (A-law) (Echo Canceler: none) (Slaves: 12)
Channel 13: Clear channel (A-law) (Echo Canceler: none) (Slaves: 13)
Channel 14: Clear channel (A-law) (Echo Canceler: none) (Slaves: 14)
Channel 15: Clear channel (A-law) (Echo Canceler: none) (Slaves: 15)
Channel 16: D-channel (A-law) (Echo Canceler: none) (Slaves: 16)
Channel 17: Clear channel (A-law) (Echo Canceler: none) (Slaves: 17)
Channel 18: Clear channel (A-law) (Echo Canceler: none) (Slaves: 18)
Channel 19: Clear channel (A-law) (Echo Canceler: none) (Slaves: 19)
Channel 20: Clear channel (A-law) (Echo Canceler: none) (Slaves: 20)
Channel 21: Clear channel (A-law) (Echo Canceler: none) (Slaves: 21)
Channel 22: Clear channel (A-law) (Echo Canceler: none) (Slaves: 22)
Channel 23: Clear channel (A-law) (Echo Canceler: none) (Slaves: 23)
Channel 24: Clear channel (A-law) (Echo Canceler: none) (Slaves: 24)
Channel 25: Clear channel (A-law) (Echo Canceler: none) (Slaves: 25)
Channel 26: Clear channel (A-law) (Echo Canceler: none) (Slaves: 26)
Channel 27: Clear channel (A-law) (Echo Canceler: none) (Slaves: 27)
Channel 28: Clear channel (A-law) (Echo Canceler: none) (Slaves: 28)
Channel 29: Clear channel (A-law) (Echo Canceler: none) (Slaves: 29)
Channel 30: Clear channel (A-law) (Echo Canceler: none) (Slaves: 30)
Channel 31: Clear channel (A-law) (Echo Canceler: none) (Slaves: 31)

31 channels to configure.

asterisk -rx “dahdi show status”

   Chan Extension  Context         Language   MOH Interpret        Blocked    State     
 pseudo            default                    default                         In Service
      1            from-pstn                  default                         In Service
      2            from-pstn                  default                         In Service
      3            from-pstn                  default                         In Service
      4            from-pstn                  default                         In Service
      5            from-pstn                  default                         In Service
      6            from-pstn                  default                         In Service
      7            from-pstn                  default                         In Service
      8            from-pstn                  default                         In Service
      9            from-pstn                  default                         In Service
     10            from-pstn                  default                         In Service
     11            from-pstn                  default                         In Service
     12            from-pstn                  default                         In Service
     13            from-pstn                  default                         In Service
     14            from-pstn                  default                         In Service
     15            from-pstn                  default                         In Service
     17            from-pstn                  default                         In Service
     18            from-pstn                  default                         In Service
     19            from-pstn                  default                         In Service
     20            from-pstn                  default                         In Service
     21            from-pstn                  default                         In Service
     22            from-pstn                  default                         In Service
     23            from-pstn                  default                         In Service
     24            from-pstn                  default                         In Service
     25            from-pstn                  default                         In Service
     26            from-pstn                  default                         In Service
     27            from-pstn                  default                         In Service
     28            from-pstn                  default                         In Service
     29            from-pstn                  default                         In Service
     30            from-pstn                  default                         In Service
     31            from-pstn                  default                         In Service

When I turn on the Pri debug " pri set debug on span 1 " I got the following when people dialled in

< Protocol Discriminator: Q.931 (8)  len=16
< TEI=0 Call Ref: len= 2 (reference 2471/0x9A7) (Sent from originator)
< Message Type: SETUP (5)
< [04 03 80 90 a3]
< Bearer Capability (len= 5) [ Ext: 1  Coding-Std: 0  Info transfer capability: Speech (0)
<                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
<                                User information layer 1: A-Law (35)
< [18 03 a9 83 83]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit  Other(PRI)  Spare: 0  Exclusive  Dchan: 0
<                       ChanSel: As indicated in following octets
<                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
<                       Ext: 1  Channel: 3 Type: CPE]
< [a1]
< Sending Complete (len= 1)
-- Making new call for cref 2471

On another side of set up I got the following:

< Protocol Discriminator: Q.931 (8)  len=41
< TEI=0 Call Ref: len= 2 (reference 25079/0x61F7) (Sent from originator)
< Message Type: SETUP (5)
< [a1]
< Sending Complete (len= 1)
< [04 03 80 90 a3]
< Bearer Capability (len= 5) [ Ext: 1  Coding-Std: 0  Info transfer capability: Speech (0)
<                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
<                                User information layer 1: A-Law (35)
< [18 03 a1 83 92]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit  Other(PRI)  Spare: 0  Preferred  Dchan: 0
<                       ChanSel: As indicated in following octets
<                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
<                       Ext: 1  Channel: 18 Type: CPE]
< [1e 02 82 81]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Public network serving the local user (2)
<                               Ext: 1  Progress Description: Call is not end-to-end ISDN; further call progress information may be available inband. (1) ]
< [xx xx xx xx xx xx xx xx xx xx xx xx xx xx]
< Calling Number (len=14) [ Ext: 0  TON: Unknown Number Type (0)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
<                           Presentation: Presentation allowed of network provided number (3)  'xxxxxxxxxx' ]
< [xx xx xx 38 30 30 30]
< Called Number (len= 7) [ Ext: 1  TON: Unknown Number Type (0)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '8000' ]
-- Making new call for cref 25079

Which different is that I have the following on another site but not this configurations:

< [1e 02 82 81]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Public network serving the local user (2)
<                               Ext: 1  Progress Description: Call is not end-to-end ISDN; further call progress information may be available inband. (1) ]
< [xx xx xx xx xx xx xx xx xx xx xx xx xx xx]
< Calling Number (len=14) [ Ext: 0  TON: Unknown Number Type (0)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
<                           Presentation: Presentation allowed of network provided number (3)  'xxxxxxxxxx' ]
< [xx xx xx 38 30 30 30]
< Called Number (len= 7) [ Ext: 1  TON: Unknown Number Type (0)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '8000' ]

Please help if any way could, configurations problem? Or does it came from my ISP (Telekom Malaysia) and any other way to debug to get the caller number? I need the caller number to set up DID to designated extensions.

Many many thanks in advance…
Thanks thanks thanks…

Your telephone service provider is sending neither caller ID, nor DID number. I am pretty sure that is something only they can change.

Dear David,

Many thanks for your reply, I’m still waiting the telco to reply me, take soooo long to process…
So which mean I can confirm is not the problem on my side of configuration right?

I’ll update here if the Telco reply. I already pretty stuck with this for a weeks already.

Many thanks again, and if someone have others thought may also share with me…
Thanks again

Dear All,

MY provider give me this settings, some I cannot find with redfone setup…

. PRI Framing – Multiframe with CRC4 off/disable
. PRI Line code – HDB3
. ISDN Switch Type (on the PRI)- NET3/NET5 Euro ISDN ETS 300 012, SUB CLAUSE 5.5.2
. Layer 2 protocol- Q931 - /A Law
. Signalling Type - DSS1
. Clocking- slave/external network/Line/E1
. Restart message- support “indicated by channel’’and “inhibit restart”.
. Circuits- Speech timeslots 1 to 15,17 to 31, Signalling timeslot 16 on Terminal Equipment.

The Framing I get only cas or css on E1
The Signaling Type I got:

  1. FXS Loop Start
  2. FXS Ground Start
  3. FXS Kewl Start
  4. FXO Loop Start
  5. FXO Ground Start
  6. FXO Kewl Start
  7. E & M
  8. E & M Wink
  9. MFC/R2

What am I missing?

Your supplier hasn’t enabled the sending of the fields you want. Maybe that isn’t a service that they offer.

(Most or all of the parameters you quote relate to lower levels of the protocol, which are working.)

Dear David,

Many thanks again on the review, the provider kept saying they sent the part of caller number and kept asking me to check my settings… grrrr :imp:

Don’t know what else I can do already…

I believe the trace you are presenting is a low level trace and shows everything they send, including things not then used by Asterisk. If so, that trace will show the information, if it is actually being sent

Dear David,

Finally I got another technical head from my provider made it work with enabled the caller ID from their side. I’ll mark this as resolved from subject and I need another help with outbound caller ID (Outgoing call number) from 200 numbers subscription. Will open another thread with this.
Again, many many thanks David.