Hi Danny,

- how can i checke the number that is being dialed by the caller to
reachh the * box (so one of the 4 msn's).  I have seen dialplans
making use of the CALLERIDNUM; but what do i need to query for the
called num ?

Here is a working extensions.conf section separating calls based on the MSN dialed by the external caller:


[isdn-in]
exten => s,1,NoOp,${DNID}
exten => s,2,GoToIf($["${DNID}" = "5551212"]?contexta,s,1:3)
exten => s,3,GoToIf($["${DNID}" = "5551213"]?contextb,s,1:4)
exten => s,4,GoToIf($["${DNID}" = "5551214"]?contextc,s,1:5)
exten => s,5,GoToIf($["${DNID}" = "5551215"]?contextd,s,1:6)
exten => s,6,Wait(60)


which first (1) logs the msn (just for debugging, you can of course get rid of that)


(2 - 5) send call to contexta,s for MSN 5551212; contextb,s for MSN 5551213 etc.

and finally (6) just a 60 secs wait at the end (this is so that if I miss some extensions, other true ISDN phones may ring and their answering machine can pick up the call while asterisk justs waits silently)

(Can't help you with the other questions)

Cheers,
Phil

_______________________________________________
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

Reply via email to