| 1565 | } |
| 1566 | |
| 1567 | static int w_print_avps(struct sip_msg* msg, char* foo, char *bar) |
| 1568 | { |
| 1569 | struct usr_avp **avp_list; |
| 1570 | struct usr_avp *avp; |
| 1571 | int_str val; |
| 1572 | str *name; |
| 1573 | |
| 1574 | /* go through all list */ |
| 1575 | avp_list = get_avp_list(); |
| 1576 | avp = *avp_list; |
| 1577 | |
| 1578 | LM_INFO("----------- All AVPs in this context --------\n"); |
| 1579 | LM_INFO(" (SIP txn, script event, timer route, etc.)\n"); |
| 1580 | for ( ; avp ; avp=avp->next) |
| 1581 | { |
| 1582 | LM_INFO("p=%p, flags=0x%04X\n",avp, avp->flags); |
| 1583 | name = get_avp_name(avp); |
| 1584 | LM_INFO(" name=<%.*s>\n",name->len,name->s); |
| 1585 | LM_INFO(" id=<%d>\n",avp->id); |
| 1586 | get_avp_val( avp, &val); |
| 1587 | if (avp->flags&AVP_VAL_STR) |
| 1588 | { |
| 1589 | LM_INFO(" val_str=<%.*s / %d>\n",val.s.len,val.s.s, |
| 1590 | val.s.len); |
| 1591 | } else { |
| 1592 | LM_INFO(" val_int=<%d>\n",val.n); |
| 1593 | } |
| 1594 | } |
| 1595 | LM_INFO("---------------- END ALL AVPs ---------------\n"); |
| 1596 | |
| 1597 | return 1; |
| 1598 | } |
| 1599 | |
| 1600 | |
| 1601 | static str via_hdl_flag_names[] = { |
nothing calls this directly
no test coverage detected