[OpenSIPS-Users] Get user_agent after lookup

Dragomir Haralambiev goup2010 at gmail.com
Thu Dec 20 23:26:05 CET 2012


Thanks!

Is normaly to have a lot of records but they must to have only one
user_agent field.

2012/12/21 Duane Larson <duane.larson at gmail.com>:
> 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
> *--*--*--*--*--*
> --
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list