I have set my config file to allow calls coming from ip address
route[AUTH] {
if(src_ip==64.136.100.100) {
return;
}
But I keep getting the following error, any suggestions?
U 2013/07/13 18:20:45.868684 10.243.63.204:5060 -> 64.136.100.100:5060
SIP/2.0 403 Not Allowed.
Via: SIP/2.0/UDP 64.136.100.100:5060;branch=z9hG4bK1sansay2536333414rdb8829;rport=5060.
To: <sip:12135246700@54.235.100.77>;tag=1d3ba323b5484a2f7ffc7e242c7e76f0.38ca.
From: <sip:184559952xx@64.136.100.100>;tag=sansay2536333414rdb8829.
Call-ID: 1644090003-0-1270023700(a)64.136.174.227.
CSeq: 1 INVITE.
Server: kamailio (4.0.2 (x86_64/linux)).
Content-Length: 0.
Thank you,
Arun
________________________________
From: Daniel-Constantin Mierla <miconda(a)gmail.com>
To: arun Jayaprakash <jayaprakasharun(a)yahoo.com>om>; Kamailio (SER) - Users Mailing
List <sr-users(a)lists.sip-router.org>
Sent: Thursday, July 11, 2013 6:03 AM
Subject: Re: [SR-Users] configuring an incoming PSTN line...
Hello,
On 7/6/13 5:12 PM, arun Jayaprakash wrote:
Hello,
can someone please give me some pointers as to how to configure the proxy server to
receive incoming calls from a PSTN line. I had not problem setting up extensions and
making outgoing PSTN calls. I am not able to find any documents ( or I am not looking in
the right place ) as to how to configure the system to receive incoming PSTN calls. The
DID number I have from my provider gives me the 10 digit DID number and the IP address of
their server. Thank you for the help.
I guess you need to allow traffic from the
provider without username/password authentication. For that you can use permissions
module. In default config file, see WITH_IPAUTH conditions and add the ip in the
'address' table with grp=1. Or you can just add in the route[AUTH] a condition
like if(src_ip==...) return;
Then you need to map the did to a user, alias_db module can be used
for that. It is also in the default config file, see the top
comments about how to enable it, then add the record in dbaliases
table.
Cheers,
Daniel
--
Daniel-Constantin Mierla -
http://www.asipto.com http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda