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@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@mydomain1.org", "$serial_fork"); avp_write("sip:$rU@mydomain2.org", "$serial_fork");
where $rU should be parsed. $serial_fork would have a value of e.g. "12632421@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
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@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@mydomain1.org", "$serial_fork"); avp_write("sip:$rU@mydomain2.org", "$serial_fork");
where $rU should be parsed. $serial_fork would have a value of e.g. "12632421@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@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Ah, superb, missed that. Thank you! :-)
On Wed, 22 Nov 2006 09:41:56 +0200 Daniel-Constantin Mierla daniel@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@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@mydomain1.org", "$serial_fork"); avp_write("sip:$rU@mydomain2.org", "$serial_fork");
where $rU should be parsed. $serial_fork would have a value of e.g. "12632421@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@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
On 11/22/06 12:28, Benko wrote:
Ah, superb, missed that. Thank you! :-)
welcome! that remembers me that a merging of similar functions is required there (avp_{copy,write,..}() )
Cheers, Daniel
On Wed, 22 Nov 2006 09:41:56 +0200 Daniel-Constantin Mierla daniel@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@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@mydomain1.org", "$serial_fork"); avp_write("sip:$rU@mydomain2.org", "$serial_fork");
where $rU should be parsed. $serial_fork would have a value of e.g. "12632421@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@openser.org http://openser.org/cgi-bin/mailman/listinfo/users