Skip to content

Commit

Permalink
avpops: updated to use xavp long value field
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 22, 2022
1 parent e97541c commit 74f0c54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/avpops/avpops_impl.c
Expand Up @@ -1093,11 +1093,11 @@ int get_xavp_param(struct sip_msg* msg, pv_spec_p spec, sr_xavp_t **xavp,

int set_val_xavp(sr_xavp_t *xavp, int_str *avp_val, int *flag)
{
if(xavp->val.type!=SR_XTYPE_INT&&xavp->val.type!=SR_XTYPE_STR)
if(xavp->val.type!=SR_XTYPE_LONG && xavp->val.type!=SR_XTYPE_STR)
return -1;
if(xavp->val.type==SR_XTYPE_INT)
if(xavp->val.type==SR_XTYPE_LONG)
{
avp_val->n = xavp->val.v.i;
avp_val->n = xavp->val.v.l;
} else {
*flag = AVP_VAL_STR;
avp_val->s = xavp->val.v.s;
Expand Down

0 comments on commit 74f0c54

Please sign in to comment.