Asterisk PBX "unknown calling number"

inn3rpece

Active Member
Joined
Feb 20, 2008
Messages
66
Reaction score
2
Location
SA
<moderator_note text="Please don't edit this post, edits are triggering an automated anti-spam system."/>

Hi guys

We have asterisk installed at our company site and it's working well. The only problem is that when I dial into asterisk, the "unknown calling number"/"unknown number plan" message keeps on appearing ..

We're using a Digium modem. How do I get asterisk to recognise the calling/incoming number?

========================================================
EDIT: (For some reason MyADSL isn't allowing me to replay to this thread)
========================================================

Thanks alot for the replies ..

Does the number in the modem have CLI? And is it a (PABX) management number?

The number does have CLI ..

Okay there is a few more technical details needed, are you using a PRI / BRI or a analog phone line?

Then following "Thestealth's" question do you have CLI activated on the line in question.

Who did the setup of the dialplan for you, they could be dropping CLI in the dialplan, or just not passing it to the phones.

What type / make phones are you using?

It's a PRI card and the name of the card is "Wildcard TE12xP" ..

Below is a dump of an inbound call made to PRI:

Code:
< Protocol Discriminator: Q.931 (8)  len=31
< Call Ref: len= 2 (reference 44/0x2C) (Originator)
< Message type: SETUP (5)
< [a1]*CLI>
< Sending Complete (len= 1)
< [04 03 90 90 a3]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: 3.1kHz audio (16)
<                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
<                              Ext: 1  User information layer 1: A-Law (35)
< [18 03 a9 83 8f]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0  Exclusive  Dchan: 0
<                        ChanSel: Reserved
<                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
<                       Ext: 1  Channel: 15 ]
< [1e 02 82 83]
< 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: Calling equipment is non-ISDN. (3) ]
< [6c 02 00 a3]
[B]< Calling Number (len= 4) [ Ext: 0  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)
<                           Presentation: Presentation prohibited of network provided number (35)  '' ]
< [70 05 81 39 36 30 32][/B]
< Called Number (len= 7) [ Ext: 1  TON: Unknown Number Type (0)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '9602'
 
Last edited by a moderator:
Okay there is a few more technical details needed, are you using a PRI / BRI or a analog phone line?

Then following "Thestealth's" question do you have CLI activated on the line in question.

Who did the setup of the dialplan for you, they could be dropping CLI in the dialplan, or just not passing it to the phones.

What type / make phones are you using?
 
I've edited my original post as the forum is not saving my reply for some reason ..

EDIT: For some reason, this reply deleted my original post .. So below is a copy of what was in the original post:

---------------------

Thanks alot for the replies ..

Does the number in the modem have CLI? And is it a (PABX) management number?

The number does have CLI ..

Okay there is a few more technical details needed, are you using a PRI / BRI or a analog phone line?

Then following "Thestealth's" question do you have CLI activated on the line in question.

Who did the setup of the dialplan for you, they could be dropping CLI in the dialplan, or just not passing it to the phones.

What type / make phones are you using?

It's a PRI card and the name of the card is "Wildcard TE12xP" ..

Below is a dump of an inbound call made to PRI:

Code:
< Protocol Discriminator: Q.931 (8)  len=31
< Call Ref: len= 2 (reference 44/0x2C) (Originator)
< Message type: SETUP (5)
< [a1]*CLI>
< Sending Complete (len= 1)
< [04 03 90 90 a3]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: 3.1kHz audio (16)
<                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
<                              Ext: 1  User information layer 1: A-Law (35)
< [18 03 a9 83 8f]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0  Exclusive  Dchan: 0
<                        ChanSel: Reserved
<                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
<                       Ext: 1  Channel: 15 ]
< [1e 02 82 83]
< 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: Calling equipment is non-ISDN. (3) ]
< [6c 02 00 a3]
[B]< Calling Number (len= 4) [ Ext: 0  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)
<                           Presentation: Presentation prohibited of network provided number (35)  '' ]
< [70 05 81 39 36 30 32][/B]
< Called Number (len= 7) [ Ext: 1  TON: Unknown Number Type (0)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '9602'
 
Last edited:
I can see the number called (your number) the last 4 digits is displayed

if you run asterisk -r -vvvvv and then receive a call what is that output?
 
I can see the number called (your number) the last 4 digits is displayed

if you run asterisk -r -vvvvv and then receive a call what is that output?

Thanks for all your help so far!

PART1

Code:
< Protocol Discriminator: Q.931 (8)  len=31
< Call Ref: len= 2 (reference 46/0x2E) (Originator)
< Message type: SETUP (5)
< [a1]
< Sending Complete (len= 1)
< [04 03 90 90 a3]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer capability: 3.1kHz audio (16)
<                              Ext: 1  Trans mode/rate: 64kbps, circuit-mode (16)
<                              Ext: 1  User information layer 1: A-Law (35)
< [18 03 a9 83 92]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0  Exclusive  Dchan: 0
<                        ChanSel: Reserved
<                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
<                       Ext: 1  Channel: 18 ]
< [1e 02 82 83]
< 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: Calling equipment is non-ISDN. (3) ]
< [6c 02 00 a3]
< Calling Number (len= 4) [ Ext: 0  TON: Unknown Number Type (0)  NPI: Unknown Number Plan (0)
<                           Presentation: Presentation prohibited of network provided number (35)  '' ]
< [70 05 81 39 36 30 32]
< Called Number (len= 7) [ Ext: 1  TON: Unknown Number Type (0)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '9602' ]
-- Making new call for cr 46
-- Processing Q.931 Call Setup
-- Processing IE 161 (cs0, Sending Complete)
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 30 (cs0, Progress Indicator)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
q931.c:3296 q931_receive: call 46 on channel 18 enters state 6 (Call Present)
q931.c:2570 q931_call_proceeding: call 46 on channel 18 enters state 9 (Incoming Call Proceeding)
> Protocol Discriminator: Q.931 (8)  len=10
> Call Ref: len= 2 (reference 46/0x2E) (Terminator)
> Message type: CALL PROCEEDING (2)
> [18 03 a9 83 92]
> Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0  Exclusive  Dchan: 0
>                        ChanSel: Reserved
>                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
>                       Ext: 1  Channel: 18 ]
    -- Accepting call from '' to '9602' on channel 0/18, span 1
    -- Executing [9602@from-zaptel:1] Set("Zap/18-1", "DID=9602") in new stack
    -- Executing [9602@from-zaptel:2] Goto("Zap/18-1", "s|1") in new stack
    -- Goto (from-zaptel,s,1)
    -- Executing [s@from-zaptel:1] NoOp("Zap/18-1", "Entering from-zaptel with DID == 9602") in new stack
    -- Executing [s@from-zaptel:2] Ringing("Zap/18-1", "") in new stack
q931.c:2598 q931_alerting: call 46 on channel 18 enters state 7 (Call Received)
> Protocol Discriminator: Q.931 (8)  len=9
> Call Ref: len= 2 (reference 46/0x2E) (Terminator)
> Message type: ALERTING (1)
> [1e 02 81 88]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Private network serving the local user (1)
>                               Ext: 1  Progress Description: Inband information or appropriate pattern now available. (8) ]
    -- Executing [s@from-zaptel:3] Set("Zap/18-1", "DID=9602") in new stack
    -- Executing [s@from-zaptel:4] NoOp("Zap/18-1", "DID is now 9602") in new stack
    -- Executing [s@from-zaptel:5] GotoIf("Zap/18-1", "1?zapok:notzap") in new stack
    -- Goto (from-zaptel,s,8)
    -- Executing [s@from-zaptel:8] NoOp("Zap/18-1", "Is a Zaptel Channel") in new stack
    -- Executing [s@from-zaptel:9] Set("Zap/18-1", "CHAN=18-1") in new stack
    -- Executing [s@from-zaptel:10] Set("Zap/18-1", "CHAN=18") in new stack
    -- Executing [s@from-zaptel:11] Macro("Zap/18-1", "from-zaptel-18|9602|1") in new stack
    -- Executing [s@from-zaptel:12] NoOp("Zap/18-1", "Returned from Macro from-zaptel-18") in new stack
    -- Executing [s@from-zaptel:13] Goto("Zap/18-1", "from-pstn|9602|1") in new stack
    -- Goto (from-pstn,9602,1)
    -- Executing [9602@from-pstn:1] Set("Zap/18-1", "__FROM_DID=9602") in new stack
    -- Executing [9602@from-pstn:2] GotoIf("Zap/18-1", "0 ?cidok") in new stack
    -- Executing [9602@from-pstn:3] Set("Zap/18-1", "CALLERID(name)=") in new stack
    -- Executing [9602@from-pstn:4] NoOp("Zap/18-1", "CallerID is "" <>") in new stack
    -- Executing [9602@from-pstn:5] Ringing("Zap/18-1", "") in new stack
    -- Executing [9602@from-pstn:6] Set("Zap/18-1", "FAX_RX=disabled") in new stack
    -- Executing [9602@from-pstn:7] Goto("Zap/18-1", "ext-queues|200|1") in new stack
    -- Goto (ext-queues,200,1)
    -- Executing [200@ext-queues:1] Macro("Zap/18-1", "user-callerid|") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("Zap/18-1", "user-callerid:  ") in new stack
    -- Executing [s@macro-user-callerid:2] Set("Zap/18-1", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("Zap/18-1", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] GotoIf("Zap/18-1", "0?start") in new stack
    -- Executing [s@macro-user-callerid:5] Set("Zap/18-1", "REALCALLERIDNUM=") in new stack
    -- Executing [s@macro-user-callerid:6] NoOp("Zap/18-1", "REALCALLERIDNUM is ") in new stack
    -- Executing [s@macro-user-callerid:7] Set("Zap/18-1", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:8] Set("Zap/18-1", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:9] GotoIf("Zap/18-1", "1?report") in new stack
    -- Goto (macro-user-callerid,s,13)
    -- Executing [s@macro-user-callerid:13] NoOp("Zap/18-1", "TTL:  ARG1: ") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("Zap/18-1", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:15] Set("Zap/18-1", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("Zap/18-1", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("Zap/18-1", "Using CallerID "" <>") in new stack
    -- Executing [200@ext-queues:2] Answer("Zap/18-1", "") in new stack
q931.c:2699 q931_connect: call 46 on channel 18 enters state 8 (Connect Request)
 
PART 2

Code:
> Protocol Discriminator: Q.931 (8)  len=14
> Call Ref: len= 2 (reference 46/0x2E) (Terminator)
> Message type: CONNECT (7)
> [18 03 a9 83 92]
> Channel ID (len= 5) [ Ext: 1  IntID: Implicit  PRI  Spare: 0  Exclusive  Dchan: 0
>                        ChanSel: Reserved
>                       Ext: 1  Coding: 0  Number Specified  Channel Type: 3
>                       Ext: 1  Channel: 18 ]
> [1e 02 81 82]
> Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  0: 0  Location: Private network serving the local user (1)
>                               Ext: 1  Progress Description: Called equipment is non-ISDN. (2) ]
    -- Executing [200@ext-queues:3] Set("Zap/18-1", "__BLKVM_OVERRIDE=BLKVM/200/Zap/18-1") in new stack
    -- Executing [200@ext-queues:4] Set("Zap/18-1", "__BLKVM_BASE=200") in new stack
    -- Executing [200@ext-queues:5] Set("Zap/18-1", "DB(BLKVM/200/Zap/18-1)=TRUE") in new stack
    -- Executing [200@ext-queues:6] Set("Zap/18-1", "_DIAL_OPTIONS=trM(auto-blkvm)") in new stack
    -- Executing [200@ext-queues:7] Set("Zap/18-1", "__NODEST=200") in new stack
    -- Executing [200@ext-queues:8] Set("Zap/18-1", "MONITOR_FILENAME=/var/spool/asterisk/monitor/q200-20080221-174419-1203608659.24") in new stack
    -- Executing [200@ext-queues:9] Queue("Zap/18-1", "200|t||") in new stack
    -- Executing [4010@from-internal:1] Macro("Local/4010@from-internal-263b,2", "exten-vm|novm|4010") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("Local/4010@from-internal-263b,2", "user-callerid") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("Local/4010@from-internal-263b,2", "user-callerid:  ") in new stack
    -- Executing [s@macro-user-callerid:2] Set("Local/4010@from-internal-263b,2", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("Local/4010@from-internal-263b,2", "1?report") in new stack
    -- Goto (macro-user-callerid,s,13)
    -- Executing [s@macro-user-callerid:13] NoOp("Local/4010@from-internal-263b,2", "TTL: 64 ARG1: novm") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("Local/4010@from-internal-263b,2", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:15] Set("Local/4010@from-internal-263b,2", "__TTL=63") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("Local/4010@from-internal-263b,2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("Local/4010@from-internal-263b,2", "Using CallerID "" <>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("Local/4010@from-internal-263b,2", "FROMCONTEXT=exten-vm") in new stack
    -- Executing [s@macro-exten-vm:3] Set("Local/4010@from-internal-263b,2", "VMBOX=novm") in new stack
    -- Executing [s@macro-exten-vm:4] Set("Local/4010@from-internal-263b,2", "EXTTOCALL=4010") in new stack
    -- Executing [s@macro-exten-vm:5] Set("Local/4010@from-internal-263b,2", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("Local/4010@from-internal-263b,2", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("Local/4010@from-internal-263b,2", "RT=""") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("Local/4010@from-internal-263b,2", "record-enable|4010|IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("Local/4010@from-internal-263b,2", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("Local/4010@from-internal-263b,2", "recordingcheck|20080221-174419|1203608659.26") in new stack
    -- Launched AGI Script <edited>recordingcheck
  recordingcheck|20080221-174419|1203608659.26: Inbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("Local/4010@from-internal-263b,2", "No recording needed") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("Local/4010@from-internal-263b,2", "dial||trM(auto-blkvm)|4010") in new stack
    -- Executing [s@macro-dial:1] GotoIf("Local/4010@from-internal-263b,2", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("Local/4010@from-internal-263b,2", "dialparties.agi") in new stack
    -- Launched AGI Script <edited>dialparties.agi
  dialparties.agi: Starting New Dialparties.agi
  == Parsing '<edited>manager.conf': Found
  == Parsing '<edited>manager_additional.conf': Found
  == Parsing '<edited>manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
  dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
  dialparties.agi: USE_CONFIRMATION:  'FALSE'
  dialparties.agi: RINGGROUP_INDEX:   ''
  dialparties.agi: Methodology of ring is  'none'
    --  dialparties.agi: Added extension 4010 to extension map
    --  dialparties.agi: Extension 4010 cf is disabled
    --  dialparties.agi: Extension 4010 do not disturb is disabled
       >  dialparties.agi: extnum 4010 has:  cw: 1; hascfb: 0 [] hascfu: 0 []
       >  dialparties.agi: ExtensionState: 0
    --  dialparties.agi: DbDel CALLTRACE/4010 - Caller ID is not defined
       >  dialparties.agi: NODEST: 200 blkvm enabled macro already in dialopts: trM(auto-blkvm)
       >  dialparties.agi: NODEST: 200 blkvm enabled macro already in dialopts: trM(auto-blkvm)
  == Manager 'admin' logged off from 127.0.0.1
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:10] Dial("Local/4010@from-internal-263b,2", "SIP/4010||trM(auto-blkvm)") in new stack
    -- Called 4010
    -- Local/4010@from-internal-263b,1 is ringing
    -- SIP/4010-081cebe0 is ringing
    -- SIP/4010-081cebe0 is ringing
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 46/0x2E) (Originator)
< Message type: CONNECT ACKNOWLEDGE (15)
q931.c:3454 q931_receive: call 46 on channel 18 enters state 10 (Active)
    -- SIP/4010-081cebe0 is ringing
    -- SIP/4010-081cebe0 is ringing
 
Any chance of getting a debug including the number ranges programmed on the PRI? I don't think she's allowing all based on the info from her LCR. Please post then we can check it out.
 
Top
Sign up to the MyBroadband newsletter
X