3 msgNewbie One-touch Recording: Does not work (more...
9 msgNewbie One-touch Recording: Does not work

How to find out the IP of the calling party?
\ Gonzalo Servat (13 Mar 2008)
. \ Ex Vito (13 Mar 2008)
. . \ Ex Vito (13 Mar 2008)
. \ Rizwan Hisham (14 Mar 2008)
. . \ Gonzalo Servat (14 Mar 2008)

8 msgT.38 SIP Issues
3 msgasterisk out of service
1 msgtest please ignore
1 msgDTMF CCM Express
1 msgProblem sending CallerID Name to Dialogic based...
11 msgdoes the meetme module still require an externa...
1 msgSIP Registration!
1 msguser web interface
46 msgDruid Open Source Edition
3 msgDUNDi
4 msgIP650 console with expansion modules
1 msgsnom official english forum
1 msgExpected iax user behaviour
2 msginclude context on [globals]
8 msgDTMF problems while greeting is playing(Backgro...
7 msgauthentication number at the end of the numberb...
4 msgS100I IAXy - Why is it discontinued?
Subject:How to find out the IP of the calling party?
Group:Asterisk-users
From:Gonzalo Servat
Date:13 Mar 2008


 


Hi All,

I'm trying to achieve the following:

- If <sip/iax user> logs in from home, they can dial internal extensions
only (this is to avoid employees going wild on local/mobile calls from home)
- If <sip/iax user> logs in from the office, they can call anyone they want.

Since I have my users defined in an LDAP tree, I'd like to stick to
one-account-per-user (each account is setup for both - IAX and SIP logins -
to allow the employee to use IAX from home and SIP at work, or whatever
combination they prefer).

So, I thought I would simply look at the IP address of the originating call.
If the SIP/IAX user has an IP address outside the local subnet -> allow
calls to extensions only. Else -> allow all. I thought the best way of doing
this would be using AGI with a Perl script. The only problem I'm having is
determining the IP address of the originating call. I can't find any channel
variable that gives me this info.

The reason why I mentioned that I'd like to stick to one-account-per-user is
that I know I could fix this simply by having 2 accounts per user (one that
allows connections from the local subnet, and the other to login from
outside and use different contexts for each), but it'd be much nicer to
avoid having 2 accounts per user.

If anyone has any suggestions on how to achieve the above, I'd love to read
them!

Thanks in advance.
Gonzalo


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


© 2004-2008 readlist.com