[SOLVED!] ISDN phones problems

Hi,
I have installed asterisk 1.4.22 over centos linux 5 to make an ISDN gateway box.
After days I’m successfully configured all voip lines, isdn lines, voip and isdn phones (the server has a openvox b400p card).
The only problem that still remain is that if i call an isdn phone from a voip phone (internal call) or I receive an external call, the isdn phones starts to ring after about 15 seconds!

this is my extensions.conf file :

[general]
static=yes
writeprotect=no
clearglobalvars=no

[globals]
trunk_m1=mISDN/g:trunk_m1
noblex02=SIP/noblex02
FEATURES=
DIALOPTIONS=
RINGTIME=20
FOLLOWMEOPTIONS=

[DID_trunk_m1]
include=DID_trunk_m1_default

[DID_noblex02]
include=DID_noblex02_default

[DID_noblex02_default]

[CallingRule_Voipfissi]
exten=_0XXX.,1,Macro(trunkdial-failover-0.3,${noblex02}/0039${EXTEN:0},noblex02,trunk_m1)

[CallingRule_TelecomFissi]
exten=_9XXXXXXXXXX.,1,Macro(trunkdial-failover-0.3,${trunk_m1}/${EXTEN:1},trunk_m1,)

[ringroups-custom-1]
exten=s,1,NoOp(Ringall)
exten=s,n,Dial(mISDN/4/201&mISDN/3/200&SIP/100&SIP/101&SIP/102&SIP/103&SIP/104&SIP/105)
exten=s,n,Hangup

[DID_trunk_m1_default]
exten=_XXX.,1,Goto(ringroups-custom-1|s|1)

[DLPN_DialPlan1]
include=from-pstn
include=CallingRule_Voipfissi
include=CallingRule_TelecomFissi
include=from-inside
include=default
include=parkedcalls
include=conferences
include=ringgroups
include=voicemenus
include=queues
include=voicemailgroups
include=directory

[from-inside]
exten=200,1,Dial(mISDN/3/200)
exten=201,1,Dial(mISDN/4/201)

[from-pstn]
include=DLPN_DialPlan1
exten=_3XX.,1,Macro(trunkdial-failover-0.3,${noblex02}/0039${EXTEN:0},noblex02,)
exten=_9XX.,1,Macro(trunkdial-failover-0.3,${trunk_m1}/${EXTEN:1},trunk_m1,)
exten=_0XX.,1,Macro(trunkdial-failover-0.3,${noblex02}/${EXTEN:0},noblex02,trunk_m1)
exten=s,1,answer()
exten=s,n,WaitExten
exten=s,2,Congestion

[CallingRule_Cellulari]
exten=_3XX.,1,Macro(trunkdial-failover-0.3,${noblex02}/0039${EXTEN:0},noblex02,)

and this is my misdn.conf file :

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

[default]
context=from-pstn
language=it
musicclass=default
senddtmf=yes
far_alerting=no
allowed_bearers=all
nationalprefix=0
internationalprefix=00
rxgain=0
txgain=0
immediate=no
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
echotraining=no
jitterbuffer=4000
jitterbuffer_upper_threshold=0
hdlc=no
max_incoming=-1
max_outgoing=-1

[TE]
ports=1,2
context=from-pstn

[NT]
ports=3,4
msns=*

[trunk_m1]
trunkname=TelecomItalia
context=DID_trunk_m1
ports=1,2
hasmisdn=yes
msns=*

I hope that someone will help me!
thank you

So the problem was solved!

The main problem was that I didn’t set the ISDN number in mISDN dial command string!

To assign an internal number to ISDN phones i write :

exten => 200,1,Dial(mISDN/3/200)

but the right command is :

exten => 200,1,Dial(mISDN,1234567890)

where 1234567890 it’s my ISDN phone number!

Now all the phones rings together with no delays.

The very interesting thing is that I solved this great puzzle by myself, and the configuration for this hybrid system was very complicated since I don’t ever worked with asterisk!

Thank you

1 Like