[Users] store in DB some searched content present in messages

Daniel-Constantin Mierla daniel at voice-system.ro
Sat Oct 14 20:28:15 CEST 2006


Hello,

see avp_db_query() from avpops module:

http://www.openser.org/docs/modules/1.1.x/avpops.html

Cheers,
Daniel


On 10/10/06 13:56, Ricardo Carvalho wrote:
> To make it clearer, I'll explain a bit more....
> I need to search and store in one avp the contact shown in the 
> "Contact" tag (sip:C at domain) of the following message:
> How may I do that?
>
> ---------------------------------------------------------------------------------------------------- 
>
> SIP/2.0 302 Moved Temporarily
> Via: SIP/2.0/UDP 172.16.100.6:1720;branch=z9hG4bKvaBki3qw8QV4I8Xq
> Record-Route: <sip:172.16.103.243;lr=on;ftag=hB5gzDldOcLwTAA2>
> From: "A" <sip:A at domain>;tag=hB5gzDldOcLwTAA2
> To: "B" <sip:B at domain>;tag=58cd8cb066b7d5da9d52659804d3097c.d466
> Call-ID: SH4l4lACsgizOdKX at 172.16.100.6
> CSeq: 2 INVITE
> User-Agent: Grandstream GXP2000 1.1.0.14
> Contact: sip:C at domain
> Diversion: <sip:B at 172.16.100.13:5066>;reason=unconditional
> Content-Length: 0
> ---------------------------------------------------------------------------------------------------- 
>
>
> Any help, please?
>
> Thanks,
> Ricardo.
>
>
>
>
> Ricardo Carvalho wrote:
>> Is there a way to search and store in a regular expression basis, 
>> some content of some kind of messages in an avp and then store that 
>> content in some table of MySQL database?
>>
>> Thanks,
>> Ricardo.
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>
>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list