How to send additional digits from mISDN to extensions.conf?

Hi,

I have the following situation:

  • A normal SOHO ISDN PBX (KPN Homevox == NL Customized Euracom 26xF) with a regular external ISDN line attached.
  • In the internal S0 bus I have an ISDN phone and a HFC based ISDN card in the PC I’ll be using as my Asterisk server.

When I first installed Asterisk 1.2.xx on this system last summer I (as far as I’m able to remember) was able to dial 22123 (22 being the MSN to which the mISDN was configured) and the rest the numbers to select the SIP account that is to be called. So I can have something like this: exten => 22123,n,Dial(SIP/blablabla)

Somehow this functionality was lost over time and I don’t have a clue what I did wrong.
Last week I completely reinstalled Asterisk 1.4.0 beta 3. Started all config files from the original samples again and still nothing.
From what I’ve read so far the append_digits2exten=yes in the mISDN config should do what I need, but it doesn’t.

At this moment if I dial 22123 I’m put in the [InternISDN] context in my extentions.conf which has these testing rules. What I hear is just 22, not 22123 or something like that.

[InternISDN]
exten => _2.,1,Answer()
exten => _2.,n,Wait(4)
exten => _2.,n,SayDigits(${EXTEN})
exten => _2.,n,Hangup()

Now what I get in my console ( I dial 22123 from phone numbered 16 ):

Connected to Asterisk 1.4.0-beta3 currently running on storage (pid = 25659)
Verbosity is at least 4
storage*CLI> misdn set debug 4
changing debug level for all ports to 4
P[ 1] handle_frm: frm->addr:42000103 frm->prim:3f082
P[ 1] handle_frm: frm->addr:42000103 frm->prim:30582
P[ 1] set_channel: bc->channel:0 channel:1
P[ 1] I IND :NEW_CHANNEL oad:16 dad:22 pid:5 state:none
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Audio 3.1k pi:0 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:0 l3id:20054 b_stid:0 layer_id:50010180
P[ 1] --> facility:Fac_None out_facility:Fac_None
P[ 1] --> bc_state:BCHAN_CLEANED
P[ 1] Chan not existing at the moment bc->l3id:20054 bc:0x9e2c3f8 event:NEW_CHANNEL port:1 channel:1
P[ 1] set_chan_in_stack: 1
P[ 1] I IND :SETUP oad:16 dad:22 pid:5 state:none
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Audio 3.1k pi:3 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:0 l3id:20054 b_stid:0 layer_id:50010180
P[ 1] --> facility:Fac_None out_facility:Fac_None
P[ 1] --> bc_state:BCHAN_CLEANED
P[ 1] --> Bearer: Audio 3.1k
P[ 1] --> Codec: Alaw
P[ 0] --> * NEW CHANNEL dad:22 oad:16
P[ 1] --> updating channel name to [mISDN/1-u3]
P[ 1] read_config: Getting Config
P[ 1] --> CTON: Unknown
P[ 1] EXPORT_PID: pid:5
P[ 1] --> PRES: Restricted (0)
P[ 1] --> SCREEN: Unscreened (0)
P[ 1] * Queuing chan 0xb6302408
P[ 1] I SEND:PROCEEDING oad:16 dad:22 pid:5
P[ 1] --> bc_state:BCHAN_CLEANED
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Audio 3.1k pi:3 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:0 l3id:20054 b_stid:0 layer_id:50010180
P[ 1] --> facility:Fac_None out_facility:Fac_None
P[ 1] GOT SETUP OK
P[ 1] Sending msg, prim:30280 addr:41000104 dinfo:20054
– Executing [22@InternISDN:1] Answer(“mISDN/1-u3”, “”) in new stack
P[ 1] * ANSWER:
P[ 1] --> Connection is without BF encryption
P[ 1] --> ECHO OFF
P[ 1] ph_control: c1:2303 c2:0
P[ 1] --> None
P[ 1] --> empty cad using dad
P[ 1] I SEND:CONNECT oad:16 dad:22 pid:5
P[ 1] --> bc_state:BCHAN_CLEANED
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:22
P[ 0] PH_CONTROL|CONFIRM
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Audio 3.1k pi:3 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:0 l3id:20054 b_stid:0 layer_id:50010180
P[ 1] --> facility:Fac_None out_facility:Fac_None
P[ 1] setup_bc: with dsp
P[ 1] --> Channel is 1
P[ 1] --> TRANSPARENT Mode
P[ 1] bchan: DL_ESTABLISH|CNF
P[ 1] ph_control: c1:2100 c2:0
P[ 1] ec_enable
P[ 1] Sending msg, prim:30780 addr:41000104 dinfo:20054
– Executing [22@InternISDN:2] Wait(“mISDN/1-u3”, “4”) in new stack
P[ 1] MGMT: SSTATUS: L2_ESTABLISH
P[ 1] handle_frm: frm->addr:42000103 frm->prim:30f82
P[ 1] I IND :CONNECT_ACKNOWLEDGE oad:16 dad:22 pid:5 state:CONNECTED
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:22
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Audio 3.1k pi:3 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:50010102 l3id:20054 b_stid:10010100 layer_id:50010180
P[ 1] --> facility:Fac_None out_facility:Fac_None
P[ 1] --> bc_state:BCHAN_ACTIVATED
P[ 1] PH_CONTROL: channel:1 oad0:16 dad4:22
P[ 1] --> DTMF TONE: 3
P[ 1] I IND :smiley:TMF_TONE oad:16 dad:22 pid:5 state:CONNECTED
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:22
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Audio 3.1k pi:3 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:50010102 l3id:20054 b_stid:10010100 layer_id:50010180
P[ 1] --> facility:Fac_None out_facility:Fac_None
P[ 1] --> bc_state:BCHAN_ACTIVATED
P[ 1] --> DTMF:3
– Executing [22@InternISDN:3] SayDigits(“mISDN/1-u3”, “22”) in new stack
– Playing ‘digits/2’ (language ‘en’)
– Playing ‘digits/2’ (language ‘en’)
– Executing [22@InternISDN:4] Hangup(“mISDN/1-u3”, “”) in new stack
== Spawn extension (InternISDN, 22, 4) exited non-zero on 'mISDN/1-u3’
P[ 1] * IND : HANGUP pid:5 ctx:InternISDN dad:22 oad:16 State:CONNECTED
P[ 1] --> l3id:20054
P[ 1] --> cause:16
P[ 1] --> out_cause:16
P[ 1] --> state:CONNECTED
P[ 1] I SEND:DISCONNECT oad:16 dad:22 pid:5
P[ 1] --> bc_state:BCHAN_ACTIVATED
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:22
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Audio 3.1k pi:3 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:50010102 l3id:20054 b_stid:10010100 layer_id:50010180
P[ 1] --> facility:Fac_None out_facility:Fac_None
P[ 1] Channel: mISDN/1-u3 hanguped new state:CLEANING
P[ 1] Sending msg, prim:34580 addr:41000104 dinfo:20054
P[ 1] handle_frm: frm->addr:42000103 frm->prim:34d82
P[ 1] empty_chan_in_stack: 1
P[ 1] $$$ CLEANUP CALLED pid:5
P[ 1] $$$ Cleaning up bc with stid :10010100 pid:5
P[ 1] ec_disable
P[ 1] Sending Control ECHOCAN_OFF
P[ 1] ph_control: c1:2319 c2:0
P[ 1] I IND :RELEASE oad: dad: pid:5 state:CLEANING
P[ 1] --> channel:0 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:50010102 l3id:20054 b_stid:0 layer_id:50010180
P[ 1] --> facility:Fac_None out_facility:Fac_None
P[ 1] --> bc_state:BCHAN_CLEANED
P[ 1] ast_hangup already called, so we have no ast ptr anymore in event(RELEASE)
P[ 1] hangup_chan
P[ 1] No need to queue hangup
P[ 1] Cannot hangup chan, no ast
P[ 1] release_chan: bc with l3id: 20054
P[ 1] I SEND:RELEASE_COMPLETE oad: dad: pid:5
P[ 1] --> bc_state:BCHAN_CLEANED
P[ 1] --> channel:0 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:50010102 l3id:20054 b_stid:0 layer_id:50010180
P[ 1] --> facility:Fac_None out_facility:Fac_None
P[ 1] BCHAN: MGR_DELLAYER|CNF pid:5
P[ 1] Sending msg, prim:35a80 addr:41000104 dinfo:20054

I’ve removed the comments from my config files and appended them here.

What do I need to change ?
What tests do I need to run with what debugging flags to give you guys the info needed to help me ?

Thanks for any help you can give me.

Niels Basjes

===== /etc/misdn-init.conf =====
card=1,hfcpci
te_ptmp=1
poll=128
dsp_poll=128
dsp_options=0
dtmftreshold=100
debug=0

===== /etc/asterisk/misdn.conf =====
[general]
misdn_init=/etc/misdn-init.conf
debug=1
ntdebugflags=0
ntdebugfile=/var/log/misdn-nt.log
bridging=no
stop_tone_after_first_digit=yes
append_digits2exten=yes
dynamic_crypt=no
crypt_prefix=**
crypt_keys=test,muh

[default]
context=misdn
language=en
musicclass=default
senddtmf=yes
far_alerting=no
allowed_bearers=all
nationalprefix=0
internationalprefix=00
rxgain=0
txgain=0
te_choose_channel=no
pmp_l1_check=yes
reject_cause=16
need_more_infos=no
method=standard
dialplan=0
localdialplan=0
cpndialplan=0
early_bconnect=yes
incoming_early_audio=no
nodialtone=no
presentation=-1
screen=-1
echocancelwhenbridged=no
jitterbuffer=4000
jitterbuffer_upper_threshold=0
hdlc=no
max_incoming=-1
max_outgoing=-1

[intern]
ports=1
context=InternISDN
msns=22