fuck youfuck you
do not send mail for me
fuck you
fuck your parents 
sun of the bech 

    On Friday, April 29, 2016 1:37 AM, Stefan Tobé <[email protected]> 
wrote:
 

 Thanks Bogdan, that works fine!
Stefan

On Thu, Apr 28, 2016 at 6:06 PM, Bogdan-Andrei Iancu <[email protected]> 
wrote:

  Hi Stefan,
 
 Instead of 
     if (src_ip == $(var(qpip){ip.pton}) && src_port == $var(qpprt)) { 
 do
     if ( $si== $var(qpip) && $sp == $var(qpprt) ) {
 
 
 For t_relay(), see:
     http://www.opensips.org/html/docs/modules/2.1.x/tm.html#trelay-1
 but it does not accept variables.
 To get a similar behavior, do :
     $du = "sip:"+ $var(qpip) + ":" + $var(qpprt);
     t_relay();
 
 Regards,
  Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com On 28.04.2016 15:50, Stefan Tobé wrote:
  
    Hi there,
  I am trying to sanitize the opensips script by using a script 'dashboard' in 
the beginning of the script (using  startup_route)
 
 I face two problems here (opensips script errors)
 problem 1: $var(uriqp) should be the uri-string in order to use that in 
t_relay() which is rejected
  problem 2: completing IF statement where src_ip should be compared to 
transformed (to binary) ip address  and source port is both rejected
 
  Can somebody explain 
    
   - what the correct uri string for use in t_relay() would need to be ? (just 
entering t_relay("udp:10.130.2.4:5060") works fine)
   - what the correct way of transformation I need to use in order to have this 
IF statement accepted?
 thanks Stefan Tobé
   
 
 
 ####### Routing Logic ########
 startup_route {
     ####### Local Parameters / Dashboard #########
         $var(qpip)=   "10.130.2.4";
         $var(qpprt)=  "5090";
 #         $var(qpprt)=  5090;
 
     $var(uriqp)=  "udp:"+$var(qpip)+":"+$var(qpprt);
 
 
 }
 
 
 route{
 
 if (src_ip == $(var(qpip){ip.pton}) && src_port == $var(qpprt)) {       (=> 
won't accept regardless whether $var(qpprt)=  "5090" or $var(qpprt)=  5090)
     # code here
     route(sbc);
 }
  else ....
  }
 
 route[qp] {
     
     if (!t_relay($var(uriqp)) {
         send_reply("500","Internal Error");
     }
     exit;
 }
  
 -- 
 mvg
 Stefan Tobé
 
       
  
 _______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 
 
 
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





-- 
mvg
Stefan Tobé


Private Mobility Nederland B.V.
Bolderweg 1
1332 AX Almere
tel: 088 303 3002   /   06 21 26 59 68
email: [email protected]
internet: www.privatemobility.nl


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


  
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to