[Asterisk-Users] chan_capi: sending incoming calls to
different contexts
Stefan Reuter
asterisk at stefan.de
Sat Jul 17 01:39:02 MST 2004
hi,
> Is there a way to route incoming ISDN calls to different contexts based on
> the MSN dailled?
i am sending all calls to a context called capi-in where i use GotoIf based
on DNID to route them.
capi.conf:
[interfaces]
msn=123
incomingmsn=123,456,789
context=capi-in
extensions.conf:
[capi-in]
exten => s,1,SetCallerID(0${CALLERIDNUM})
exten => s,2,GotoIf($[${DNID} = 123]?capi-in-123,s,1:3)
exten => s,3,GotoIf($[${DNID} = 456]?capi-in-456,s,1:4)
exten => s,4,Goto(capi-in-789,s,1)
stefan.
More information about the asterisk-users
mailing list