VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
markmorreny at gmail.com Guest
|
Posted: Sun Mar 23, 2008 9:54 am Post subject: [asterisk-users] Unable to capture CallerID through Zap |
|
|
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 obtain
the Caller ID if the calls are from the phone line.
exten => s,1,Answer()
exten => s, n, Verbose(1|incoming number is ${CHANNEL} calling to ${EXTEN}
routing to ${phonenum} )
exten => s,n, Verbose(1|callid is ${CALLID(num)})
exten => s,n,Verbose(1|callpres is ${CALLINGPRES})
exten => s,n,Dial(SIP/${phonenum}@voipuser,60)
-- Executing [s at incoming:3] Verbose("Zap/1-1", "1|incoming number is
Zap/1-1 calling to s routing to ") in new stack
-- Executing [s at incoming:4] Verbose("Zap/1-1", "1| callidall is ") in
new stack
callidall is
-- Executing [s at incoming:5] Verbose("Zap/1-1", "1|callid is ") in new
stack
callid is
-- Executing [s at incoming:6] Verbose("Zap/1-1", "1|callpres is 0") in new
stack
How come I am not able to get the call from ID and call to ID? Is this
something with my setup?
Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080323/8e701396/attachment.htm |
|
Back to top |
|
|
spamsucks2005 at gmail... Guest
|
Posted: Sun Mar 23, 2008 11:09 am Post subject: [asterisk-users] Unable to capture CallerID through Zap |
|
|
On Sun, Mar 23, 2008 at 3:54 PM, mark morreny <markmorreny at gmail.com> wrote:
Quote: | exten => s,n, Verbose(1|callid is ${CALLID(num)})
exten => s,n,Verbose(1|callpres is ${CALLINGPRES})
exten => s,n,Dial(SIP/${phonenum}@voipuser,60)
|
You didn't say what version of asterisk but in the version I know
about it isn't CALLID() |
|
Back to top |
|
|
gordon+asterisk at dro... Guest
|
Posted: Sun Mar 23, 2008 11:25 am Post subject: [asterisk-users] Unable to capture CallerID through Zap |
|
|
On Sun, 23 Mar 2008, 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 obtain
the Caller ID if the calls are from the phone line.
exten => s,1,Answer()
exten => s, n, Verbose(1|incoming number is ${CHANNEL} calling to ${EXTEN}
routing to ${phonenum} )
|
exten => s,n,Noop(Incoming number is ${CALLERID(all)})
Note, you ought to have the number even before you Answer() the call.
Gordon |
|
Back to top |
|
|
markmorreny at gmail.com Guest
|
Posted: Sun Mar 23, 2008 12:13 pm Post subject: [asterisk-users] Unable to capture CallerID through Zap |
|
|
Hi Gordon and all,
Thank you! It works. The other problem is that I also want to get the
destination numbers as I have multiple DIDs on the same line.
When I use exten => s,n,Noop(Destination number is ${EXTEN}) in
extentions.conf, I get "s" as the return value.
Is there anyway to get the actual calling number?
Thanks again,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080324/7d8ff62c/attachment.htm |
|
Back to top |
|
|
|
|
|
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
|