keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about B100/200/400/800 ISDN BRI Cards

how to setup 2 diferent conext for one ISDN port?

12 years 7 months ago #7272 by leon.sinko
HI,
i have B200P and one isdn port is used for output.
output port:


; Span 3: B4/0/2 "B4XXP (PCI) Card 0 Span 2" RED
group=0,13
context=from-internal
overlapdial=yes
switchtype = euroisdn
signalling = bri_net_ptmp
channel => 12-13
context = default
group = 63


Could i use two context? - context=from-leon for channel 12 and context=from-ervin for channel 13?
Please help me with syntax.


I use costum context plugin in asterisk, but it works only if i change context in dahdi-channels.conf.
But i don't know how to change context for channel a and channal b for same isdn port.

Greatings Leon.

i] Last edited by leon.sinko at 2011-8-23 04:34 [/i
12 years 7 months ago #7275 by Joe.Yung
Hi,

I am not sure if I have caught your mind, but you will be able to specify a context for the different channels.

For example, you have two channels in one span, and route the calls to each channel by different contexts from the sipphones.

sip.conf:

[8888]
type = friend
....
context = from-openvox

[3333]
type = friend
....
context = from-opensource

extensions.conf
[from-internal]
exten => _X.,1,Dial(dahdi/10/${EXTEN})
exten => _X.,n,Hangup

[from-openvox]
exten => _X.,1,Dial(dahdi/11/${EXTEN})
exten => _X.,n,Hangup

dahdi-channels.conf
; Span 4: B4/0/4 "B4XXP (PCI) Card 0 Span 4" AMI/CCS RED
group=0,14
context=from-pstn
switchtype = euroisdn
signalling = bri_net_ptmp
channel => 10-11
context = default
group = 63

Hopefully, this would help.

12 years 7 months ago #7277 by leon.sinko
I'm using custom context for freepbx

i like to call from msn 31 with context: from-ervin through trunk 1 and
from msn 32 with context: from-leon through trunk 2.
phones 31 and 32 are on the same isdn port.

i made:
; Span 3: B4/0/2 "B4XXP (PCI) Card 0 Span 2" RED
group=0,13
context=from-leon
overlapdial=yes
switchtype = euroisdn
signalling = bri_net_ptmp
channel => 12
context = default
group = 63

group=0,13
context=from-ervin
overlapdial=yes
switchtype = euroisdn
signalling = bri_net_ptmp
channel => 13
context = default
group = 63

now i have diferent context for channel 12 and 13 on same isdn port (span).
but this did not work ok with custom context.
on the same isdn port - channel is set arbitrarily, depending on occupancy
I do not get always an appropriate Context.

Custom context is working ok with sip phones but isdn - DAHDI with diferent context on same span not.
12 years 7 months ago #7278 by Joe.Yung
Hi,

Yes, it doesn't seem to carry out the custom definition of context for different channels in the same span with DAHDI.

Time to create page: 0.036 seconds
Powered by Kunena Forum