[asterisk-users] include sip configuration from another file in sip.conf

2010-05-12 Thread Robert Wagner
Hi,

when i include a sip configuration from another file in my sip.conf
using #include /etc/asterisk/sip-sipgate.conf everything seems to be
working.
The peer is listed when i execute sip show peers and Status is OK.
But the peer is not listed using sip show registry.
I need to place the register = ... in the sip.conf to make it work.
Is this working as expected or is it a bug?

Regards
Robert Wagner




signature.asc
Description: OpenPGP digital signature
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] include sip configuration from another file in sip.conf

2010-05-12 Thread Jason Parker
On 05/12/2010 01:03 PM, Robert Wagner wrote:
 Hi,

 when i include a sip configuration from another file in my sip.conf
 using #include /etc/asterisk/sip-sipgate.conf everything seems to be
 working.
 The peer is listed when i execute sip show peers and Status is OK.
 But the peer is not listed using sip show registry.
 I need to place the register =  ... in the sip.conf to make it work.
 Is this working as expected or is it a bug?


Working as expected.

When you #include a file, the #include line is replaced with the contents of 
the 
file.  Meaning your register line is likely being placed inside the previous 
context.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] include sip configuration from another file in sip.conf

2010-05-12 Thread Steve Edwards
 On 05/12/2010 01:03 PM, Robert Wagner wrote:

 when i include a sip configuration from another file in my sip.conf 
 using #include /etc/asterisk/sip-sipgate.conf everything seems to be 
 working. The peer is listed when i execute sip show peers and Status 
 is OK. But the peer is not listed using sip show registry. I need 
 to place the register = ... in the sip.conf to make it work. Is this 
 working as expected or is it a bug?

On Wed, 12 May 2010, Jason Parker wrote:

 Working as expected.

 When you #include a file, the #include line is replaced with the 
 contents of the file.  Meaning your register line is likely being placed 
 inside the previous context.

An include file like the following will work as the OP expected:

[general](+)
 register= 
x:yyy...@sipgate.com/zz
[sipgate.com]
 caninvite   = no
 canreinvite = no
 context = from-sipgate.com
 fromdomain  = sipgate.com
 fromuser= x
 host= sipgate.com
 insecure= very
 nat = no
 secret  = yy
 type= peer
 username= x

-- 
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users