This is done in sip.conf, iax.conf, etc, not in extensions.conf. By the time a call gets to extensions.conf it must already be authenticated.
Assume the username is robertdobbs and the ip is 209.17.71.61 In sip.conf you would have something like this: [robertdobbs] deny=0.0.0.0/0 permit=209.17.71.61 <rest of the options here> michel freiha wrote: > Hi all, > I need please the exact extension definition under extensions.conf that > accepts any call coming from an appropriate username and Ip address...This > mean that the authentication should be done on username and IP address > > Regards > > > > ------------------------------------------------------------------------ > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS, T-1, PRI, Frame Relay, Linux, and network design. Based near Birmingham, AL. Now accepting clients worldwide. _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
