Misdn to SIP and extensions.conf

I want configure dialplan that will properly route ISDN calls to SIP VoIP telephones based on called MSN.

So far, I have managed to use S extension to route all my MSNs to single VoIP telephone.

[Extern1]
exten => s,1,Dial(SIP/nikola)
[FromISDN]
immediate=yes
always_immediate=yes
ports=1
context=Extern1
msns=40999123

Setting up multiple FromISDN for each MSN (I wanted to redirect every MSN to different context at extensions.conf) doesn’t work either. I can only call one MSN.

Can you help on this one?

Thanks.

You can use a gotoif statment to see what thier account info is. Based on that you can send them to diffrent context’s. Or you can create an IVR.