Link to home
Create AccountLog in
Avatar of Shaun Wingrin
Shaun WingrinFlag for South Africa

asked on

Asterisk noop callers IP required

Say, Using this on hangup
http://www.voip-info.org/wiki/view/Asterisk+variables
Below is my output.
How do I get the callers IP?


 Executing [h@OutboundWS:1] NoOp("SIP/41.x.x.x-03bfd750", "EXTEN : h") in new stack
[2011-10-08 23:55:15] VERBOSE[14670] logger.c:     -- Executing [h@OutboundWS:2] NoOp("SIP/41.x.x.x-03bfd750", "SIPDOMAIN : 41.x.x.x") in new stack
[2011-10-08 23:55:15] VERBOSE[14670] logger.c:     -- Executing [h@OutboundWS:3] NoOp("SIP/41.x.x.x-03bfd750", "SIPCALLID : b212484d2e3ca45d") in new stack
Avatar of grblades
grblades
Flag of United Kingdom of Great Britain and Northern Ireland image

You will need to use the sip_header function to read the address directly out of the sip header. See http://www.voip-info.org/wiki/view/Asterisk+func+sip_header
The example given on that page looks like it will do what you want.
ASKER CERTIFIED SOLUTION
Avatar of Member_2_1968385
Member_2_1968385
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Shaun Wingrin

ASKER

Look fwd to testing it...tx
Still to test