You can do an AVPop query<div><a href="http://www.opensips.org/html/docs/modules/1.8.x/avpops.html#id292750">http://www.opensips.org/html/docs/modules/1.8.x/avpops.html#id292750</a></div><div><br></div><div>But what if there are multiple location records for the same user?</div>
<div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Thu, Dec 20, 2012 at 3:54 PM, Dragomir Haralambiev <span dir="ltr"><<a href="mailto:goup2010@gmail.com" target="_blank">goup2010@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">$ua - get user agent field from incoming SIP message.<br>
I need to know user agent who will receive the local call.<br>
The location table contain this information in user_agent field.<br>
I need to receive this field after run lookup("location","m") .<br>
<br>
<br>
2012/12/20 Duane Larson <<a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> <a href="http://www.opensips.org/Resources/DocsCoreVar18#toc92" target="_blank">http://www.opensips.org/Resources/DocsCoreVar18#toc92</a><br>
><br>
> Is that what you want?<br>
><br>
> On Thu, Dec 20, 2012 at 2:59 PM, Dragomir Haralambiev <<a href="mailto:goup2010@gmail.com">goup2010@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hello All,<br>
>><br>
>> I rum save("location") wnen reseive REGISTER.<br>
>> Ho to get user_agent field from location table after run<br>
>> lookup("location","m") ?<br>
>><br>
>> if ( lookup("location","m") ) {<br>
>> ?????<br>
>> }<br>
>><br>
>> Thanks in advance,<br>
>> PlayMen<br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
><br>
><br>
> --<br>
> --<br>
> *--*--*--*--*--*<br>
> Duane<br>
> *--*--*--*--*--*<br>
> --<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--
</div>