| 160 | |
| 161 | |
| 162 | static inline int exec_pre_cb( struct sip_msg *msg, struct script_cb *cb) |
| 163 | { |
| 164 | int bitmask = SCB_RUN_ALL; |
| 165 | |
| 166 | for ( ; cb ; cb=cb->next ) { |
| 167 | bitmask &= cb->cbf(msg, cb->param); |
| 168 | |
| 169 | if (bitmask == SCB_DROP_MSG) |
| 170 | break; |
| 171 | } |
| 172 | |
| 173 | return bitmask; |
| 174 | } |
| 175 | |
| 176 | |
| 177 | static inline int exec_post_cb( struct sip_msg *msg, struct script_cb *cb) |
no outgoing calls
no test coverage detected