Hi all:
The target is to create a context named vip. All the extensions in this context can call to every place, but can only receibe calls from the same context. I only can change _custom files because freepbx overwrite all except this file.
I have done this:
I create vip extensions in sip_custom.conf
[2222]
username=2222
type=friend
secret=2222
record_out=Adhoc
record_in=Adhoc
qualify=no
port=5060
nat=never
mailbox=2222@device
host=dynamic
dtmfmode=rfc2833
context=vip
canreinvite=no
callerid=device <2222>
[2223]
username=2223
type=friend
secret=2223
record_out=Adhoc
record_in=Adhoc
qualify=no
port=5060
nat=never
mailbox=2223@device
host=dynamic
dtmfmode=rfc2833
context=vip
canreinvite=no
callerid=device <2223>
Doing this, this extensions are out of ext-local context.
In extensions_custom.conf I added this:
[ext-vip]
exten => 2222,1,Macro(exten-vm,novm,2222)
exten => 2222,hint,SIP/2222
exten => 2223,1,Macro(exten-vm,novm,2223)
exten => 2223,hint,SIP/2223
[vip]
include => from-internal
include => ext-vip
I can call everyplace from 2222 and 2223 but I can’t call from 2222 to 2223 (2223 to 2222 can’t too). Allways is busy.
If I change: exten => 2222,1,Macro(exten-vm,novm,2222)
for: exten => 2222,1,Dial(SIP/${EXTEN})
It works. I supose that exten-vm macro do something that block the call.
I think that this is very dificult to solve. Maybe is a cuestion for developers. Someone can Help me?
Thanks
Thanks.