Extension can never match, so disconnecting (BN4S0 and mIsdn)

largo_winzclav

Neuer User
Mitglied seit
21 Okt 2006
Beiträge
2
Punkte für Reaktionen
0
Punkte
0
Hello !

Sorry to write in (bad ;-)) english but I live in Belgium and I can't speak german...

I have a problem with my BN4S0 and mIsdn.

If I configure "always_immediate=no" in my misdn.conf, I can't dial into Asterisk, I recevice a message saying "Extension can never match, so disconnecting" and I'm disconnected.

Here you will find misdn.log output :

Code:
I IND :SETUP oad: dad:80672080 pid:25 state:none
P[ 1]   --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1]   --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
P[ 1]   --> caps:Speech pi:3 keypad: sending_complete:1
P[ 1]   --> Bearer: Speech
P[ 1]   --> Codec: Alaw
P[ 0]   --> * NEW CHANNEL dad:80672080 oad:
P[ 1]   --> CTON: Unknown
P[ 1]   --> EXPORT_PID: pid:25
P[ 1]   --> PRES: Restricted (1)
P[ 1]   --> SCREEN: Unscreened (0)
P[ 1]  Extension can never match, so disconnecting
P[ 1]  I SEND:RELEASE oad: dad:080672080 pid:25
P[ 1]   --> channel:1 mode:TE cause:16 ocause:1 rad: cad:
P[ 1]   --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
P[ 1]   --> caps:Speech pi:3 keypad: sending_complete:1
P[ 1]  $$$ CLEANUP CALLED pid:25
P[ 1]  I IND :RELEASE_COMPLETE oad: dad: pid:25 state:EXTCANTMATCH
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]   --> hangup
P[ 1]  * IND : HANGUP	pid:25 ctx:from-pstn dad:080672080 oad:(null) State:EXTCANTMATCH
P[ 1]   --> l3id:2000c		
P[ 1]   --> cause:16
P[ 1]   --> out_cause:16
P[ 1]   --> state:EXTCANTMATCH
P[ 1]   --> Channel: mISDN/1-1 hanguped new state:CLEANING
P[ 1]  $$$ CLEANUP CALLED pid:25

If I change "always_immediate" to yes, the call is established and everything goes fine, here is the misdn.log output :

Code:
P[ 1]  I IND :SETUP oad: dad:80672080 pid:7 state:none
P[ 1]   --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1]   --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
P[ 1]   --> caps:Speech pi:3 keypad: sending_complete:1
P[ 1]   --> Bearer: Speech
P[ 1]   --> Codec: Alaw
P[ 0]   --> * NEW CHANNEL dad:80672080 oad:
P[ 1]   --> CTON: Unknown
P[ 1]   --> EXPORT_PID: pid:7
P[ 1]   --> PRES: Restricted (1)
P[ 1]   --> SCREEN: Unscreened (0)
P[ 1]  I SEND:SETUP_ACKNOWLEDGE oad: dad:080672080 pid:7
P[ 1]   --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1]   --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
P[ 1]   --> caps:Speech pi:3 keypad: sending_complete:1
P[ 1]   --> TRANSPARENT Mode
P[ 1]   --> incoming_early_audio off
P[ 1]  * Starting Ast ctx:from-pstn dad:080672080 oad:(null) with 's' extension
P[ 1]  * ANSWER:
P[ 1]   --> Connection is without BF encryption
P[ 1]   --> None
P[ 1]   --> empty cad using dad
P[ 1]  I SEND:CONNECT oad: dad:080672080 pid:7
P[ 1]   --> channel:1 mode:TE cause:16 ocause:16 rad: cad:080672080
P[ 1]   --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
P[ 1]   --> caps:Speech pi:3 keypad: sending_complete:1
P[ 1]  BCHAN: bchan ACT Confirm pid:7
P[ 1]  I IND :STATUS oad: dad:080672080 pid:7 state:CONNECTED
P[ 1]   --> channel:1 mode:TE cause:111 ocause:16 rad: cad:080672080
P[ 1]   --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
P[ 1]   --> caps:Speech pi:3 keypad: sending_complete:1
P[ 1]  I IND :CONNECT_ACKNOWLEDGE  oad: dad:080672080 pid:7 state:CONNECTED
P[ 1]   --> channel:1 mode:TE cause:111 ocause:16 rad: cad:080672080
P[ 1]   --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
P[ 1]   --> caps:Speech pi:3 keypad: sending_complete:1
P[ 1]  I IND :DISCONNECT oad: dad:080672080 pid:7 state:CONNECTED
P[ 1]   --> channel:1 mode:TE cause:16 ocause:16 rad: cad:080672080
P[ 1]   --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
P[ 1]   --> caps:Speech pi:8 keypad: sending_complete:1
P[ 1]   --> org:2 nt:0, inbandavail:1 state:10
P[ 1]   --> queue_hangup
P[ 1]  I SEND:RELEASE oad: dad:080672080 pid:7
P[ 1]   --> channel:1 mode:TE cause:16 ocause:-1 rad: cad:080672080
P[ 1]   --> info_dad: onumplan:0 dnumplan:2 rnumplan:  cpnnumplan:0
P[ 1]   --> caps:Speech pi:8 keypad: sending_complete:1
P[ 1]  * IND : HANGUP	pid:7 ctx:closed dad:1 oad:(null) State:CONNECTED
P[ 1]   --> l3id:20003
P[ 1]   --> cause:16
P[ 1]   --> out_cause:16
P[ 1]   --> state:CONNECTED
P[ 1]   --> Channel: mISDN/1-1 hanguped new state:CLEANING
P[ 1]  $$$ CLEANUP CALLED pid:7
P[ 1]  $$$ Cleaning up bc with stid :10010100 pid:7
P[ 1]  Sending Control ECHOCAN_OFF
P[ 1]  I IND :RELEASE_COMPLETE oad: dad: pid:7 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]  ast_hangup already called, so we have no ast ptr anymore in event(RELEASE_COMPLETE)
P[ 1]   --> No need to queue hangup
P[ 1]  Cannot hangup chan, no ast
P[ 1]  $$$ CLEANUP CALLED pid:7
P[ 1]  BCHAN: MGR_DELLAYER|CNF pid:7

The problem is that I don't know how to catch the DID (or dad) to redirect the calls...

Please help...

Thanks in advance.

Largo
 
Hi Largo,

can You provide Your extensions.conf?

Regards,

Sascha
 
Hello pluto70 !

After a short night :), I think I have found the problem.

My misdn.conf was :

Code:
[general]
language=fr
debug=3
tracefile=/var/log/asterisk/misdn.log
append_digits2exten=yes
bridging=yes

[default]
method=standard
context=default <==== KO
language=fr
nationalprefix=0
internationalprefix=00
rxgain=0.0
txgain=0.0
msns=*
msn=*
immediate=yes
;dialplan=0
;always_immediate=yes
hold_allowed=yes

[TEports]
context=from-pstn
ports=1,2
msns=*
msn=*

;[NTports]
;context=outgoing
;ports=3,4

I have just changed in :

Code:
[general]
language=fr
debug=3
tracefile=/var/log/asterisk/misdn.log
append_digits2exten=yes
bridging=yes

[default]
method=standard
context=from-pstn <==== OK
language=fr
nationalprefix=0
internationalprefix=00
rxgain=0.0
txgain=0.0
msns=*
msn=*
immediate=yes
;dialplan=0
;always_immediate=yes
hold_allowed=yes

[TEports]
context=from-pstn
ports=1,2
msns=*
msn=*

;[NTports]
;context=outgoing
;ports=3,4

My extensions.conf is :

Code:
[from-pstn-custom]
exten => _X.,1,Answer()
exten => _X.,n,NoOp("from-misdn-custom") 
exten => _X.,n,NoOp("DNID = " ${DNID}) 
exten => _X.,n,NoOp("CALLERID = " ${CALLERID(all)}) 
exten => _X.,n,NoOp("EXTEN = " ${EXTEN})
exten => _X.,n,NoOp("RDNIS = " ${RDNIS})
exten => _X.,n,GotoIf($[ ${DB(bhh/follow)} = 1 ]?follow,1,1)
exten => _X.,n,GotoIf($[ ${DB(bhh/exceptional)} = 1 ]?exceptional,1,1)
exten => _X.,n,GotoIf($[ ${DB(bhh/closed)} = 1 ]?closed,1,1)
exten => _X.,n,Dial(SIP/201&SIP/202&SIP/203&SIP/299|10)
exten => _X.,hint,SIP/201&SIP/202&SIP/203
exten => _X.,n,Playback(custom/message_attente1)
exten => _X.,n,Dial(SIP/201&SIP/202&SIP/203&SIP/299|40)
exten => _X.,hint,SIP/201&SIP/202&SIP/203
exten => _X.,n,Goto(message2,s,1)
exten => _X.,n+101,Hangup()

exten => s,1,Answer()
exten => s,n,NoOp("DNID = " ${DNID}) 
exten => s,n,NoOp("CALLERID = " ${CALLERID(all)}) 
exten => s,n,NoOp("EXTEN = " ${EXTEN})
exten => s,n,NoOp("RDNIS = " ${RDNIS})
exten => s,n,GotoIf($[ ${DB(bhh/follow)} = 1 ]?follow,1,1)
exten => s,n,GotoIf($[ ${DB(bhh/exceptional)} = 1 ]?exceptional,1,1)
exten => s,n,GotoIf($[ ${DB(bhh/closed)} = 1 ]?closed,1,1)
exten => s,n,Dial(SIP/201&SIP/202&SIP/203&SIP/299|10)
exten => s,hint,SIP/201&SIP/202&SIP/203
exten => s,n,Playback(custom/message_attente1)
exten => s,n,Dial(SIP/201&SIP/202&SIP/203&SIP/299|40)
exten => s,hint,SIP/201&SIP/202&SIP/203
exten => s,n,Goto(message2,s,1)
exten => s,n+101,Hangup()

[closed]
exten => 1,1,Playback(custom/message_horaires)
exten => 1,n,Hangup()

[follow]
exten => 1,1,Dial(SIP/3StarsNet/${DB(bhh/follow-num):1},30,r)
exten => 1,n,Hangup()

[exceptional]
exten => 1,1,Playback(custom/exeptionnellement_ferme)
exten => 1,n,Hangup()

[message2]
exten => s,1,Background(custom/message_attente2)
exten => 1,1,Dial(SIP/201&SIP/202&SIP/203&SIP/299)
exten => 1,hint,SIP/201&SIP/202&SIP/203
exten => 2,1,VoiceMail(s201&202&203)
exten => 2,n,Hangup()
exten => i,1,Goto(message2,s,1)
exten => t,1,Hangup()

I thought the context declaration relative to [TEPorts] would have priority on the context declared in [general] but it doesn't seem...

Anyway thank you for your intervention...

Regards,

Largo
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.