The setvar command below works fine in iax.conf and in sip.conf but not here in zaptel.conf. I need it to retrieve info from the AstDB. Advice is apreciated, can't seem to find an answer. ; define channels group=1 context=longdistance_users signalling=fxo_ks ;FXO Sig for Phone callerid="John French" <103> mailbox="101" callwaiting=yes threewaycalling=yes transfer=yes channel => 1 setvar=USER=analogPhone
Tzafrir Cohen
2006-Dec-15 12:48 UTC
[asterisk-users] zapata.conf channel variable question
On Fri, Dec 15, 2006 at 12:10:40PM -0600, John French wrote:> The setvar commandIt is not a dialplan command. It is a configuration key.> below works fine in iax.conf and in sip.conf > but not here in zaptel.conf. I need it to retrieve info from the > AstDB. Advice is apreciated, can't seem to find an answer.Two problems: 1. setvar does not seem to be supported with zaptel channels. and:> > ; define channels > group=1 > context=longdistance_users > signalling=fxo_ks ;FXO Sig for Phone > callerid="John French" <103> > mailbox="101" > callwaiting=yes > threewaycalling=yes > transfer=yes > channel => 1 > setvar=USER=analogPhoneIf you wanted it to take effect you needed to put it before the 'channel' line. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir