[Asterisk-Users] CallerID Question
Steven Critchfield
critch at basesys.com
Mon Oct 4 23:34:18 MST 2004
On Tue, 2004-10-05 at 16:42 +1000, James Bean wrote:
> Hi,
>
> I have a weird situation where I have a noop command putting the
> callerid of the caller on my asterisk console so I know who is calling
> as a test, but it is putting the callerid of my extension in instead of
> the callerid of the incoming line.
>
> My /etc/asterisk/zapata.conf is
>
> [channels]
> context=default
> ;switchtype=national
> usecallerid=yes
> cidsignalling=v23
> cidstart=polarity
> hidecallerid=no
> callwaiting=no
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
> rxgain=0.0
> txgain=0.0
> group=1
> signalling=fxo_ks
> callgroup=1
> pickupgroup=1
> immediate=no
> context=internal
> busydetect=yes
> callerid="James Bean<690>" ;assuming extension 690
> mailbox=690 ;stutter tone for voicemail - you can
> use an optional context here
> transfer=yes
> channel=>1
> group=2
> signalling=fxs_ks
> context=pstn
your callerid is declaration from above is still valid here. Try
reordering your channel definitions so you can put the PSTN above the
local lines.
> channel=>4
>
> My /etc/asterisk/extensions.conf is
>
> [pstn]
>
> exten => s,1,NoOp(Comment Only: Call from ${CALLERIDNUM}) ; Just put a
> comment in the CLI for info.
it may be possible still to have the call answered here before the
actual PSTN callerid since you have defined it above and the call
doesn't wait for a callerid from the PSTN. This is just a guess though.
> exten => s,2,Dial(Zap/g1,45,t) ;Dial the group=1 zap card mod above
> exten => s,3,Hangup
> ;exten => s,3,VoiceMail(u100) ;Whatever box you want.
--
Steven Critchfield <critch at basesys.com>
More information about the asterisk-users
mailing list