[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-users
Subject:    Re: [SR-Users] simple proxy
From:       Iurii Andamasov <andamasov () gmail ! com>
Date:       2011-11-23 23:42:50
Message-ID: 6EC6F06D-16EC-4048-8CC6-23906D1B2947 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Thanks a lot!
i was able adjust sample config to suite my needs,
now all is working as expected
Thanks!

23.11.2011,  12:35, Daniel-Constantin Mierla ():

> Hello,
> 
> keep the mailing list cc-ed, private messages from public mailing list discussions \
> are going to be discarded. 
> See the comments inline.
> 
> On 11/23/11 12:20 PM, Iurii Andamasov wrote:
> > Hello Daniel,
> > i
> > 23.11.2011,  8:43, Daniel-Constantin Mierla ():
> > 
> > > Hello,
> > > 
> > > On 11/23/11 4:02 AM, Iurii Andamasov wrote:
> > > > Hello list.
> > > > First of all sorry for dump question, i'm pretty new to kamailio so i hope \
> > > > someone point me in right direction 
> > > > currently i have one sip device which can handle sip request only from one \
> > > > ip, my goal is to put kamailio in front of it so i can proxy requests from \
> > > > several ips 
> > > > i added this to conf
> > > > 
> > > > route{
> > > > if ( src_ip == 10.46.1.121 || src_ip == 10.46.1.122 ) {
> > > > if(method == "INVITE") {
> > > > $rd="10.46.29.10";
> > > > t_relay();
> > > > }
> > > > }
> > > > 
> > > > and calls seems connecting but signaling is completely broken
> > > > 
> > > > i understand that i'm doing something wrong, but can't get what is wrong
> > > can you explain what is broken and what you would expect to happen?
> > seems that occurs timeouts, from your next message i understand why,
> > what i need it just to pass call through kamailio from that 2 ips
> 
> If you need to route all requests within a call through kamailio, then you need to \
> use loose routing (see rr module). 
> Maybe it would be easier for you to start with an existing example of config, if \
> the default config is too big to understand, maybe the one from dispatcher is \
> simpler: 
> http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2523004
> 
> It has the parts of routing requests within dialog, you need to replace the part \
> that uses dispatcher module with your forwarding to a specific ip (or use \
> dispatcher and have that ip as single destination there). Before line \
> 'route(DISPATCH);' add the condition to deny INVITEs that don't match the trusted \
> source ips: 
> if ( ! (src_ip == 10.46.1.121 || src_ip == 10.46.1.122 )) {
> send_reply("403", "Forbidden");
> exit;
> }
> 
> Cheers,
> Daniel
> 
> -- 
> Daniel-Constantin Mierla -- http://www.asipto.com
> Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
> http://linkedin.com/in/miconda -- http://twitter.com/miconda
> 


["smime.p7s" (smime.p7s)]

0	*H
 010	+0	*H
 00v 
@3x 0
	*H
0k1+0)U"WM Transfer Certification Services10U
WM Transfer Ltd1"0 UWebMoney Transfer Root CA0
100514214736Z
120514215736Z010U
WebMoney Transfer1&0$UWebMoney Certification Center10UWM id: \
4106843905961"0 	*H 	andamasov@gmail.com0"0
	*H
0
ػ<ECX95=Zzu$Q v,,x_$VZb \
sC9X\\MNX 0C%S9I2˼\~[vs \
pEMגдc4T_i2URɟde=~v)6ƇÂvԝ$~Ogem \
<6?<'~(JYJ(l[nm3D@$Gb:YGG:nI_00U+^/p2Ѣؗ=0U#00KO6}Wi0U00 \
 Ihttp://cert.wmtransfer.com/CertEnroll/WebMoney%20Transfer%20Root%20CA.crlCfile://cert.wmtransfer.com/CertEnroll/WebMoney \
Transfer Root CA.crl0+00i+0]http://cert.wmtransfer.com/CertEn \
roll/cert.wmtransfer.com_WebMoney%20Transfer%20Root%20CA.crt0c+0Wfile://cert.wmtransfer.com/CertEnroll/cert.wmtransfer.com_WebMoney \
Transfer Root CA.crt0U%0++0'	+7 00
+0
+0
	*H
BwvZ~ \
ώz2"zfUKv$Cj9dkw?w}VfI1wXPV.4.J4Aڦz*( \
zeKV/{9SCܟ~dsX={'׳U*ާA9Jy(}gAGHg \
* T]1ί%j87 HoawLT푎u	ȕ{9܌/R \
oա~~W`H_]^pY1[%QݿDH+hDSQ<(A]'\0X* \
UBW*e:Kߵ8suq&D.z"uu|{8aPȯ&WD5m&Frw8񫴘>Ti*Z#'n
 q 3׮s:*!yc)1A&_FזB`Zb';G100y0k1+0)U"WM \
Transfer Certification Services10U WM Transfer Ltd1"0 UWebMoney Transfer \
Root CA @3x 0	+ u0	*H
	1	*H
0	*H
	1
111123234251Z0#	*H
	1NTHSzӯ40	+71{0y0k1+0)U"WM Transfer Certification \
Services10U WM Transfer Ltd1"0 UWebMoney Transfer Root CA
@3x 0*H
	1{ y0k1+0)U"WM Transfer Certification Services10U
WM Transfer Ltd1"0 UWebMoney Transfer Root CA
@3x 0
	*H
ͽ2H8ڰ2>ryg)7>_`?zXTgu5PAӷdĹ'bV9gne.veuί`7N"l5Q2 \
GEejHtB|r"MN+	K  igvn0v׀q:pQXQ#&Jp|
[oTYZΫ3I̩=/q礕)̺)4Ք>OusPp4p7s_X`4



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic