David Klaverstyn
2018-Jan-15 22:41 UTC
[asterisk-users] Digium G100 and CID Dropping First Digit.
Hi All, I have installed a number of Digium G100 devices in many countries like South Korea, Japan, Singapore and Australia. I have just installed two in New Zealand and both sites are having a problem with Caller ID. Incoming calls are dropping the first digit 0 from the caller ID. I was previously using DAHDI and a TE121 device which may have been adding the 0, I'm not too sure about that. Anyhow, is it possible the Digium G100 is causing the problem or would it be the Telco not passing the full CID number? I have the latest firmware on the G100, the same with all my other locations. I am using the latest Asterisk 13.19.0. The Telco is blaming the PBX for the problem so I'm hoping someone here can shed some light. Below is a debug extract which I hope will help. The 21 number should be 021. Jan 16 10:53:16 G100-59-c4-ca asterisk[4674]: VERBOSE[4786]: chan_gtw/chan.c:4803 in dgm_pri_message: port1 < Calling Number (len=12) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) Jan 16 10:53:16 G100-59-c4-ca asterisk[4674]: VERBOSE[4786]: chan_gtw/chan.c:4803 in dgm_pri_message: port1 < Presentation: Presentation allowed of network provided number (3) '21xxxxxx' ] Jan 16 10:53:16 G100-59-c4-ca asterisk[4674]: VERBOSE[4786]: chan_gtw/chan.c:4803 in dgm_pri_message: port1 < [70 0a c1 30 34 39 31 34 31 32 31 34] Jan 16 10:53:16 G100-59-c4-ca asterisk[4674]: VERBOSE[4786]: chan_gtw/chan.c:4803 in dgm_pri_message: port1 < Called Number (len=12) [ Ext: 1 TON: Subscriber Number (4) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '049xxxxxx' ] Jan 16 10:53:16 G100-59-c4-ca asterisk[4674]: VERBOSE[4786]: chan_gtw/sig_pri_new.c:5383 in pri_dchannel: -- Accepting call from '21xxxxxx' to '049xxxxxx' on channel 0/5, span 1 Thanks David. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180115/e4916ddc/attachment.html>
Daniel Tryba
2018-Jan-15 22:57 UTC
[asterisk-users] Digium G100 and CID Dropping First Digit.
On Mon, Jan 15, 2018 at 10:41:27PM +0000, David Klaverstyn wrote:> port1 < Calling Number (len=12) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) > port1 < Presentation: Presentation allowed of network provided number (3) '21xxxxxx' ] > port1 < [70 0a c1 30 34 39 31 34 31 32 31 34] > port1 < Called Number (len=12) [ Ext: 1 TON: Subscriber Number (4) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '049xxxxxx' ] > > -- Accepting call from '21xxxxxx' to '049xxxxxx' on channel 0/5, span 1Don't know anything about the card you are using, but seeing ISDN signaling that the type of number (TON) is national and that means overhere that leading zeros are stripped, I see nothing wrong with it. Looking at my old chan_dadhi configs there are options to prefix something based on TON. So over here I have configured: nationalprefix = 0 to prefix the leading 0 for national numbers that callees expect. The G100 manual contains the phrase "national prefix", but no info about it, so look into those prefix options.
David Klaverstyn
2018-Jan-15 23:35 UTC
[asterisk-users] Digium G100 and CID Dropping First Digit.
On Mon, Jan 15, 2018 at 10:41:27PM +0000, David Klaverstyn wrote:> port1 < Calling Number (len=12) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) > port1 < Presentation: Presentation allowed of network provided number (3) '21xxxxxx' ] > port1 < [70 0a c1 30 34 39 31 34 31 32 31 34] > port1 < Called Number (len=12) [ Ext: 1 TON: Subscriber Number (4) > NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '049xxxxxx' ] > > -- Accepting call from '21xxxxxx' to '049xxxxxx' on channel 0/5, span > 1Don't know anything about the card you are using, but seeing ISDN signaling that the type of number (TON) is national and that means overhere that leading zeros are stripped, I see nothing wrong with it. Looking at my old chan_dadhi configs there are options to prefix something based on TON. So over here I have configured: nationalprefix = 0 to prefix the leading 0 for national numbers that callees expect. The G100 manual contains the phrase "national prefix", but no info about it, so look into those prefix options. -- I feel stupid now. I should have figured that one out. On the Digium gateway: Configuration > T1/E1 > Advanced Signalling > PRI Options : International, Nation and Local prefix. Once I entered the correct digits International 00 and National 0, CID worked as expected.