[OpenSIPS-Users] Get user_agent after lookup
Duane Larson
duane.larson at gmail.com
Thu Dec 20 23:18:44 CET 2012
You can do an AVPop query
http://www.opensips.org/html/docs/modules/1.8.x/avpops.html#id292750
But what if there are multiple location records for the same user?
On Thu, Dec 20, 2012 at 3:54 PM, Dragomir Haralambiev <goup2010 at gmail.com>wrote:
> $ua - get user agent field from incoming SIP message.
> I need to know user agent who will receive the local call.
> The location table contain this information in user_agent field.
> I need to receive this field after run lookup("location","m") .
>
>
> 2012/12/20 Duane Larson <duane.larson at gmail.com>:
> > http://www.opensips.org/Resources/DocsCoreVar18#toc92
> >
> > Is that what you want?
> >
> > On Thu, Dec 20, 2012 at 2:59 PM, Dragomir Haralambiev <
> goup2010 at gmail.com>
> > wrote:
> >>
> >> Hello All,
> >>
> >> I rum save("location") wnen reseive REGISTER.
> >> Ho to get user_agent field from location table after run
> >> lookup("location","m") ?
> >>
> >> if ( lookup("location","m") ) {
> >> ?????
> >> }
> >>
> >> Thanks in advance,
> >> PlayMen
> >>
> >> _______________________________________________
> >> Users mailing list
> >> Users at lists.opensips.org
> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
> >
> >
> > --
> > --
> > *--*--*--*--*--*
> > Duane
> > *--*--*--*--*--*
> > --
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
--
*--*--*--*--*--*
Duane
*--*--*--*--*--*
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121220/a2fa8ee7/attachment.htm>
More information about the Users
mailing list