Well, it all depends on "where" in the sip.conf you insert your #include "my_file.conf"
Make sure these parameters come at the end of the [general] file...I've noticed that if that #include is inserted elsewhere, Asterisk will ignore them..... That's my $0.02 Claudius It is amazing what you can accomplish if you do not care who gets the credit --President Harry S. Truman Here's an example of a working sip.conf file... ; Note: If your SIP devices are behind a NAT and your Asterisk ; server isn't, try adding "nat=1" to each peer definition to ; solve translation problems. [general] bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) externip = sip.mysipserver.com localnet=192.168.2.0/255.255.255.0 nat=yes disallow=all allow=ulaw allow=alaw allow=gsm context = from-sip-external ; Send unknown SIP callers to this context callerid = 4165551111 progressinband=yes #include sip_nat.conf #include sip_custom.conf #include sip_additional.conf #include additional_a2billing_sip.conf [66.98.180.77] host=66.98.180.77 type=friend insecure=very context=didx-in ________________________________ De : Reza - Asterisk Enthusiast [mailto:[EMAIL PROTECTED] Envoyé : Wednesday, May 10, 2006 1:14 PM À : Dominic Ogbonna; TAUG Objet : Re: [on-asterisk] Including Files in sip.conf Hello Dominic: This is strange that the same does not work for sip.conf. Check out: http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf It clearly states that you could use the #include command in any .conf files, the same way you did in the extensions.conf file. Its really strange if it does not work. Make sure there is no period or semicolon, or ensure that the file you include has been declared in the ABSOLUTE path or the file you want to include sits in the same directly as your other .conf files, if you are simply doing a #include "my_file.conf" . I suspect your current declaration is simply not able to find or open the file you included. For that make sure your included file is readable by using the necessary attributes with the chmod command. Cheers! ----- Original Message ----- From: Dominic Ogbonna <mailto:[EMAIL PROTECTED]> To: [email protected] Sent: Wednesday, May 10, 2006 12:56 PM Subject: [on-asterisk] Including Files in sip.conf Hi everyone, Is there a way to include files from sip.conf? I know you would use #include "filename" to include from extensions.conf, but the same does not appear to work for sip.conf. For a virtual hosting install, it would be nice to seperate sip users into different .conf files. Dominic
