Problem with new context. Don't work using exten-vm. Work using dial

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.

you can’t just add a configuration to sip_custom.conf - freepbx does not know anything about it. The results will be that it may be able to call known entities in your freepbx dialplan but calling to these devices has no meaning.

Take a look at one of the recent articles that I wrote on Devices and Users under the hood, it explains more.

Philippe Lindheimer - FreePBX Project Lead
http//freepbx.org - IRC #freepbx

I’m not sure but I think that the problem is in dialparties,agi. I Think that dialparties.agi look in database to test if the extensioin is configured. The extensions created in sip_custom.conf are created by hand and not are in dabase.

Is this true? Can I do something to solve this? Maybe adding something in dialparties?

Thanks.