[Serusers] Re: store in DB some searched content present in messages

Greger V. Teigre greger at teigre.com
Tue Oct 10 21:38:29 CEST 2006


avp_write("$Contact","s:mycontact");
avp_db_write etc
g-)

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.
>>
>>
>>
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>



More information about the sr-users mailing list