[Asterisk-Users] Unauthenticated calls from a specific IP

Deon Rodden drodden at webunited.net
Fri Jul 30 05:56:03 MST 2004


We put a VWIC and a DSP in a Cisco 1720. The purpose will be for a customer
to use a T1 Crossover cable to connect the 1720 into their existing PBX
system. It'll be a "Virtual T1 PRI" type of thing. The Cisco 1720 will make
the conversion to SIP and send it to our Asterisk server. As far as his PBX
is concerned, it's talking to a standard T1 PRI from the local telco or
whatever.

The issue is Cisco routers don't support SIP registration/authentication. I
want this customer to be in his own context in the extensions.conf file.

What I was thinking is, if I remove "username" and "secret" from the
sip.conf for a standard user entry, but do a "context=whatever and a
"host=x.x.x.x" for his specific IP, if an unauthenticated request comes in
from that IP it should automatically put him in that context, instead of the
default one specific at the top of the file in the [general] section. Also,
if I forward several DID's to SIP/customer1 (customer1 being what I put in
brackets for this entry, ie [customer1]) it should see the host=x.x.x.x and
send it to that IP, regardless of authentication.

sip.conf    Example below:
[customer1]
context=customer1context
type=friend
qualify=no
host=x.x.x.x
canreinvite=no
dtmfmode=inband
nat=no
callerid="Customer 1" <1235551212>
accountcode=8785
amaflags=billing
insecure=very

extensions.conf   Example below:
[incoming]
exten => 1235551212,1,Goto(customer1context,1235551212,1)
exten => 1235551213,1,Goto(customer1context,1235551213,1)
exten => 1235551214,1,Goto(customer1context,1235551214,1)

[customer1context]
include => outgoing_local
include => outgoing_longdistance
include => outgoing_international

exten => 1235551212,1,Dial(SIP/customer1,30,r)
exten => 1235551213,1,Dial(SIP/customer1,30,r)
exten => 1235551214,1,Dial(SIP/customer1,30,r)



Maybe I should put a "defaultip=x.x.x.x" in the sip.conf section as well?
Will this work?

Thanks,
Deon


P.S - I resubmitted this, with all the activity my previous message may have
been overlooked.




More information about the asterisk-users mailing list