[Serusers] Append a header field with dynamic data
Daniel-Constantin Mierla
daniel at voice-system.ro
Mon May 23 12:24:13 CEST 2005
Something similar you can achieve with avp_pushto() from avpops module.
But you have to store the string in an AVP. One option you can use is to
load the string form database with avp_db_load().
Daniel
On 05/23/05 12:30, Michael Stier wrote:
> Hi,
>
> I want to append a new header field on a 183 - session progress
> response with dynamic data:
>
> P-hint: dynamic data
>
> The string "dynamic data" e. g. could be generated by an external
> script. Is there any way to reach this inside ser.cfg?
>
> My imagination would be something like this:
>
> if (status=~"183") {
> exec_msg('TEMPSTRING=`cat /tmp/string.txt`');
> append_hf("P-hint: $TEMPSTRING");
> };
>
> Many greetings
> Michael
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
More information about the sr-users
mailing list