Re: [Asterisk-java-users] Association channel-extension/context
Brought to you by:
srt
From: Chris H. <ch...@as...> - 2007-03-21 15:56:13
|
Bruno Konik wrote: > Hello Chris, > > Do you mean that it would work for any kind of channel (SIP, zap, iax)? Is the 'Local' a special keyword? > > Thanks, > > Bruno > If you have a context like: [somecontext] exten => 1234,1,Dial(SIP/joebob) exten => 1234,n,Hangup() exten => 1235,1,Dial(Zap/g1/14045551212) exten => 1235,n,Hangup() exten => 5555,1,VoiceMailMain(s${CALLERIDNUM}@${VM_CONTEXT}) exten => 5555,n,Hangup() exten => 6666,1,Playback(tt-monkeys); exten => 6666,n,Hangup() And you originate using Local/1234@somecontext then it will call SIP/joebob. If you originate to Local/1235@somecontext then it will dial out the g1 trunk to the number 14045551212 etc.... Chris |