Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] How to capture destination number when rece


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
markmorreny at gmail.com
Guest





PostPosted: Sun Mar 23, 2008 10:02 pm    Post subject: [asterisk-users] How to capture destination number when rece Reply with quote

Hi all,

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
exten => s, n, Verbose(1|destination to ${EXTEN} )


${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.

Is this possible to do with Asterisk?

Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080324/d503658c/attachment.htm
Back to top
eric at fnords.org
Guest





PostPosted: Sun Mar 23, 2008 11:38 pm    Post subject: [asterisk-users] How to capture destination number when rece Reply with quote

Without knowing the line type, card model, etc, I doubt anyone can help
you. FXO signaled ports do not support receiving the dialed number.

mark morreny wrote:
Quote:
Hi all,

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


exten => s, n, Verbose(1|destination to ${EXTEN} )


${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.

Is this possible to do with Asterisk?

Thanks,
Mark



------------------------------------------------------------------------

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


--
Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS,
T-1, PRI, Frame Relay, Linux, and network design. Based near
Birmingham, AL. Now accepting clients worldwide.
Back to top
rob at hillis.dyndns.org
Guest





PostPosted: Mon Mar 24, 2008 1:29 am    Post subject: [asterisk-users] How to capture destination number when rece Reply with quote

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.

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.

mark morreny wrote:
Quote:
Hi all,

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


exten => s, n, Verbose(1|destination to ${EXTEN} )


${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.

Is this possible to do with Asterisk?

Thanks,
Mark
------------------------------------------------------------------------

_______________________________________________
-- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080324/9617992b/attachment.htm
Back to top
rob at hillis.dyndns.org
Guest





PostPosted: Mon Mar 24, 2008 3:23 am    Post subject: [asterisk-users] How to capture destination number when rece Reply with quote

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.

An E1 line /can/ give you the details of the phone number that was
called, if your provider supplies it.
mark morreny wrote:
Quote:
Dear Rob and all,
I also tried $CHANNEL before but it returned:

-- Executing [s at incoming:8] NoOp("Zap/1-1", "channel = Zap/1-1") in
new stack

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?
Will I be able to get the dialed number if I am using a E1 line?

Thanks,
Mark

On Mon, Mar 24, 2008 at 2:29 PM, Rob Hillis <rob at hillis.dyndns.org
<mailto:rob at hillis.dyndns.org>> wrote:

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.

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.



mark morreny wrote:
Quote:
Hi all,

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


exten => s, n, Verbose(1|destination to ${EXTEN} )


${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.

Is this possible to do with Asterisk?

Thanks,
Mark
------------------------------------------------------------------------
_______________________________________________ -- 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

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


------------------------------------------------------------------------

_______________________________________________
-- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080324/9e82623f/attachment.htm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services