mark morreny
2008-Mar-23 14:54 UTC
[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
On Sun, Mar 23, 2008 at 3:54 PM, mark morreny <markmorreny at gmail.com> wrote:> 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()
Gordon Henderson
2008-Mar-23 16:25 UTC
[asterisk-users] Unable to capture CallerID through Zap
On Sun, 23 Mar 2008, mark morreny wrote:> 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
mark morreny
2008-Mar-23 17:13 UTC
[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
>
> exten => s,n,Noop(Incoming number is ${CALLERID(all)})
>
> Note, you ought to have the number even before you Answer() the call.
>
> Gordon
>
> _______________________________________________
> -- 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/7d8ff62c/attachment.htm