Previous Up Next

11.2  Declarations

An other simple example is to forward to a new SIP URI. This URI can be declared at several place.
   1 service declare1 {
       processing {
         uri us = 'sip:phoenix@barbade.enseirb.fr';
     
   5     registration {
           response incoming INVITE() {
             return forward us;
           }
         }
  10   }
     }
   1 service declare2 {
       processing {
         registration {
           uri us = 'sip:phoenix@barbade.enseirb.fr';
   5       
           dialog {
             response incoming INVITE() {
               return forward us;
             }
  10       }
         }
       }
     }
   1 service declare3 {
       processing {
         dialog {
           uri us = 'sip:phoenix@barbade.enseirb.fr';
   5       
           response incoming INVITE() {
             return forward us;
           }
         }
  10   }
     }
   1 service declare4 {
       processing {
         dialog {
           response incoming INVITE() {
   5         uri us = 'sip:phoenix@barbade.enseirb.fr';
             
             return forward us;
           }
         }
  10   }
     }

Previous Up Next