[Users] merging string and pseudo-variable in avp_write

Daniel-Constantin Mierla daniel at voice-system.ro
Wed Nov 22 11:58:11 CET 2006



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 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 Users mailing list