[Asterisk-Users] mISDN: No DID/extension information returns busy to caller

Ralf Schlatterbeck ralf at zoo.priv.at
Fri Apr 28 01:35:58 MST 2006


I'm running a setup with chan_misdn on a austrian PTP-line. When
somebody dials in without an extension, he gets a busy signal.
I don't see the call at all in asterisk.

I *have* set immediate=yes in misdn.conf. And I *do* have an s-extension
in my dialplan for the context used by misdn. Calls that provide an
extension work fine.

Attached is my misdn.conf and a verbose 3, misdn set debug 3 log for
calling myself without a DID (extension) provided.

Ralf
-- 
Ralf Schlatterbeck
email: ralf at zoo.priv.at FAX: +43/2243/26465/23

-------------- next part --------------
;
; chan_misdn sample config
;

; general section:
;
; for debugging and general setup, things that are not bound to port groups
;

[general] 
;
; Sets the Path to the misdn-init.conf (for nt_ptp mode checking)
;
misdn_init=/etc/misdn-init.conf

; set debugging flag: 
;   0 - No Debug
;   1 - mISDN Messages and * - Messages, and * - State changes
;   2 - Messages + Message specific Informations (e.g. bearer capability)
;   3 - very Verbose, the above + lots of Driver specific infos
;   4 - even more Verbose than 3
;
; default value: 0
;
debug=0


; the big trace
;
; default value: [not set]
;
;tracefile=/var/log/misdn.trace
tracefile=/var/log/asterisk/misdn.trace

; single call trace files
; set to true if you want to have them
; they depend on debug level
;
; default values: trace_calls : false
;                 trace_dir   : /var/log/
;
;trace_calls=false
;trace_dir=/var/log/

; set to yes if you want mISDN_dsp to bridge the calls in HW
;
; default value: yes
;
bridging=no

; stops dialtone after getting first digit on nt Port
;
; default value: yes
;
stop_tone_after_first_digit=yes

; wether to append overlapdialed Digits to Extension or not 
;
; default value: yes
;
append_digits2exten=yes

;;; CRYPTION STUFF

; Wether to look for dynamic crypting attempt
;
; default value: no
;
dynamic_crypt=no

; crypt_prefix, what is used for crypting Protocol
;
; default value: [not set]
;
crypt_prefix=**

; Keys for cryption, you reference them in the dialplan
; later also in dynamic encr.
;
; default value: [not set]
;
;crypt_keys=test,muh

; users sections:
; 
; name your sections as you which but not "general" ! 
; the secions are Groups, you can dial out in extensions.conf
; with Dial(mISDN/g:extern/101) where extern is a section name, 
; chan_misdn tries every port in this section to find a 
; new free channel
; 

; The default section is not a group section, it just contains config elements
; which are inherited by group sections.
;

[default]

; define your default context here
;
; default value: default
;
context=default

; language
;
; default value: en
;
language=en

;
; sets the musiconhold class
;
musicclass=default

;
; Either if we should produce DTMF Tones ourselve
; 
senddtmf=no

; Prefixes for national and international, those are put before the 
; oad if an according dialplan is set by the other end. 
;
; default values: nationalprefix      : 0
;                 internationalprefix : 00
;
nationalprefix=0
internationalprefix=00

; set rx/tx gains between -8 and 8 to change the RX/TX Gain
;
; default values: rxgain: 0
;                 txgain: 0
;
rxgain=0.8
txgain=0.8

; some telcos espacially in NL seem to need this set to yes, also in 
; switzerland this seems to be important
;
; default value: no
;
te_choose_channel=no



;
; This option defines, if chan_misdn should check the L1 on  a PMP 
; before makeing a group call on it. The L1 may go down for PMP Ports
; so we might need this.
; But be aware! a broken or plugged off cable might be used for a group call
; as well, since chan_misdn has no chance to distinguish if the L1 is down
; because of a lost Link or because the Provider shut it down...
;
; default: yes
;
pmp_l1_check=yes

;
; Send Setup_Acknowledge on incoming calls anyway (instead of PROCEEDING), 
; this requests additional Infos, so we can waitfordigits 
; without much issues. This works only for PTP Ports
; 
; default value: no
;
need_more_infos=no

; set the method to use for channel selection:
;   standard    - always choose the first free channel with the lowest number
;   round_robin - use the round robin algorithm to select a channel. use this
;                 if you want to balance your load.
;
; default value: standard
;
method=standard

;
; dialplan means Type Of Number in ISDN Terms (for outgoing calls)
;
; dialplan options: 
;
; 0 - unknown
; 1 - International
; 2 - National
; 4 - Subscriber
;
; This setting is used for outgoing calls
;
; default value: 0
;
dialplan=0
localdialplan=0



;
; turn this to no if you don't mind correct handling of Progress Indicators  
;
early_bconnect=yes


;
; turn this on if you like to send Tone Indications to a Incoming
; isdn channel on a TE Port. Rarely used, only if the Telco allows
; you to send indications by yourself, normally the Telco sends the 
; indications to the remote party.
; 
; default: no
;
incoming_early_audio=no

; uncomment the following to get into s extension at extension conf
; there you can use DigitTimeout if you can't or don't want to use
; isdn overlap dial. 
; note: This will jump into the s exten for every exten!
;
; default value: no
;
;always_immediate=no

; uncomment the following if you want callers which called exactly the 
; base number (so no extension is set) jump to the s extension.
; if the user dials something more it jumps to the correct extension 
; instead
;
; default value: no
;
immediate=yes

; uncomment the following to have hold and retrieve support
;
; default value: no
;
;hold_allowed=yes

; Pickup and Callgroup
;
; deafult values: not set = 0
;
;callgroup=1
;pickupgroup=1


;
; these are the exact isdn screening and presentation indicators
; if -1 is given for both values the presentation indicators are used
; from asterisks SetCallerPres application.
; s=0, p=0 -> callerid presented not screened
; s=1, p=1 -> callerid presented but screened (the remote end does not see it!)
; 
; defaule values s=-1, p=-1
presentation=-1
screen=-1

; this enables echocancellation, with the given number of taps
; be aware, move this setting only to outgoing portgroups!
; A value of zero turns echocancellation off.
;
; possible values are: 0,32,64,128,256,yes(=128),no(=0)
;
; default value: no
;
;echocancel=no
echocancel=256

; this disables echocancellation when the call is bridged between 
; mISDN channels
;
; default value: no
;
echocancelwhenbridged=no

; Set this to no to disable echotraining. You can enter a number > 10
; the value is a multiple of 0.125 ms. 
;
; default value: no 
; yes = 2000
; no = 0
;
;echotraining=no
echotraining=2000

;
; chan_misdns jitterbuffer, default 4000
; 
jitterbuffer=4000

;
; change this threshold to enable dejitter functionality
;
jitterbuffer_upper_threshold=0


;[intern]
; define your ports, e.g. 1,2 (depends on mISDN-driver loading order) 
;ports=1,2
; context where to go to when incoming Call on one of the above ports
;context=Intern

;[internPP]
;
; adding the postfix 'ptp' to a port number is obsolete now, chan_misdn
; parses /etc/misdn-init.conf and sets the ptp mode to the corresponding
; configs. For backwards compatibility you can still set ptp here.
;
;ports=3
	
;[first_extern]
; again port defs
;ports=4
; again a context for incomming calls
;context=Extern1
; msns for te ports, listen on those numbers on the above ports, and 
; indicate the incoming calls to asterisk
; here you can give a comma seperated list or simply an '*' for 
; any msn. 
;msns=*

; here an example with given msns
;[second_extern]
;ports=5
;context=Extern2
;callerid=15
;msns=102,144,101,104

[extern]
ports=1
context=default
msns=*
-------------- next part --------------
    -- Executing Dial("Zap/2-1", "mISDN/1/10030224326465/n") in new stack
P[ 0]  --> * NEW CHANNEL dad:10030224326465 oad:(null)
P[ 1] read_config: Getting Config
P[ 1] config_jb: Called
P[ 1]  --> * CallGrp: PickupGrp:
P[ 1]  --> TON: Unknown
P[ 1]  --> TON: Unknown
P[ 1] * CALL: 1/10030224326465/n
P[ 1]  --> * dad:10030224326465 tech:mISDN/1-u116 ctx:default
P[ 1]  --> * adding2newbc ext 10030224326465
P[ 1]  --> * adding2newbc callerid 16
P[ 1] update_config: Getting Config
P[ 1]  --> pres: -1 screen: -1
P[ 1]  --> pres: 0
P[ 1]  --> PRES: Allowed (0x0)
P[ 1]  --> SCREEN: Unscreened (0x0)
P[ 1] SETOPT: No DSP
P[ 1] I SEND:SETUP oad:16 dad:10030224326465 
P[ 1]  --> mode:TE cause:16 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:0 caps:Speech pi:0 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:0 addr:50010101 l3id:30074
P[ 1]  --> b_stid:0 layer_id:50010180
P[ 1] --> new_l3id 30075
P[ 1]  --> * SEND: State Dialing pid:276
    -- Called 1/10030224326465/n
P[ 1] set_channel: bc->channel:1 channel:1
P[ 1]  --> TRANSPARENT Mode (no DSP, no HDLC)
P[ 1] I IND :SETUP_ACKNOWLEDGE oad:16 dad:10030224326465
P[ 1]  --> mode:TE cause:16 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:1 caps:Speech pi:0 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:276 addr:50010101 l3id:30075
P[ 1]  --> b_stid:10010100 layer_id:50010180
P[ 1] BCHAN: MGR_SETSTACK|IND 
P[ 1] set_channel: bc->channel:0 channel:2
P[ 1] I IND :SETUP oad:22432646516 dad:
P[ 1]  --> mode:TE cause:16 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:2 dnumplan:  rnumplan: 
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:2 caps:Speech pi:0 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:277 addr:50020102 l3id:200ad
P[ 1]  --> b_stid:0 layer_id:50020180
P[ 1]  --> Bearer: Speech
P[ 1]  --> Codec: Alaw
P[ 0]  --> * NEW CHANNEL dad: oad:22432646516
P[ 1] read_config: Getting Config
P[ 1] config_jb: Called
P[ 1]  --> * CallGrp: PickupGrp:
P[ 1] CONTEXT:default
P[ 1] I SEND:SETUP_ACKNOWLEDGE oad:022432646516 dad: 
P[ 1]  --> mode:TE cause:16 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:2 dnumplan:  rnumplan: 
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:2 caps:Speech pi:0 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:277 addr:50020102 l3id:200ad
P[ 1]  --> b_stid:0 layer_id:50020180
P[ 1]  --> TRANSPARENT Mode
P[ 1] Tone Indicate:
P[ 1]  --> Dial
P[ 1] misdn_write: * prods us
P[ 1] BCHAN: MGR_SETSTACK|IND 
P[ 1] set_channel: bc->channel:1 channel:-1
P[ 1] I IND :PROCEEDING oad:16 dad:10030224326465
P[ 1]  --> mode:TE cause:16 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:1 caps:Speech pi:0 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:276 addr:50010101 l3id:30075
P[ 1]  --> b_stid:10010100 layer_id:50010180
    -- mISDN/1-u116 is proceeding passing it to Zap/2-1
P[ 1] I IND :INFORMATION oad:022432646516 dad:
P[ 1]  --> mode:TE cause:16 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:2 dnumplan:  rnumplan: 
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:2 caps:Speech pi:0 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:277 addr:50020102 l3id:200ad
P[ 1]  --> b_stid:10020100 layer_id:50020180
P[ 1] Tone Indicate:
P[ 1]  --> None
P[ 1] I IND :TIMEOUT oad:022432646516 dad:
P[ 1]  --> mode:TE cause:16 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:2 dnumplan:  rnumplan: 
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:2 caps:Speech pi:0 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:277 addr:50020102 l3id:200ad
P[ 1]  --> b_stid:10020100 layer_id:50020180
P[ 1] I SEND:RELEASE_COMPLETE oad:022432646516 dad: 
P[ 1]  --> mode:TE cause:16 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:2 dnumplan:  rnumplan: 
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:2 caps:Speech pi:0 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:277 addr:50020102 l3id:200ad
P[ 1]  --> b_stid:10020100 layer_id:50020180
P[ 1] CC_RELEASE_COMPLETE|CONFIRM [TE] 
P[ 1] I IND :RELEASE_COMPLETE oad:022432646516 dad:
P[ 1]  --> mode:TE cause:16 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:2 dnumplan:  rnumplan: 
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:2 caps:Speech pi:0 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:277 addr:50020102 l3id:200ad
P[ 1]  --> b_stid:10020100 layer_id:50020180
P[ 1] Trying to Release bc with l3id: 200ad
P[ 1] * RELEASING CHANNEL pid:277 ctx:default dad: oad:022432646516 state: WAITING4DIGS
P[ 1]  --> * State Down
P[ 1]  --> Setting AST State to down
P[ 1]  --> * State Wait4dig | ExtCantMatch
P[ 1] I IND :CLEAN_UP oad: dad:
P[ 1]  --> mode:TE cause:16 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:0 caps:Speech pi:0 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:0 addr:50020102 l3id:200ad
P[ 1]  --> b_stid:0 layer_id:50020180
P[ 1] BCHAN: MGR_DELLAYER|CNF 
P[ 1] I IND :DISCONNECT oad:16 dad:10030224326465
P[ 1]  --> mode:TE cause:28 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:1 caps:Speech pi:8 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:276 addr:50010101 l3id:30075
P[ 1]  --> b_stid:10010100 layer_id:50010180
P[ 1]  --> Inband Info Avail, not sending RELEASE
P[ 1] * IND : HANGUP    pid:276 ctx:default dad:10030224326465 oad:26465 State:(null)
P[ 1]  --> l3id:30075
P[ 1]  --> cause:28
P[ 1]  --> out_cause:16
P[ 1]  --> * State Disconnected
P[ 1] I SEND:RELEASE oad:16 dad:10030224326465 
P[ 1]  --> mode:TE cause:28 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:1 caps:Speech pi:8 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:276 addr:50010101 l3id:30075
P[ 1]  --> b_stid:10010100 layer_id:50010180
P[ 1] Channel: mISDN/1-u116 hanguped
  == Spawn extension (macro-lcroute, s, 10010) exited non-zero on 'Zap/2-1' in macro 'lcroute'
  == Spawn extension (internal, 26465, 1) exited non-zero on 'Zap/2-1'
Apr 28 09:53:28 ERROR[2936]: cdr_custom.c:127 custom_log: Unable to re-open master file /var/log/asterisk/cdr-custom/Master.csv : No such file or directory
    -- Hungup 'Zap/2-1'
P[ 1] I IND :RELEASE_COMPLETE oad:16 dad:10030224326465
P[ 1]  --> mode:TE cause:-1 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:1 caps:Speech pi:8 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:276 addr:50010101 l3id:30075
P[ 1]  --> b_stid:10010100 layer_id:50010180
P[ 1] Trying to Release bc with l3id: 30075
P[ 1] I IND :CLEAN_UP oad: dad:
P[ 1]  --> mode:TE cause:16 ocause:16 rad:
P[ 1]  --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1]  --> info_dad: onumplan:0 dnumplan:0 rnumplan:0
P[ 1]  --> screen:0 --> pres:0
P[ 1]  --> channel:0 caps:Speech pi:0 keypad:
P[ 1]  --> urate:0 rate:16 mode:0 user1:0
P[ 1]  --> pid:0 addr:50010101 l3id:30075
P[ 1]  --> b_stid:0 layer_id:50010180
P[ 1] BCHAN: MGR_DELLAYER|CNF 



More information about the asterisk-users mailing list