Robert Sprockeels
2004-Feb-24 15:23 UTC
[Asterisk-Users] Incoming context based on ISDN MSN
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!
Jean-Denis Girard
2004-Feb-24 16:04 UTC
[Asterisk-Users] Incoming context based on ISDN MSN
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@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 ====================================================
Aram Ter-Martirosyan
2004-Feb-24 16:16 UTC
[Asterisk-Users] Need Origination Number form Bahamas
Need SIP or H.323 origination from Bahamas ASAP. Can someone provide an access number or Toll Free number origination from Bahamas? Thanks, Aram
Robert Sprockeels
2004-Feb-25 07:04 UTC
[Asterisk-Users] Incoming context based on ISDN MSN
Jean-Denis, Your suggestion works for me indeed. I had to test around a little, and I had to put the entire MSN number in the extension field. How come you only put part of it in there? Did you specify something about the common part in the modem.conf file? My idea with the DNID variable does not work, however... Thanks again, Robert On Wed, 2004-02-25 at 00:04, Jean-Denis Girard wrote:> [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
At 00.04 25/02/04, Jean-Denis Girard wrote:>Robert Sprockeels a ?crit :Hi, good solution, I think I will do something similar ... but can you also dial out from your home with the right MSN or only the "main" MSN is sent over outbound calls ?>; -------------------------------- Appel de la maison >exten => s/483527,2,Wait(0) >exten => s/483527,3,Dial(${SIP1},20,m)>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 >===================================================> > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-usersAlessio Focardi