How to implement some of the function into asterisk like *67 "call number blocking" or *57 "call trace" ? I'm connecting to sipura SPA3K outside line by dialing 9+number. Is there a way to get outside dial tone in SPA3K PSTN-Line by dialing "9"? How to program the extension? -- #Joseph
> How to implement some of the function into asterisk like *67 "call > number blocking"exten => _*67*X.,1,CallerPres(32) exten => _*67*X.,1,Dial(Zap/g1/${EXTEN:4},${TIMEOUT},${DIALOPTS}))> or *57 "call trace" ?wtf is call trace? roy
On Sat, 27 Nov 2004, Roy Sigurd Karlsbakk wrote:> > How to implement some of the function into asterisk like *67 "call > > number blocking" > > exten => _*67*X.,1,CallerPres(32) > exten => _*67*X.,1,Dial(Zap/g1/${EXTEN:4},${TIMEOUT},${DIALOPTS}))Do you mean CallingPres? There is more information on http://www.voip-info.org/wiki-Asterisk+cmd+CallingPres I think you may need to put "usecallingpres=yes" in the zapata.conf file for this to work. As a side not, the incoming caller presentation seems to be available in the CALLINGPRES pseudo variable.> > or *57 "call trace" ? > > wtf is call trace?Perhaps he wants to identify the last caller id of the last caller? A suggestion would be to store the caller id in either astdb or an external database and pull up the number on *57. Peter
On Sat, 27 Nov 2004, Peter Svensson wrote:> On Sat, 27 Nov 2004, Roy Sigurd Karlsbakk wrote: > > > > How to implement some of the function into asterisk like *67 "call > > > number blocking" > > > > exten => _*67*X.,1,CallerPres(32) > > exten => _*67*X.,1,Dial(Zap/g1/${EXTEN:4},${TIMEOUT},${DIALOPTS})) > > Do you mean CallingPres? There is more information on > http://www.voip-info.org/wiki-Asterisk+cmd+CallingPres > I think you may need to put "usecallingpres=yes" in the zapata.conf file > for this to work.I know it is bad form replying to my own email. I should have read a bit more of the source first. There is a newer version of the function called SetCallerPres() that it is probably better to use. It is less tied to the internals of chan_zap. The calling presentation is also used (or at least passed) by chan_iax. Peter
[snap]> > > or *57 "call trace" ? > > > > wtf is call trace? > > Perhaps he wants to identify the last caller id of the last caller? A > suggestion would be to store the caller id in either astdb or an external > database and pull up the number on *57.No, caller ID can be blocked by *67. So *57 allows telephone company to trace this call (regardless if you blocked the caller ID with *67) to local authority. -- #Joseph