Previous Up Next

11.12  Branching

   1 service branching {
       processing {
         dialog {
           response incoming INVITE(request rq) {
   5 
             if (FROM == 'sip:my.wife@home.net') {
               rq = rq with {#priority: "urgent"};
               return forward branch wife;
             }
  10         else {
               rq = rq with {#priority: "urgent"};
               return forward;
             }
           }
  15 
           response BYE(request rq) {
             branch wife {
               rq = rq with {#priority: "urgent"};
               return forward;
  20         }
             branch default {
               rq = rq with {#priority: "non-urgent"};
               return forward;
     } } } } }

Previous Up Next