A B410P hangup upon answering

Hello,

I have a problem with an Asterisk / Digium B410P installation.

I put together:
• asterisk-1.4.23.1
• zaptel-1.4 (I’m not sure whether I need this)
• libpri-1.4.9 (I’m not sure whether I need this)
• mISDN 1_1_9.1

Voice calls to land lines work, even if the LED of the connected port is red (the other three are flashing red).

When trying to call mobiles, the phone rings, but as soon as I answer the Asterisk hangs up.

Following you’ll find the mISDN log I’ve been able to take.

Can you please help?

Thanks in advance,
Dario

P[ 4] handle_frm: frm->addr:42000403 frm->prim:30282
P[ 4] set_channel: bc->channel:1 channel:-1
P[ 4] $$$ bc already setup stid :10010400 (state:BCHAN_ACTIVATED)
P[ 4] I IND :stuck_out_tongue:ROCEEDING oad:401 dad:0349065XXXX pid:2 state:CALLING_ACKNOWLEDGE
P[ 4] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 4] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 4] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 4] --> screen:0 --> pres:0
P[ 4] --> addr:50010402 l3id:90001 b_stid:10010400 layer_id:50010480
P[ 4] --> facility:Fac_None out_facility:Fac_None
P[ 4] --> bc_state:BCHAN_ACTIVATED
P[ 4] --> updating channel name to [mISDN/7-u3]
P[ 4] handle_frm: frm->addr:42000403 frm->prim:30782
P[ 4] $$$ bc already setup stid :10010400 (state:BCHAN_ACTIVATED)
P[ 4] I IND :CONNECT oad:401 dad:0349065XXXX pid:2 state:PROCEEDING
P[ 4] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:3490657666
P[ 4] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 4] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 4] --> screen:0 --> pres:0
P[ 4] --> addr:50010402 l3id:90001 b_stid:10010400 layer_id:50010480
P[ 4] --> facility:Fac_None out_facility:Fac_None
P[ 4] --> bc_state:BCHAN_ACTIVATED
P[ 4] I SEND:CONNECT_ACKNOWLEDGE oad:401 dad:0349065XXXX pid:2
P[ 4] --> bc_state:BCHAN_ACTIVATED
P[ 4] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:3490657666
P[ 4] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 4] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 4] --> screen:0 --> pres:0
P[ 4] --> addr:50010402 l3id:90001 b_stid:10010400 layer_id:50010480
P[ 4] --> facility:Fac_None out_facility:Fac_None
P[ 4] $$$ bc already setup stid :10010400 (state:BCHAN_ACTIVATED)
P[ 4] ph_control: c1:2100 c2:0
P[ 4] ec_enable
P[ 4] Sending Control ECHOCAN_ON taps:128
P[ 4] Taps is 128
P[ 4] Sending msg, prim:30783 addr:41000404 dinfo:90001
P[ 4] --> None
P[ 4] --> * Unknown Indication:20 pid:2

ANSWER

P[ 4] handle_frm: frm->addr:42000403 frm->prim:34582
P[ 4] I IND :smiley:ISCONNECT oad:401 dad:0349065XXXX pid:2 state:CONNECTED
P[ 4] --> channel:1 mode:TE cause:41 ocause:16 rad: cad:349065XXXX
P[ 4] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 4] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 4] --> screen:0 --> pres:0
P[ 4] --> addr:50010402 l3id:90001 b_stid:10010400 layer_id:50010480
P[ 4] --> facility:Fac_None out_facility:Fac_None
P[ 4] --> bc_state:BCHAN_ACTIVATED
P[ 4] $$$ find_holded: --> holded:0 channel:0
P[ 4] --> org:1 nt:0, inbandavail:0 state:11
P[ 4] --> queue_hangup
P[ 4] I SEND:RELEASE oad:401 dad:0349065XXXX pid:2
P[ 4] --> bc_state:BCHAN_ACTIVATED
P[ 4] --> channel:1 mode:TE cause:41 ocause:-1 rad: cad:349065XXXX
P[ 4] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 4] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 4] --> screen:0 --> pres:0
P[ 4] --> addr:50010402 l3id:90001 b_stid:10010400 layer_id:50010480
P[ 4] --> facility:Fac_None out_facility:Fac_None
P[ 4] Sending msg, prim:34d80 addr:41000404 dinfo:90001
P[ 4] * IND : HANGUP pid:2 ctx:valueteam dad: oad:0349065XXXX State:CONNECTED
P[ 4] --> l3id:90001
P[ 4] --> cause:41
P[ 4] --> out_cause:-1
P[ 4] --> state:CONNECTED
P[ 4] --> Channel: mISDN/7-u3 hanguped new state:CLEANING
P[ 4] handle_frm: frm->addr:42000403 frm->prim:34d82
P[ 4] I IND :RELEASE oad:401 dad:0349065XXXX pid:2 state:CLEANING
P[ 4] --> channel:1 mode:TE cause:101 ocause:-1 rad: cad:349065XXXX
P[ 4] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 4] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 4] --> screen:0 --> pres:0
P[ 4] --> addr:50010402 l3id:90001 b_stid:10010400 layer_id:50010480
P[ 4] --> facility:Fac_None out_facility:Fac_None
P[ 4] --> bc_state:BCHAN_ACTIVATED
P[ 4] ast_hangup already called, so we have no ast ptr anymore in event(RELEASE)
P[ 4] --> No need to queue hangup
P[ 4] Cannot hangup chan, no ast
P[ 4] handle_frm: frm->addr:42000403 frm->prim:3f182
P[ 4] --> lib: RELEASE_CR Ind with l3id:90001
P[ 4] --> lib: CLEANING UP l3id: 90001
P[ 4] $$$ CLEANUP CALLED pid:2
P[ 4] $$$ Cleaning up bc with stid :10010400 pid:2
P[ 4] --> ec_disable
P[ 4] Sending Control ECHOCAN_OFF
P[ 4] ph_control: c1:2319 c2:0
P[ 4] empty_chan_in_stack: 1
P[ 4] BCHAN: DeACT Conf pid:2
P[ 4] BCHAN: MGR_DELLAYER|CNF pid:2

You don’t need libpri package, it’s for PRI cards, you can safely run * without it.
Are you using softphone for outgoing call or… ?
Can you post your conf files?

mIRO

Yes, I tried calling outbound with X-Lite, but the result is the same dialing from the console.

Which conf file do you need?

I’ll start with misdn.conf (I’m using port 4):

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

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

[intern]
ports=1,2
context=Intern

[internPP]
ports=3

[first_extern]
ports=4
context=valueteam
msns=*

And this is misdn-init.conf:

card=1,0x4
poll=128
dsp_poll=128
dsp_options=0
dtmfthreshold=100
debug=0

intern, internPP and first_extern are default contexts, maybe you should define all four ports within one context, something like:

[isdnports]
ports=1,2,3,4
context=isdn
msns=*

For incoming calls, extensions.ael (syntax is a little bit different from extensions.conf, but you’ll understand :wink: )

context isdn
{
_X. => Dial(SIP/dario);
}

For outgoing calls:

context outgoing {
_X. => Dial(mISDN/g:isdnports/${Exten},40);
t => Hangup();
}

mIRO