[asterisk-dev] How to get SIP packet source ip address in asterisk application

ast guy astguy at gmail.com
Fri Nov 13 15:11:27 CST 2009


Hi,

 I have made an application an asterisk. Can any one tell how do I get
the source IP address of the SIP packets inside my app_Application()?
Application only gets the ast_channel variable and *data passed to it.

SIP Call is being forwarded to my application from some Service
Provider. So when app_Applicaiton() is in execute state then I want to
get the sip source packet ip address and then authenticate it.

Regards,
/ag



More information about the asterisk-dev mailing list