Re: [Asterisk-Users] chan_capi: sending incoming calls to different contexts

2004-07-20 Thread Martin List-Petersen
On Mon, 2004-07-19 at 08:31, Holger Schurig wrote:
  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

DID=Direct Inward Dialing, yes, but there is not much difference between the
configuration of P2MP and P2P. The snippet shown is correct.
It depends though a bit on the telco, what number they are sending.

Most telco's send the full number, when talking P2MP, and only the last digits when
talking P2P.

Eircom only sends the last 4 digits, no matter what (don't ask me why) on P2MP. 
Haven't tried
on P2P yet, since they are nasty slow in processing their orders.

Anyhow the example up there fits for anything, you just need to figure out what your 
Telco is sending to you :o)

Kind regards,
Martin List-Petersen


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] chan_capi: sending incoming calls to different contexts

2004-07-19 Thread Holger Schurig
 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

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] chan_capi: sending incoming calls to different contexts

2004-07-17 Thread Walter Doerr
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   =*=   [EMAIL PROTECTED]   =*=   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)
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] chan_capi: sending incoming calls to different contexts

2004-07-17 Thread Stefan Reuter
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.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] chan_capi: sending incoming calls to different contexts

2004-07-17 Thread Andrew Yager
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
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users