ami event for unknown sip connection

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

ami event for unknown sip connection

Postby erikgmiller » Wed Dec 30, 2015 8:52 am

Hi, I am looking to log all security alerts from my setup. I get alot of warnings that say "Rejecting unknown SIP connection from X.X.X.X". Does anyone know if there is an AMI event that will trap this? I have tried InvalidPassword, InvalidAccountID, InvalidTransport but none of these fire when that message pops up.
erikgmiller
Newsterisk
 
Posts: 1
Joined: Tue Dec 29, 2015 4:18 pm

Re: ami event for unknown sip connection

Postby ambiorixg12 » Wed Dec 30, 2015 12:02 pm

None of the above events will work, That warning is generated by FreePBX on the context from-sip-external

Code: Select all
exten => s,n,Log(WARNING,"Rejecting unknown SIP connection from ${CHANNEL(recvip)}")

when you have set the options allow anonymou calls to NO and allowguest to Yes. There is not especial event associated to this warning.

You will need to catch all events that occur when you got this type of calls and do some kind of filter
ambiorixg12
Astmaster
 
Posts: 967
Joined: Sun Mar 04, 2007 9:32 pm
Location: Dominican Republic


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest