Ok, I want to be able to set a different callerid for each Zapata channel. -[zapata.conf]- callerid=>"Reception" <0> channel=>3 callerid=>"Batman" <2000> channel=>4 callerid="Robin" <1001> channel=>5 callerid="The Joker" <1002> channel=>6 group=2 channel=3-6 ;TDM10B Whenever I dial an extension, the callerid only shows the last defined callerid (The Joker / 1002) Why is this happening?
Steven Critchfield
2003-May-29 11:20 UTC
[Asterisk-Users] CalledID by channel difficulties
On Thu, 2003-05-29 at 13:17, Derek Beaumont wrote:> Ok, I want to be able to set a different callerid for each Zapata > channel. > > -[zapata.conf]- > > callerid=>"Reception" <0> > channel=>3 > callerid=>"Batman" <2000> > channel=>4 > callerid="Robin" <1001> > channel=>5 > callerid="The Joker" <1002> > channel=>6 > > group=2 > channel=3-6 ;TDM10B > > > > Whenever I dial an extension, the callerid only shows the last defined > callerid (The Joker / 1002) > > Why is this happening?Move the group=2 above your other channel definitions, and remove the channel=3-6 line. The resaon your getting just the last caller ID is because you redefine the channels with only the last callerID. -- Steven Critchfield <critch@basesys.com>
The zapata.conf file is parsed from the top down, so Asterisk uses the value since the last channel keyword. so Asterisk really only sees: callerid="The Joker" <1002> group=2 channel=3-6 ;TDM10B in your zapata.conf file Jeremy McNamara Derek Beaumont wrote:>Ok, I want to be able to set a different callerid for each Zapata >channel. > >-[zapata.conf]- > >callerid=>"Reception" <0> >channel=>3 >callerid=>"Batman" <2000> >channel=>4 >callerid="Robin" <1001> >channel=>5 >callerid="The Joker" <1002> >channel=>6 > >group=2 >channel=3-6 ;TDM10B > > > >Whenever I dial an extension, the callerid only shows the last defined >callerid (The Joker / 1002) > >Why is this happening? >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users > >