Greetings,
i have a custom extension and whenever i get a call, i want to be available to get that persons ip.
this is my custom app so far.
[from-internal-custom]
exten => 1000,1,NoOp()
same => n,Answer()
same => n,Stasis(channel-dump)
same => n,Hangup()
i tried using ${CHANNEL(peerip)} but it returns nothing?
jcolp
2
What channel technology are you using?
@jcolp
im using pjsip, but just found out how to do it.
will return the rtp destinations.
so if you are using node-ari-client and want to get the ip address of someone
[from-internal-custom]
exten => 1000,1,NoOp()
same => n,Answer()
same => n,Stasis(channel-dump, ${CHANNEL(rtp,dest)} )
same => n,Hangup()
jcolp
4
You can also check the documentation[1] for other ways to get signaling address information.
[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_CHANNEL
1 Like