Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] #include


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
tzafrir.cohen at xorco...
Guest





PostPosted: Tue Jun 03, 2008 3:06 pm    Post subject: [asterisk-users] #include Reply with quote

On Tue, Jun 03, 2008 at 03:37:58PM -0400, Ed Nunez wrote:
Quote:
In version 1.2 I am able to use the #include command to for example add
config file to a context, but this does not seem to be working in 1.4.21.1



What I am trying to accomplish is to have users from different contexts be
able to call each other by making reference to the users.conf file in each
context with the following entry, but I am not able to call from context a
to context b.





[default]



Include => voicemail

;include => aaaa

;include => bbbb

;include => cccc

#include => users.conf

You can do that for sure. But what exactlky is the content of
users.conf?

If you put a file called users.conf, half of the modules will try to
parse it and come up with funny messages. See the sample users.conf in
the configs directory.

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
enunez at netoneint.com
Guest





PostPosted: Tue Jun 03, 2008 4:25 pm    Post subject: [asterisk-users] #include Reply with quote

Is the users.conf file limited to only using 1 context for all entries? I
am trying to assign contexts from each users.conf extension. Also, any
comment on how to associate each users.conf file to the sdtexten macro? On
1.2 is was very easy, all I had to do was have the macro name as one of the
variables in the users.conf entry, like this; (extensions) being my dial
macro.

exten => 5099,1,Macro(extensions,Sip/5099,5099)
Here is my test extension.

[1657]
fullname = Test Line1
username = 1657
userbase = 1657
email = enunez at netoneint.com
secret = XXXX
;zapchan = 1
hasvoicemail = yes
vmsecret = 1657
hassip = yes
hasiax = no
hash323 = no
hasmanager = no
callwaiting = yes
callwaitingcallerid = yes
context = default
threewaycalling = yes
transfer = yes
canpark = yes
cancallforward = yes
callreturn = yes
callgroup = 1
pickupgroup = 1
type = friend
host = dynamic
mailbox = 1657
callerid = 1657
canreinvite = no
qualify = yes
disallow = all
allow = g729
allow = gsm
nat = yes




-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tzafrir Cohen
Sent: Tuesday, June 03, 2008 4:07 PM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] #include

On Tue, Jun 03, 2008 at 03:37:58PM -0400, Ed Nunez wrote:
Quote:
In version 1.2 I am able to use the #include command to for example add
config file to a context, but this does not seem to be working in 1.4.21.1



What I am trying to accomplish is to have users from different contexts be
able to call each other by making reference to the users.conf file in each
context with the following entry, but I am not able to call from context a
to context b.





[default]



Include => voicemail

;include => aaaa

;include => bbbb

;include => cccc

#include => users.conf

You can do that for sure. But what exactlky is the content of
users.conf?

If you put a file called users.conf, half of the modules will try to
parse it and come up with funny messages. See the sample users.conf in
the configs directory.

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services