mark morreny
2008-Mar-24 06:38 UTC
[asterisk-users] Unable to obtain dialed number through ZAP
Hi all, This is not a repeated post as I am just adding more information for my previous post. Asterisk version 1.4.18 TDM card: Digium TDM411B Zaptel version 1.4.9.2 Line: PSTN line I tried to obtain the dialed number using $DNID and $CDR(DST) . All of these variable returns 's' I also tried exten => _3345335,n,Noop(this is ok) where 3345335 is my number but it does not go there. What I need to do is to try to route called based on the dialed number as I have multiple DIDs on my line. Is this something that can be done? Is this something to do with the hardware that I am using? If so, what kind of hardware do I need to accomplish this task? zapata.conf: [trunkgroups] [channels] usecallerid=yes hidecallerid=no callwaiting=no threewaycalling=yes transfer=yes echocancel=yes echotraining=yes immediate=no ; define channels context=incoming signalling=fxs_ks channel => 1 signalling=fxo_ks channel=>2 Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080324/96ee013f/attachment.htm
Gordon Henderson
2008-Mar-24 07:49 UTC
[asterisk-users] Unable to obtain dialed number through ZAP
On Mon, 24 Mar 2008, mark morreny wrote:> What I need to do is to try to route called based on the dialed number as I > have multiple DIDs on my line. Is this something that can be done? Is this > something to do with the hardware that I am using? If so, what kind of > hardware do I need to accomplish this task?Based on this and your other posts, I'd suggest that it's not possible with your setup. Telephnoe companies don't normally send the called phnoe number down analogue lines, just the calling number (and even if they did, I'm not sure asterisk has a means to extract it) To do what you need to do, you'll need to move to BRI or PRI type of equipment. (ISDN2 or ISDN30 in the UK, or whatever they're called where you live) Gordon
Andrew Kohlsmith (lists)
2008-Mar-24 12:28 UTC
[asterisk-users] Unable to obtain dialed number through ZAP
On March 24, 2008 02:38:03 am mark morreny wrote:> What I need to do is to try to route called based on the dialed number as I > have multiple DIDs on my line. Is this something that can be done? Is > this something to do with the hardware that I am using? If so, what kind > of hardware do I need to accomplish this task?As others have mentioned, if you have an analogue connection (and even in some cases, a digital one), this information is not available to you. A properly configured PRI or BRI should get you this data, and if you have a specifically-provisioned CAS T1, you can get it. -A.
Trevor Peirce
2008-Mar-24 23:02 UTC
[asterisk-users] Unable to obtain dialed number through ZAP
mark morreny wrote:> What I need to do is to try to route called based on the dialed number > as I have multiple DIDs on my line. Is this something that can be > done? Is this something to do with the hardware that I am using? If > so, what kind of hardware do I need to accomplish this task? > > zapata.conf: > > [trunkgroups] > <snip> > context=incoming > signalling=fxs_ks > channel => 1 > > signalling=fxo_ks > channel=>2Hi Mark, It looks like you're using an analog line so you don't have the advantage of a dial line telling you the dialed number. If your provider has enabled distinctive ringing on your line you might be able to accomplish this. I have never tried to have asterisk recognize distinctive rings and this wiki page doesn't look too promising, but take a look: http://www.voip-info.org/wiki-Asterisk+ZAP+channels#DetectingDistinctiveRingonIncomingCalls Best regards, Trevor Peirce -- Real CNAM data for incoming Caller ID @ www.cnam.info