Asterisk MJ outbound inbound channels.

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

Post Reply
oliverda
magicJack Apprentice
Posts: 19
Joined: Thu Oct 09, 2008 10:08 pm

Asterisk MJ outbound inbound channels.

Post by oliverda »

Is it OK to use 2 channels for inbound and outbound with asterisk or any PBX system? If you use 3way feature, Does it counts as using 2 outbound channels? :evil:
mberlant
Dan Should Pay Me
Posts: 829
Joined: Sun Feb 01, 2009 7:47 pm
Location: Japan

Post by mberlant »

You must use the Set Group and Group Count functions to limit the number of simultaneous channels used by each MJ.

Code: Select all

[call-mj-1234]
.
.
exten => _1NXXNXXXXXX,3,Set(GROUP()=MJ1234)
exten => _1NXXNXXXXXX,4,GotoIf($[ ${GROUP_COUNT()} < 3 ]?5:105)
.
.
Put these lines in both your outbound and inbound contexts for each MJ line you have programmed into Asterisk. This will limit your combined number of talk paths, both inbound and outbound, to the two talk paths possible using the MJ softphone. I use this code for all of my VoIP services that are constrained in this way, not just MJ.
Post Reply