Asterisk
2004-Dec-09 00:57 UTC
[Asterisk-Users] very OT - basic newbie networking question
Sorry to ask such a basic question: I have a * box with 2 nics in the following setup: Internet | 192.168.5.253 (firewall) | 192.168.5.xxx network (gw 192.168.5.253) | 192.168.5.10 (* nic 1) 192.168.6.10 (* nic 2) | 192.168.6.xxx network The netmask for both networks is 255.255.255.0 The 192.168.6.xxx networks has a 48 port switch solely for the use of cicso 7940 phones, the 192.168.5.xxx is for the pc's (winxp) / servers (2003) etc. I want to be able to access the phones (telnet/web etc) from the .5.xxx network, and I want the phones to be able to access the .5.xxx network. I have tried various combinations, to no success - hence the plea for help. There is *too* much google for 2 nic networking ! So, finally to the question: What do I need to do to achieve my goal ? would some kind soul supply m,e with the routing table and / or network settings that I need to apply ? Many thanks. Julian
Shoval Tomer
2004-Dec-09 05:56 UTC
[Asterisk-Users] very OT - basic newbie networking question
You need to have asterisk route these calls. You need to point the phones to it as their default gateway, and the pc's need to point to it as the gateway for the .5 network. Explaining how it's done is very off list. Please contact me off list if you want any pointers.> -----Original Message----- > From: Asterisk [mailto:asterisk@dotr.com] > Sent: Thursday, December 09, 2004 9:57 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [Asterisk-Users] very OT - basic newbie networking question > > Sorry to ask such a basic question: > > I have a * box with 2 nics in the following setup: > > Internet > | > 192.168.5.253 (firewall) > | > 192.168.5.xxx network (gw 192.168.5.253) > | > 192.168.5.10 (* nic 1) > 192.168.6.10 (* nic 2) > | > 192.168.6.xxx network > > The netmask for both networks is 255.255.255.0 > > The 192.168.6.xxx networks has a 48 port switch solely for the use of > cicso 7940 phones, the 192.168.5.xxx is for the pc's (winxp) / servers > (2003) etc. > > I want to be able to access the phones (telnet/web etc) from the.5.xxx> network, and I want the phones to be able to access the .5.xxxnetwork.> > I have tried various combinations, to no success - hence the plea for > help. There is *too* much google for 2 nic networking ! > > So, finally to the question: > > What do I need to do to achieve my goal ? would some kind soul supply > m,e with the routing table and / or network settings that I need toapply> ? > > Many thanks. > > Julian > > > _______________________________________________ > 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 message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > MailScanner thanks transtec Computers for their support.
Howard Lowndes
2004-Dec-09 12:37 UTC
[Asterisk-Users] very OT - basic newbie networking question
You need to ensure that the * box is set up to forward packets - set /proc/sys/net/ipv4/ip_forward (I think that is it, without checking) to the value 1, something like: echo 1 >/proc/sys/net/ipv4/ip_forward On Thu, 2004-12-09 at 02:57, Asterisk wrote:> Sorry to ask such a basic question: > > I have a * box with 2 nics in the following setup: > > Internet > | > 192.168.5.253 (firewall) > | > 192.168.5.xxx network (gw 192.168.5.253) > | > 192.168.5.10 (* nic 1) > 192.168.6.10 (* nic 2) > | > 192.168.6.xxx network > > The netmask for both networks is 255.255.255.0 > > The 192.168.6.xxx networks has a 48 port switch solely for the use of > cicso 7940 phones, the 192.168.5.xxx is for the pc's (winxp) / servers > (2003) etc. > > I want to be able to access the phones (telnet/web etc) from the .5.xxx > network, and I want the phones to be able to access the .5.xxx network. > > I have tried various combinations, to no success - hence the plea for > help. There is *too* much google for 2 nic networking ! > > So, finally to the question: > > What do I need to do to achieve my goal ? would some kind soul supply > m,e with the routing table and / or network settings that I need to apply ? > > Many thanks. > > Julian > > > _______________________________________________ > 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-- Howard. LANNet Computing Associates; Your Linux people <http://www.lannetlinux.com> ------------------------------------------ "When you just want a system that works, you choose Linux; when you want a system that just works, you choose Microsoft." ------------------------------------------ "Flatter government, not fatter government; Get rid of the Australian states."
The only references I have to the context in voicemail.conf is pretty much blank. Most of this file is untouched so far since I am trying to use the MySQL. I have the following in voicemail.conf but the mailboxes are commented out so I can test the MySQL. Am I supposed to have a reference to a context using the MySQL somehow in this file? If so, how? [from-sip] ;0060 => 1111,Test Mailbox,email@address.net Bill ----- Original Message ----- From: Matthew Boehm To: Asterisk Users Mailing List - Non-Commercial Discussion Sent: Friday, December 10, 2004 1:45 PM Subject: Re: [Asterisk-Users] MySQL> Any ideas where the "default" context may be coming from in the MySQL > statement mentioned below? The only context I have specified in sip.confand> extensions.conf is called "from-sip".Yea, what is the context stored in your voicemail.conf file? Matthew _______________________________________________ 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
> Works great here, just tried it out. Is there any documentation > anywhere on this while the wiki is being updated ?Absolutely zip. Nadda. zilch. Its what you get with just-cut-my-finger-bleeding-edge-asterisk-technology. Well.. docs/README.extconfig -Matthew
Now I am totally lost. Do you want to use old vm-routines or do you want to use RealTime? If RealTime, then you need to be using most recent CVS. Verify this by searching app_voicemail for the phrase "ast_load_realtime". If you find it, good. If not. Update. Now, send me your extconfig,conf. Are you trying to use the MySQL RealTime driver inside asterisk-addons or are you using ODBC=>MySQL? -Matthew ----- Original Message ----- From: "Bill" <admin@vci.net> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Friday, December 10, 2004 1:59 PM Subject: Re: [Asterisk-Users] MySQL> The only references I have to the context in voicemail.conf is pretty > much blank. Most of this file is untouched so far since I am trying to use > the MySQL. I have the following in voicemail.conf but the mailboxes are > commented out so I can test the MySQL. Am I supposed to have a referenceto> a context using the MySQL somehow in this file? If so, how? > > [from-sip] > ;0060 => 1111,Test Mailbox,email@address.net > > Bill > > > > > ----- Original Message ----- > From: Matthew Boehm > To: Asterisk Users Mailing List - Non-Commercial Discussion > Sent: Friday, December 10, 2004 1:45 PM > Subject: Re: [Asterisk-Users] MySQL > > > > Any ideas where the "default" context may be coming from in theMySQL> > statement mentioned below? The only context I have specified in sip.conf > and > > extensions.conf is called "from-sip". > > Yea, what is the context stored in your voicemail.conf file? > > Matthew > > _______________________________________________ > 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 > > _______________________________________________ > 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
Thanks for the help so far. You mean this line in the app_voicemail.c file? var = ast_load_realtime("voicemail", "mailbox", mailbox, "context", retval->context, NULL); I assume this is the CVS version you are referring to? If so, this version also has the "mysql-vm-routines.h" in asterisk-addons. This is my extconfig.conf file. Most of it is defaulted. ; ; Static configuration files: ; ; file.conf => driver,database[,table] ; ; maps a particular configuration file to the given ; database driver, database and table (or uses the ; name of the file as the table if not specified) ; ;uncomment to load queues.conf via the odbc engine. ; ;queues.conf => odbc,asterisk,ast_config ; ; Realtime configuration engine ; ; maps a particular family of realtime ; configuration to a given database driver, ; database and table (or uses the name of ; the family if the table is not specified ; ;iaxfriends => odbc,asterisk ;sipfriends => odbc,asterisk voicemail => mysql,asterisk,users ;extensions => odbc,asterisk Bill ----- Original Message ----- From: Matthew Boehm To: Asterisk Users Mailing List - Non-Commercial Discussion Sent: Friday, December 10, 2004 4:10 PM Subject: Re: [Asterisk-Users] MySQL Now I am totally lost. Do you want to use old vm-routines or do you want to use RealTime? If RealTime, then you need to be using most recent CVS. Verify this by searching app_voicemail for the phrase "ast_load_realtime". If you find it, good. If not. Update. Now, send me your extconfig,conf. Are you trying to use the MySQL RealTime driver inside asterisk-addons or are you using ODBC=>MySQL? -Matthew ----- Original Message ----- From: "Bill" <admin@vci.net> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Friday, December 10, 2004 1:59 PM Subject: Re: [Asterisk-Users] MySQL> The only references I have to the context in voicemail.conf is pretty > much blank. Most of this file is untouched so far since I am trying to use > the MySQL. I have the following in voicemail.conf but the mailboxes are > commented out so I can test the MySQL. Am I supposed to have a referenceto> a context using the MySQL somehow in this file? If so, how? > > [from-sip] > ;0060 => 1111,Test Mailbox,email@address.net > > Bill > > > > > ----- Original Message ----- > From: Matthew Boehm > To: Asterisk Users Mailing List - Non-Commercial Discussion > Sent: Friday, December 10, 2004 1:45 PM > Subject: Re: [Asterisk-Users] MySQL > > > > Any ideas where the "default" context may be coming from in theMySQL> > statement mentioned below? The only context I have specified in sip.conf > and > > extensions.conf is called "from-sip". > > Yea, what is the context stored in your voicemail.conf file? > > Matthew > > _______________________________________________ > 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 > > _______________________________________________ > 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_______________________________________________ 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