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

Jason Parker jparker at digium.com
Wed May 12 13:15:27 CDT 2010


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.



More information about the asterisk-users mailing list