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.
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@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@domain;tag=hB5gzDldOcLwTAA2 To: "B" sip:B@domain;tag=58cd8cb066b7d5da9d52659804d3097c.d466 Call-ID: SH4l4lACsgizOdKX@172.16.100.6 CSeq: 2 INVITE User-Agent: Grandstream GXP2000 1.1.0.14 Contact: sip:C@domain Diversion: sip:B@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.
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@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@domain;tag=hB5gzDldOcLwTAA2 To: "B" sip:B@domain;tag=58cd8cb066b7d5da9d52659804d3097c.d466 Call-ID: SH4l4lACsgizOdKX@172.16.100.6 CSeq: 2 INVITE User-Agent: Grandstream GXP2000 1.1.0.14 Contact: sip:C@domain Diversion: sip:B@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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers