<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
A standard PSTN line will not give you the number that is connected to
it - Asterisk has no way of knowing what it is. What I mean by
matching the zap channel to the number is that if you know that the
phone number 123 is connected to Zap channel 1, then when you get a
call in on Zap/1, then the line that was called was 123.<br>
<br>
An E1 line <i>can</i> give you the details of the phone number that
was called, if your provider supplies it.<br>
<br>
<br>
mark morreny wrote:
<blockquote
cite="mid:20ad6b920803232345habc1729i8275a6db4e55cb35@mail.gmail.com"
type="cite">Dear Rob and all,<br>
I also tried $CHANNEL before but it returned:<br>
<br>
-- Executing [s@incoming:8] NoOp("Zap/1-1", "channel = Zap/1-1") in
new stack<br>
<br>
It still does not give me the dialed number. Could you explain how to
match it again the zap channel to extract the dialed number?<br>
Will I be able to get the dialed number if I am using a E1 line? <br>
<br>
Thanks,<br>
Mark<br>
<br>
<div class="gmail_quote">On Mon, Mar 24, 2008 at 2:29 PM, Rob Hillis
<<a moz-do-not-send="true" href="mailto:rob@hillis.dyndns.org">rob@hillis.dyndns.org</a>>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
The only method I'm familiar with for an analogue line to signal which
number was called is a very old service that loops the line first and
then dials the number. The only way to capture this would be to handle
the incoming line as a standard extension with a different context.
I've only run in to one of these services myself - and that was
attached to a legacy PABX. I seriously doubt you'd be able to order
these services any more.<br>
<br>
If this is a standard PSTN service, the only way you know which number
has been called is by matching it against the zap channel that the call
has been received on. The ${EXTEN} variable won't tell you this as
you've already found out - you'll need to examine ${CHANNEL} and match
the channel to the connected DID yourself.<br>
<br>
<br>
<br>
mark morreny wrote:
<blockquote type="cite">
<div>
<div class="Wj3C7c">Hi all,<br>
<br>
I am using Digium PCI board to receive PSTN call through
regular phone line. It is no problem for me to receive calls, but I am
not able to capture the destination number through the ZAP channel<br>
<br>
<br>
exten => s, n, Verbose(1|destination to ${EXTEN} )<br>
<br>
<br>
${EXTEN} returns 's' instead of the actual destination number. Since I
have multiple phone numbers, I want to be able to route different calls
to different places. <br>
<br>
Is this possible to do with Asterisk?<br>
<br>
Thanks,<br>
<font color="#888888">Mark</font> </div>
</div>
<pre><hr size="4" width="90%"><div class="Ih2E3d">
_______________________________________________
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true"
href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a moz-do-not-send="true"
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div></pre>
</blockquote>
</div>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true"
href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a>
--<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a moz-do-not-send="true"
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote>
</div>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
</blockquote>
</body>
</html>