Hey All,<div>I'm using the dialplan module and trying to use an avp for the dpid.. avp_print shows my avp like this:</div><div>Apr 30 21:48:26 sip1 /usr/local/sbin/opensips[8079]: INFO:avpops:ops_print_avp: p=0xb620c0f8, flags=0x0003 </div>
<div>Apr 30 21:48:26 sip1 /usr/local/sbin/opensips[8079]: INFO:avpops:ops_print_avp: name=<trunkid> </div><div>Apr 30 21:48:26 sip1 /usr/local/sbin/opensips[8079]: INFO:avpops:ops_print_avp: val_str=<3 / 1> <br>
</div><div><br></div><div>And I'm calling this:</div><div> dp_translate("$avp(s:trunkid)","$ruri.user/$avp(s:trans_uri)");<br></div><div><br></div><div>And it keeps giving this error:</div>
<div>
Apr 30 21:49:15 sip1 /usr/local/sbin/opensips[8090]: ERROR:dialplan:dp_get_ivalue: no AVP or SCRIPTVAR found (error in scripts) </div><div>Apr 30 21:49:15 sip1 /usr/local/sbin/opensips[8090]: ERROR:dialplan:dp_translate_f: no dpid value <br>
</div><div><br></div><div>It's almost like it doesn't like the string value.. but for the life of me, I can't figure out how to get it to return an integer value.. But I'm not even sure this is the case..</div>
<div><br></div><div>Any ideas?</div><div><br></div><div>BTW, if I staticly stick that number "3" into the dpid field, it works *perfectly*</div><div><br></div><div>Thanks,</div><div>Brett</div><div><br></div><div>
<br></div><div><br></div>