[Asterisk-Users] Incoming context based on ISDN MSN

Jean-Denis Girard jd-girard at esoft.pf
Tue Feb 24 16:04:40 MST 2004


Robert Sprockeels a écrit :
> Hello,
> 
> I looked for this in the archives and docs, but could not find anything,
> so here goes...
> 
> I have * running with an Eicon.Diehl Diva (passive) ISDN BRI modem and
> SIP and IAX2 phones. For the modem I used chan_modem. It is not really
> clear to me if chan_capi will work with my hardware. Tried it, but
> without success.
> 
> My question: is there a way of detecting and using the MSN number on
> which the call was received to be able to route it into a certain
> context? I mean for example MSN 2225511 => professional context, 2225512
> => private context, and why not, 2225513 => fax/data context.
> 
> Thanks!
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 

This is the dialplan I use on my single ISDN line with numbers 541295, 
541296 541297, 541298, 541299. Incoming ISDN is sent to context rnis in 
modem.conf. Normal calls are received on 541295 541296. I use 541299 to 
check voicemail from outside, 51297 for echo test...

Hope that helps,

[rnis]
exten => s,1,SetMusicOnHold(default)

; -------------------------------- Appel de la maison
exten => s/483527,2,Wait(0)
exten => s/483527,3,Dial(${SIP1},20,m)

; -------------------------------- Défaut
exten => s,2,Playback(esoft/bienvenue)
exten => s,3,Dial(${JACK0}&${PC1}&${PC2}&${SIP1}&${SIP2},20,mt)
exten => s,4,Playback(fr/vm-intro)
exten => s,5,Voicemail2(s1000)		; Nobody here...
exten => s,6,Playback(esoft/merci)
exten => s,7,Hangup
exten => s,104,Playback(fr/vm-intro)
exten => s,105,Voicemail2(s1000)	; Busy
exten => s,106,Goto,8

; -------------------------------- Appel au 541297 => Test echo
exten => 1297,1,Goto(echotest,s,1)
exten => 1297,2,Hangup

; -------------------------------- Appel au 541298
exten => 1298,1,Wait,1
exten => 1298,2,Answer
exten => 1298,3,Agi(auth.agi)
exten => 1298,4,Hangup

; -------------------------------- Appel au 541299 => Ecoute Voicemail
;exten => 1299,1,VoicemailMain(1000)
exten => 1299,1,VoicemailMain2(1000)
exten => 1299,2,Hangup


-- 
Jean-Denis Girard

====================================================
Essential Software - Ingénierie Informatique
Solutions Linux & Open Source en Polynésie française
----------------------------------------------------
http://www.esoft.pf/
Tél: (689) 54 12 95
====================================================





More information about the asterisk-users mailing list