* Retrieved the inbound info from an AVP * avpid - osp_inbound_avpid * value - osp_inbound wrapped in a string * return NULL on failure */
| 132 | * return NULL on failure |
| 133 | */ |
| 134 | osp_inbound* ospGetInboundInfo(void) |
| 135 | { |
| 136 | int_str inboundval; |
| 137 | osp_inbound* inbound = NULL; |
| 138 | |
| 139 | if (search_first_avp(AVP_VAL_STR, _osp_inbound_avpid, &inboundval, 0) != NULL) { |
| 140 | /* OSP inbound info is wrapped in a string */ |
| 141 | inbound = (osp_inbound*)inboundval.s.s; |
| 142 | |
| 143 | LM_DBG("inbound info found\n"); |
| 144 | } |
| 145 | |
| 146 | return inbound; |
| 147 | } |
| 148 | |
| 149 | /* |
| 150 | * Initialize destination structure |
no test coverage detected