Hello Friends and Gurus:

I am struggling with routing and need a bit of clarification WRT following:

route {
 if ($fU=="601"&&is_method("INVITE"))
      record_route();
  rewritehost("10.0.10.111"); //SS IP
         route(1);
}
route[1] {
        # send it out now; use stateful forwarding as it works reliably
        # even for UDP2TCP
        if (!t_relay()) {
                sl_reply_error();
        };
        exit;
}
* In the above stateful forwarding what is the rationale of calling route (1) 
within main route block? Could the t_relay statement afyer rewriting the host 
part of URI not have performed the stateful forwarding?

** In route[1] there is is only an expression abt logical not condition about 
t_relay()  (if methods in this function are not invoked??)
 I wonder where exactly is stateful forwarding taking place?

1- Is it the default action?
2- Or in function sl_reply_error()?

Thanks a lot in advance!

Zaka

________________________________

Albtelecom & Eagle Mobile invite you to protect together the Environment. 
Please do not print the e-mail unless really necessary.

Albtelecom & Eagle Mobile iu ftojnë të mbrojmë së bashku Mjedisin. Lutemi të 
mos e printoni këtë komunikim elektronik nëse nuk është vërtet i nevojshëm.

________________________________

This e-mail and any files transmitted with it are confidential and intended 
solely for the use of the addressee/s. If you are not the intended recipient 
you are hereby notified that any dissemination, forwarding, copying or use of 
any of the information is strictly prohibited. If you receive this e-mail in 
error, please notify the sender immediately and delete it! Albtelecom makes no 
warranty as to the accuracy or completeness of any information contained in 
this message and hereby excludes any liability of any kind for the information 
contained therein or for the information transmission, reception, storage or 
use of such in any way whatsoever. The opinions expressed in this message may 
belong to sender alone and may not necessarily reflect the opinions of 
Albtelecom. Albtelecom shall bear no liability for any loss or damage caused by 
software or e-mail viruses.

Ky mesazh dhe çdo informacion i transmetuar në përmbajtje te këtij mesazhi 
është konfidencial dhe është i destinuar vetëm për marrësin e destinuar. Nëse 
nuk jeni marrësi i destinuar, Ju bëjmë me dije se çdo përhapje, transmetim, 
kopjim apo përdorim i çdo informacioni është i ndaluar. Nëse e merrni këtë 
mesazh gabimisht, ju lutem kontaktoni urgjentisht nisësin e tij dhe fshijeni 
atë. Albtelecom nuk jep asnjë garanci për saktësinë apo plotësinë e 
informacionit në përmbajtje të këtij mesazhi dhe nuk mban asnjë përgjegjësi për 
informacionin e përmbajtur, transmetimin, marrjen, ruajtjen apo përdorimin e 
tij në çfarëdolloj mënyre. Mendimet e shprehura në këtë mesazh mund t'i 
përkasin vetë nisësit dhe nuk mund të reflektojnë domosdoshmërisht qëndrimet e 
Albtelecom. Albtelecom nuk do të mbaje asnjë përgjegjësi për humbje ose dëme te 
shkaktuara nga programet apo viruset.
_______________________________________________
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

Reply via email to