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=pstnyour 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@basesys.com>
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 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. 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. [internal] exten => i,1,Playback(invalid) exten => i,2,Hangup exten => t,1,Hangup exten => 099,1,Echo ;simple echo test when you dial 099 on your phone include => outgoing include => voip [outgoing] exten => _9X.,1,Dial(Zap/g2/${EXTEN:1}) exten => _9X.,2,Congestion() exten => _9X.,3,Hangup [voip] exten => _1XX,1,Dial(OH323/${EXTEN}@192.168.254.250/${CALLERIDNUM}) ; 1xx extension to Salisbury exten => _2XX,1,Dial(OH323/${EXTEN}@192.168.20.250/${CALLERIDNUM}) ; 2xx extension to Marcoola exten => 610,1,Dial(OH323/${EXTEN}@192.168.30.250/${CALLERIDNUM}) ; 610 to Jindalee exten => 620,1,Dial(OH323/${EXTEN}@192.168.40.250/${CALLERIDNUM}) ; 620 to Batteryhill -------------------------- On my console I see Call from 690 Instead of the callerid of the incoming call. Can anyone give me any ideas on this one? James
No that didn't help, but I do release what the problem is. In my> [pstn] > > exten => s,1,NoOp(Comment Only: Call from ${CALLERIDNUM}) ; Just put a> comment in the CLI for info.This shows the callerid on the first ring, being in australia I had to set in chan_zap.c, to wait till the second ring to pickup callerid.. Is there a way to make my NoOp comment no show callerid till after the second ring? James -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Steven Critchfield Sent: Tuesday, 5 October 2004 4:34 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] CallerID Question 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=pstnyour 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@basesys.com> _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
You need to add callerid=asreceived immediately before defining your 2nd channel. This will force the channel to look for a callerid. channel=>1 group=2 signalling=fxs_ks context=pstn callerid=asreceived channel=>4 Chris Johnson
>-----Original Message----- >From: asterisk-users-bounces@lists.digium.com[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Chris Johnson>Sent: Tuesday, 5 October 2004 9:28 PM >To: Asterisk Users Mailing List - Non-Commercial Discussion >Subject: RE: [Asterisk-Users] CallerID Question > >You need to add > >callerid=asreceived > >immediately before defining your 2nd channel. This will force thechannel to look for a callerid.> >channel=>1 >group=2 >signalling=fxs_ks >context=pstn > >callerid=asreceived > >channel=>4 > >Chris JohnsonI added your suggestion but it still only shows -- Executing NoOp("Zap/4-1", "Comment Only: Call from ") in new stack Extensions.conf exten => s,1,NoOp(Comment Only: Call from ${CALLERIDNUM}) ; Just put a comment in the CLI for info. exten => s,2,Dial(Zap/g2,45,t) ;Dial the group=1 zap card mod above exten => s,3,Hangup The NoOp $CALLERID line as the first thing displayed, how do I get it to print the callerid on the console window after the second ring? I basically need it to wait 3 rings probably before displaying the callerid information on the console? James