Discussion:
[asterisk-users] Dahdi dial plan
Sebastian Schwardt
2010-07-23 14:55:57 UTC
Permalink
Hi,



can anybody please show me a valid dial plan for a dahdi card with a bri
port? I can not get asterisk 1.6 to dial a number. I want to receive one
call on the first b channel and dial another number on the second b channel
of the same isdn port.



I tried something like Dial(DAHDI/g1/123456789) but that does not work. It
always says that the channel is busy.



Kind regards,



Sebastian Schwardt
Tzafrir Cohen
2010-07-23 15:14:04 UTC
Permalink
Post by Sebastian Schwardt
Hi,
can anybody please show me a valid dial plan for a dahdi card with a bri
port? I can not get asterisk 1.6 to dial a number. I want to receive one
call on the first b channel and dial another number on the second b channel
of the same isdn port.
I tried something like Dial(DAHDI/g1/123456789) but that does not work. It
always says that the channel is busy.
Let's assume you have the folloiwng in chan_dahdi.conf:

[channels]
signalling = bri_cpe_ptmp
switchtype = euroisdn
context = from-bri
group = 1
channel => 1-2


Now, in extensions.conf:

[from-bri]; Handle inclming calls from ISDN
; Example of special handling for a specific MSN:
exten => 1,1122334455,NoOp(Call to MSN ${EXTEN})
exten => n,1122334455,... Continue handling it. Answer?

; A catch-all extension for all of them:
exten => 1,_X.,NoOp(Call to MSN ${EXTEN})
exten => n,_X.,... Continue handling it. Answer?

See also the [demo] context in the sample extension.conf .



Now, suppose you have a SIP phone that is sent to context 'interlanl'
(or another context that contains it). Suppose you want to make
any number that begins with 1 and has exactly 10 digits go through the
ISDN:

[internal]
exten => _1XXXXXXXXX,Dial(DAHDI/G1/${EXTEN})


'G' means that it will first try the second BRI line and only then try
the first line. In practice I suppose it doesn't matter as if on is busy
in a call, it will use the other.
--
Tzafrir Cohen
icq#16849755 jabber:***@xorcom.com
+972-50-7952406 mailto:***@xorcom.com
http://www.xorcom.com iax:***@local.xorcom.com/tzafrir
Danny Nicholas
2010-07-23 15:16:26 UTC
Permalink
[mailto:asterisk-users-***@lists.digium.com] On Behalf Of Sebastian
Schwardt
Subject: [asterisk-users] Dahdi dial plan
can anybody please show me a valid dial plan for a dahdi card with a bri
port? I can not get asterisk 1.6 to dial a number. I want to receive one
call on the first b >channel and dial another number on the second b channel
of the same isdn port.
I tried something like Dial(DAHDI/g1/123456789) but that does not work. It
always says that the channel is busy.
Sebastian Schwardt
As I recall, g1 will pick out the first line in a group and that's the line
you are on; G1 goes in reverse, and therefore should get the first
available line in the group for dialout.

Loading...