Sorry to mention this later,
I am using Trixbox, as you know that has freePBX.
If i change this, it will effect the DID feature avaliable in from-pstn context.
is there any code that can be appended to the from-pstn contest.
I looked at from-pstn code in extensions.conf
-------
[from-pstn]
include => from-pstn-custom ; create this context in extensions_custom.conf to include customizations
include => ext-did-direct ; MODIFICATOIN (PL) put before ext-did to take precedence
include => ext-did
include => ext-findmefollow ; MODIFICATOIN (PL) for findmefollow if enabled, should be bofore ext-local
exten => fax,1,Goto(ext-fax,in_fax,
----------
if i put the following code in [from-pstn-custom] context will it be OK, Will i lose any other features that are currently handeled by trixbox from-pstn context.?????
[from-pstn-custom]
exten => _[23478].,1,Set(CALLERID(n
Have a look at the link
http://www.trixbox.org/mod
i tried adding the nationalprefix=0, but this didnt change any thing.
regards
Naren
Main Topics
Browse All Topics





by: grbladesPosted on 2006-12-13 at 04:14:28ID: 18129858
Here is how I do it :-
r)=90${CAL LERIDNUM}) idname/${C ALLERIDNUM })}) RID(name)= ${CIDNAME} ) EXTEN},1)
[did]
exten => _6XXX,1,Set(CALLERID(numbe
exten => _6XXX,n,Set(CIDNAME=${DB(c
exten => _6XXX,n,GotoIf($[ "${CIDNAME}" = "" ]?cont:setname)
exten => _6XXX,n(setname),Set(CALLE
exten => _6XXX,n(cont),Goto(voip,${
Incoming PRI calls go to the [did] context (from-pstn in your case) and the rules above match calls coming into extentions starting with a 6.
The first line appends a 90 to the start of the calling number. I put 90 infront as we use 9 to get an outside line and doing this enables people to easily redial the number using the history feature of the phone.
Lines 2-4 lookup the number in the built in asterisk database and assign a name if found. This enables us to apply a name to the incoming number for people that often call us.
Lines 5 jumps to the dialed extension in the [voip] context which is where we have all our extensions defined.