Walter Doerr
2004-Jul-17 01:27 UTC
[Asterisk-Users] chan_capi: sending incoming calls to different contexts
Hello, I am using chan_capi and would like * to behave differently depending on the MSN the caller dials. Is there a way to route incoming ISDN calls to different contexts based on the MSN dailled? I have tried something like msn=1234 incomingmsn=1234 context=msn1 msn=4567 incomingmsn=4567 context=msn2 in capi.conf but with no results. Thanks for any hints. -Walter -- Walter Doerr =*= wd@infodn.rmi.de =*= FAX: +49 2421 962001 "The poor folks who only have 100MBytes of RAM five years from now may not be able to buffer a 16MB packet, but that's their tough luck." (John Gilmore on Mon, 10 Oct 88 18:10:21 PDT)
Stefan Reuter
2004-Jul-17 01:39 UTC
[Asterisk-Users] chan_capi: sending incoming calls to different contexts
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.
Andrew Yager
2004-Jul-17 09:54 UTC
[Asterisk-Users] chan_capi: sending incoming calls to different contexts
On 17/07/2004, at 6:39 PM, Stefan Reuter wrote:> 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.Not sure if it works for you, but the simplest way is: [capi-in] exten => <DIDNUM1>,1,DoSomething exten => <DIDNUM2>,1,DoSomething exten => <DIDNUM3>,1,DoSomething where <DIDNUMX> is the direct indial number. Much nicer than goto statements with complicated splits. As it turns out the DoSomething I use is a Goto(menucontext,s,1) anyway. Andrew
Holger Schurig
2004-Jul-19 00:31 UTC
[Asterisk-Users] chan_capi: sending incoming calls to different contexts
> Not sure if it works for you, but the simplest way is: > > [capi-in] > exten => <DIDNUM1>,1,DoSomething > exten => <DIDNUM2>,1,DoSomething > exten => <DIDNUM3>,1,DoSomething > > where <DIDNUMX> is the direct indial number. Much nicer than goto > statements with complicated splits.AFAIK you have only a DIDNUM if you have DID, that is with ISDN P2P, but not with P2MP. Or am I wrong? Are the multiple MSNs handled like DIDs? DID=Durchwahlnummern