I am trying to setup one time caller id block on my system(activated when an incoming call matches *811XXXXXXXXXX), and I have had little to no luck. Could you take a look at my context/macro definition and help me figure out what I am missing? Here is my context for my dialplan: include=default plancomment=user-default exten=_1XXXXXXXXXX!,1,Macro(trunkdial,${<my_trunk>}/${EXTEN:0},${trunk_cid}) comment=_1XXXXXXXXXX!,1,<my_trunk>,standard exten=_*811XXXXXXXXXX!,1,Macro(private_trunkdial,${<my_trunk>}/${EXTEN:3},null) comment=_*811XXXXXXXXXX!,1,<my_trunk>,standard (I replaced the name of my termination wih <my_trunk>) And, below is the the private_trunkdial macro that is used above: exten=s,1,set(CALLERID(all)= null) exten=s,n,Dial(${ARG1}) exten=s,n,Goto(s-${DIALSTATUS},1) exten=s-NOANSWER,1,Hangup exten=s-BUSY,1,Hangup exten=_s-.,1,NoOp I know something is off, because according to terminating VoIP provider, nothing is actually removed from my call request, and all my information remains unaltered. Any guidance would be appreciated. John Koenig
John Koenig wrote:> exten=s,1,set(CALLERID(all)= null) > exten=s,n,Dial(${ARG1}) >Just a guess. exten => s,1,Set(CALLERID(all)= null <0>) exten => s,n,SetCallerPres(prohib) exten => s,n,Dial(${ARG1}) Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Doug Lytle wrote:> John Koenig wrote: >> exten=s,1,set(CALLERID(all)= null) >> exten=s,n,Dial(${ARG1}) >> > > Just a guess. > > exten => s,1,Set(CALLERID(all)= null <0>) > exten => s,n,SetCallerPres(prohib) > exten => s,n,Dial(${ARG1}) > > > Doug >I believe you need to use: exten => s,1,Set(CALLERID(all)=) To set an empty callerId -- JohnM
I tried all of the suggestions, and still the callerid remains intact. I guess at this point I am starting to wonder what bit of logic is being run when I dial *8111XXXXXXXXXX... Is there a way I can trace how a call is being processed within asterisk? Or even see what I am sending to my VoIP terminating node? John John Millican wrote:> Doug Lytle wrote: > >> John Koenig wrote: >> >>> exten=s,1,set(CALLERID(all)= null) >>> exten=s,n,Dial(${ARG1}) >>> >>> >> Just a guess. >> >> exten => s,1,Set(CALLERID(all)= null <0>) >> exten => s,n,SetCallerPres(prohib) >> exten => s,n,Dial(${ARG1}) >> >> >> Doug >> >> > > I believe you need to use: > exten => s,1,Set(CALLERID(all)=) > To set an empty callerId > >
John Koenig wrote:> I tried all of the suggestions, and still the callerid remains intact. > I guess at this point I am starting to wonder what bit of logic is being > run when I dial *8111XXXXXXXXXX... > > Is there a way I can trace how a call is being processed within > asterisk? Or even see what I am sending to my VoIP terminating node? > > John > > John Millican wrote: > >> Doug Lytle wrote: >> >> >>> John Koenig wrote: >>> >>> >>>> exten=s,1,set(CALLERID(all)= null) >>>> exten=s,n,Dial(${ARG1}) >>>> >>>> >>>> >>> Just a guess. >>> >>> exten => s,1,Set(CALLERID(all)= null <0>) >>> exten => s,n,SetCallerPres(prohib) >>> exten => s,n,Dial(${ARG1}) >>> >>> >>> Doug >>> >>> >>> >> I believe you need to use: >> exten => s,1,Set(CALLERID(all)=) >> To set an empty callerId >> >> >> > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >Yes, install wireshark and run "tethereal port 5060 -w capture.pcap" and then place a call...then open the pcap file in Wireshark and look in the SIP header for the callerid information -- Sherwood McGowan VoIP / Telecom Solutions sherwood.mcgowan at gmail.com
John Koenig wrote:> I tried all of the suggestions, and still the callerid remains intact. > I guess at this point I am starting to wonder what bit of logic is being > run when I dial *8111XXXXXXXXXX... > > Is there a way I can trace how a call is being processed within > asterisk? Or even see what I am sending to my VoIP terminating node? > > John > > John Millican wrote: >> Doug Lytle wrote: >> >>> John Koenig wrote: >>> >>>> exten=s,1,set(CALLERID(all)= null) >>>> exten=s,n,Dial(${ARG1}) >>>> >>>> >>> Just a guess. >>> >>> exten => s,1,Set(CALLERID(all)= null <0>) >>> exten => s,n,SetCallerPres(prohib) >>> exten => s,n,Dial(${ARG1}) >>> >>> >>> Doug >>> >>> >> I believe you need to use: >> exten => s,1,Set(CALLERID(all)=) >> To set an empty callerId >> >> >typing: sip set debug peer <peer_name> at the CLI will give you a bunch of information as to what is going on with that peer -- JohnM