Actually its Sail PBX to an AsteriskNow PBX set up issue but I clicked on SailToSail as part of the NewTrunk setup. My problem is one of understanding the route an incoming call takes and what the following line found in extensions conf added by the gui does as it does not appear to be acted on
exten => astnowsme,1,agi(selintra,Inbound,${EXTEN})
With iax and sip debug enabled both sides and commenting out various bits, I can see that a call comes in - goes to the correct extension via the default context and as far as I can see does not use the above statement. Its more a thing of curiosity, wondering how its used, as the incoming call goes to the default context rather than the mainmenu context
My set up is as follows:-
sme server - extension numbers = 5XXX
astnow server - extension numbers = 7XXX
extensions.conf (cut down version) on sme server
[default]
include => extensions
exten => _7XXX,1,agi(selintra,OutRoute,sme2astnow)
[extensions]
exten => 5004,hint,SIP/5004
exten => 5004,1,agi(selintra,InCall,)
exten => 5004,1,Goto(extensions,5004,1)
[mainmenu]
include => extensions
exten => astnowsme,1,agi(selintra,Inbound,${EXTEN})
and Iax.conf on sme server
[smeastnow]
type=friend
host=10.4.38.35
qualify=3000
canreinvite=no
username=smeastnow
fromuser=smeastnow
secret=asterisk
trunk=yes
;disallow=all
;allow=alaw
;allow=ulaw
allow=all
[astnowsme]
type=user
secret=asterisk
context=default
Thanks
Paul