Good idea!  It's working great.  I also like your local vs LD logic, much 
simpler to do than NXXNXXXXXX or 1NXXNXXXXXX.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Forrest Beck
Sent: Tuesday, August 14, 2007 8:40 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] PRI Question

You can eliminate the set CallerID line.  This will just set the
variable back to itself.  Asterisk will pass the callerid from one
span to the next.

You can use a GotoIF to set the callerid to something else if it is
blank or marked as Private:

exten => s,1,GoToIf($["${CALLERID(num)}" = ""]?2:3)
exten => s,2,Set(CALLERID(num)=0000000000)


If the CallerID number is blank go to 2 else go to 3.

I wonder if asterisk or the norstar system is holdng on to that last
callerid number on the channel?

The only time you may want to set callerid is when your Norstar dials
out through Asterisk:

[norstar]
; This context is where all incoming calls from the norstar are placed
; Basically take the call from the norstar and bridge it over to the first
; available line on the bottom of the T1 going to TimeWarner.
exten => _1900XXXXXXX,1,Playback(cannot-complete-as-dialed)
exten => _1900XXXXXXX,2,Hangup()
exten => _1X.,1,GoToIf($["${CALLERID(num)}" = ""]?2:3)
exten => _1X.,2,Set(CALLERID(num)=5155551212)
exten => _1X.,3,NoOp(${CALLERID(num)})
exten => _1X.,4,Dial(${PRITRUNK}/${EXTEN},300,tD())
exten => _1X.,5,Hangup()
exten => _X.,1,GoToIf($["${CALLERID(num)}" = ""]?2:3)
exten => _X.,2,Set(CALLERID(num)=5155551212)
exten => _X.,3,NoOp(${CALLERID(num)})
exten => _X.,4,Dial(${PRITRUNK}/${EXTEN},300,)
exten => _X.,5,Hangup()
exten => i,1,Answer()
exten => i,n,Wait(1)
exten => i,n,Playback(cannot-complete-as-dialed)
exten => i,n,Playback(please-contact-tech-supt)
exten => i,n,Hangup()




On 8/9/07, Mike Lynchfield <[EMAIL PROTECTED]> wrote:
> hmm from what i have seen this is not supposed to be.. the info is still
> there but should not be used in case of privacy..
>
> zap show channels always show last info till a span refresh.. but the
> privacy should indeed replace those with Privacy.
>
> Maybe it could be a bug ,
>
>
> On 8/9/07, Jeremy Mann <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> > I have a 2 port T1 card doing PRI passthrough, Span 1 answers from Telco,
> Span 2 sends to my existing phone system(Nortel).
> >
> >
> >
> > My Span1 gets sent to the context from-pri, detailed here:
> >
> >
> >
> > [from-pri]
> >
> > exten => _49XX,1,Set(CALLERID(all)=${CALLERID(all)})
> >
> > exten => _49XX,2,Dial(Zap/g2/${EXTEN},,twk)
> >
> > exten => _49XX,3,Congestion()
> >
> > exten => _49XX,4,Set(CALLERID(all)="")
> >
> > exten => _49XX,5,Hangup()
> >
> > exten => _49XX,103,Congestion()
> >
> > exten => _49XX,104,Set(CALLERID(all)="")
> >
> > exten => _49XX,105,Hangup()
> >
> >
> >
> > exten => h,1,Set(CALLERID(all)="")
> >
> > exten => h,2,Hangup()
> >
> >
> >
> > I'm receiving caller ID fine, and setting it on the outgoing channel the
> same I received it, is my logic above wrong?  Will Asterisk natively pass
> through the caller ID, or is there a better way to set it?
> >
> >
> >
> > The reason I ask, is that calls that are not coming in with CLID(blocked
> or private) are showing up as the same number that was previously answered
> on that channel.
> >
> >
> >
> > Thanks.
> >
> >
> >
> > Using Asterisk 1.4 FYI.
> >
> >
> >
> >
> > ________________________________
>  This e-mail, facsimile, or letter and any files or attachments transmitted
> with it contains information that is confidential and privileged. This
> information is intended only for the use of the individual(s) and
> entity(ies) to whom it is addressed. If you are the intended recipient,
> further disclosures are prohibited without proper authorization. If you are
> not the intended recipient, any disclosure, copying, printing, or use of
> this information is strictly prohibited and possibly a violation of federal
> or state law and regulations. If you have received this information in
> error, please notify Texas Health Management Group immediately at
> 1-817-310-4999. Texas Health Management Group, its subsidiaries, and
> affiliates hereby claim all applicable privileges related to this
> information.
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> > _______________________________________________
> > --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
> >
>
>
>
> --
> Mike
> Sales Manager
> http://www.voicemeup.com
> Making it happen
> 1.877.807.VOIP (8647)
> 1.514.312.7030
> _______________________________________________
> --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
>


--
***
Forrest Beck
IAXTEL: 17002871718
[EMAIL PROTECTED]
http://www.shift8.biz

_______________________________________________
--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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


This e-mail, facsimile, or letter and any files or attachments transmitted with 
it contains information that is confidential and privileged. This information 
is intended only for the use of the individual(s) and entity(ies) to whom it is 
addressed. If you are the intended recipient, further disclosures are 
prohibited without proper authorization. If you are not the intended recipient, 
any disclosure, copying, printing, or use of this information is strictly 
prohibited and possibly a violation of federal or state law and regulations. If 
you have received this information in error, please notify Texas Health 
Management Group immediately at 1-817-310-4999. Texas Health Management Group, 
its subsidiaries, and affiliates hereby claim all applicable privileges related 
to this information.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


_______________________________________________
--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

Reply via email to