<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Thanks Marco,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>this is my CLI when received a call from number
beginning wwith 0</FONT><FONT face=Arial size=2>:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> -- Executing Macro("VISDN/visdn1.2/76.I", "hangupcall") in new
stack<BR> -- Executing ResetCDR("VISDN/visdn1.2/76.I", "w") in
new stack<BR> -- Executing NoCDR("VISDN/visdn1.2/76.I", "") in
new stack<BR> -- Executing Wait("VISDN/visdn1.2/76.I", "5") in
new stack<BR> -- Executing Hangup("VISDN/visdn1.2/76.I", "")
in new stack</DIV>
<DIV> </DIV></DIV>
<DIV><FONT face=Arial size=2>1) this is [from-internal] and [from-pstn] section
of my extensions.conf:</FONT></DIV>
<DIV> </DIV>
<DIV>[from-internal]<BR>; applications are now mostly all found in
from-internal-additional in _custom.conf<BR>include => parkedcalls<BR>include
=> from-internal-custom<BR>;allow phones to dial other extensions<BR>include
=> ext-fax<BR>include => from-trunk<BR>;allow phones to access generated
contexts<BR>;<BR>; MODIFIED (PL)<BR>;<BR>; Currently the include for
findmefollow is being auto-generated before ext-local which is the desired
behavior.<BR>; However, I haven't been able to do anything that I know of to
force this. We need to determine if it should<BR>; be hardcoded into here to
make sure it doesn't change with some configuration. For now I will leave it
out<BR>; until we can discuss this.<BR>;<BR>include =>
from-internal-additional<BR>exten => s,1,Macro(hangupcall)<BR>exten =>
h,1,Macro(hangupcall)</DIV>
<DIV> </DIV>
<DIV>[from-pstn]<BR>include =>
from-pstn-custom
; create this context in extensions_custom.conf to include
customizations<BR>include => ext-findmefollow ; MODIFICATOIN (PL)
for findmefollow if enabled, should be bofore ext-local<BR>include =>
ext-did-direct ; MODIFICATOIN (PL) put before ext-did to take
precedence<BR>include => ext-did<BR>exten =>
fax,1,Goto(ext-fax,in_fax,1)</DIV>
<DIV> </DIV>
<DIV>2) This is a [from-internal-additional] section in
extensions_additional.conf file:</DIV>
<DIV> </DIV>
<DIV>[from-internal-additional]<BR>include =>
from-internal-additional-custom<BR>include => ext-group<BR>include =>
app-dnd-off<BR>include => app-dnd-on<BR>include => ext-queues<BR>include
=> app-callwaiting-cwoff<BR>include => app-callwaiting-cwon<BR>include
=> ext-meetme<BR>include => app-cf-busy-off<BR>include =>
app-cf-busy-off-any<BR>include => app-cf-busy-on<BR>include =>
app-cf-off<BR>include => app-cf-off-any<BR>include => app-cf-on<BR>include
=> app-cf-unavailable-off<BR>include => app-cf-unavailable-on<BR>include
=> app-recordings<BR>include => app-calltrace<BR>include =>
app-directory<BR>include => app-echo-test<BR>include =>
app-speakextennum<BR>include => app-speakingclock<BR>include =>
ext-findmefollow<BR>include => app-gabcast<BR>include =>
app-dialvm<BR>include => app-vmmain<BR>include =>
app-userlogonoff<BR>include => app-zapbarge<BR>include =>
ext-test<BR>include => ext-local<BR>include => outbound-allroutes<BR>exten
=> h,1,Hangup</DIV>
<DIV> </DIV>
<DIV>; end of [from-internal-additional]</DIV>
<DIV> </DIV>
<DIV>3) This is all extensions_custom.conf file:</DIV>
<DIV> </DIV>
<DIV>#include extensions_trixbox.conf<BR>#include extensions_hud.conf</DIV>
<DIV> </DIV>
<DIV><BR>[from-restricted]<BR>;<BR>; These are all the applications that you
will require<BR>; <BR>include => app-cf-busy-off<BR>include =>
app-cf-busy-off-any<BR>include => app-cf-busy-on<BR>include =>
app-cf-off<BR>include => app-cf-off-any<BR>include => app-cf-on<BR>include
=> app-cf-unavailable-off<BR>include => app-cf-unavailable-on<BR>include
=> app-calltrace<BR>include => app-callwaiting-cwoff<BR>include =>
app-callwaiting-cwon<BR>include => app-dialvm<BR>include =>
app-directory<BR>include => app-dnd-off<BR>include =>
app-dnd-on<BR>include => app-echo-test<BR>include =>
app-recordings<BR>include => app-speakextennum<BR>include =>
app-speakingclock<BR>include => app-userlogonoff<BR>include =>
app-zapbarge<BR>include => app-vmmain<BR>include => ext-group<BR>include
=> ext-fax<BR>include => ext-meetme<BR>include =>
ext-findmefollow<BR>include => ext-paging<BR>include =>
ext-queues<BR>include => ext-test<BR>include => ext-local<BR>include =>
parkedcalls<BR>;<BR>; #### OutBound Routes ########<BR>; # Below are all
outbound routes #<BR>;
###########################<BR>;<BR>[outbound-allroutes]<BR>include =>
outbound-allroutes-custom<BR>;include => outrt-001-Locali<BR>;include =>
outrt-002-Nazionali<BR>;include => outrt-003-Internazionali<BR>;include =>
outrt-004-Cellulari<BR>;include => outrt-005-Numerazioni speciali<BR>exten
=> foo,1,Noop(bar)<BR>exten => h,1,Hangup <BR>exten =>
s,1,Macro(hangupcall) <BR>exten => h,1,Macro(hangupcall)</DIV>
<DIV> </DIV>
<DIV>; end of [outbound-allroutes]</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR>[from-internal-custom]</DIV>
<DIV> </DIV>
<DIV>include => from-internal-trixbox</DIV>
<DIV><BR>;1234,1,Playback(demo-congrats) ; extensions can dial
1234<BR>;1234,2,Hangup()<BR>;h,1,Hangup()<BR>;include =>
custom-recordme ; extensions can also dial 5678</DIV>
<DIV> </DIV>
<DIV>; custom-count2four,s,1 can be used as a custom target for<BR>; a Digital
Receptionist menu or a Call
Group<BR>;[custom-count2four] <BR>;s,1,SayDigits(1234)<BR>;s,2,Hangup</DIV>
<DIV> </DIV>
<DIV>; custom-recordme,5678,1 can be used as a custom target for<BR>; a Digital
Receptionist menu or a Call Group<BR>;[custom-recordme]<BR>;exten =>
5678,1,Wait(2)<BR>;exten =>
5678,2,Record(/tmp/asterisk-recording:gsm)<BR>;exten =>
5678,3,Wait(2)<BR>;exten =>
5678,4,Playback(/tmp/asterisk-recording)<BR>;exten =>
5678,5,Wait(2)<BR>;exten => 5678,6,Hangup </DIV>
<DIV> </DIV>
<DIV>
<DIV>4) This is [from-internal-trixbox]section in
extensions_trixbox.conf file:</DIV></DIV>
<DIV> </DIV>
<DIV>[from-internal-trixbox]<BR>include => custom-speed-dial</DIV>
<DIV> </DIV>
<DIV>exten => _**.,1,Pickup(${EXTEN:2}) ; GXP-2000 phone press BLF to pick up
ringing call</DIV>
<DIV> </DIV>
<DIV>exten => *61,1,Answer<BR>exten => *61,2,AGI(weather.agi)<BR>exten
=> *61,3,Hangup</DIV>
<DIV> </DIV>
<DIV>exten => *62,1,Answer <BR>exten => *62,2,AGI(wakeup.php) <BR>exten
=> *62,3,Hangup </DIV>
<DIV> </DIV>
<DIV>exten => 611,1,Answer<BR>exten => 611,2,Wait(1)<BR>exten =>
611,3,DigitTimeout(7)<BR>exten => 611,4,ResponseTimeout(10)<BR>exten =>
611,5,Flite("At the beep enter the three character airport code for the weather
report you wish to retrieve.")<BR>exten => 611,6,Read(APCODE,beep,3)<BR>exten
=> 611,7,Flite("Please hold a moment while we contact the National Weather
Service for your report.")<BR>exten =>
611,8,AGI(nv-weather.php|${APCODE})<BR>exten => 611,9,NoOp(Wave file:
${TMPWAVE})<BR>exten => 611,10,Playback(${TMPWAVE})<BR>exten =>
611,11,Hangup</DIV>
<DIV> </DIV>
<DIV>; CallingCard application<BR>;add an incoimf route for the DID to Custom
App: (un-comment next line)<BR>;custom-callingcard,s,1</DIV>
<DIV> </DIV>
<DIV>; un-comment the 6 lines below to work on incoming
DIDs<BR>;[custom-callingcard]<BR>;exten => s,1,Answer<BR>;exten =>
s,2,Wait,2<BR>;exten => s,3,DeadAGI,a2billing.php<BR>;exten =>
s,4,Wait,2<BR>;exten =>
s,5,Hangup<BR><BR><BR><BR></DIV></FONT></DIV></BODY></HTML>