[Users] merging string and pseudo-variable in avp_write

Benko benkokakao at gmail.com
Wed Nov 22 11:28:18 CET 2006


Ah, superb, missed that. Thank you! :-)


On Wed, 22 Nov 2006 09:41:56 +0200
Daniel-Constantin Mierla <daniel at voice-system.ro> wrote:

> Hello,
> 
> you have to use avp_printf() for that ...
> 
> http://openser.org/docs/modules/1.1.x/avpops.html#AEN485
> 
> Cheers,
> Daniel
> 
> 
> On 11/20/06 17:55, Benko wrote:
> > Hello!
> >
> > I'd like to implement an avpops serial forking solution as
> > described in
> > http://www.voice-sistem.ro/docs/avpops/ar01s08.html#ex_serial_forking
> >
> > However, i would like to define the adresses as "$rU at mydomain.org".
> > What is the correct syntax to merge the string and the variable in
> > avp_write? I would like to do something like this:
> >
> > avp_write("sip:$rU at mydomain1.org", "$serial_fork");
> > avp_write("sip:$rU at mydomain2.org", "$serial_fork");
> >
> > where $rU should be parsed. $serial_fork would have a value of e.g.
> > "12632421 at mydomain1.org" then. Or does this not work at all? How
> > else could i define it?
> >
> > Can someone point me to a fundamental doc where the
> > openser.cfg-syntax is described? My well-tried trial-and-error
> > method doesn't seem to work here...
> >
> > thx
> > Christian
> >
> > _______________________________________________
> > Users mailing list
> > Users at openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/users
> >
> >   




More information about the sr-users mailing list