[OpenSER-Users] Is it possible to insert avp to reply message?
    Bogdan-Andrei Iancu 
    bogdan at voice-system.ro
       
    Tue Nov  6 14:01:37 CET 2007
    
    
  
Hi Tung,
append_to_reply() applies only for replies locally generated by the 
proxy and not to the relayed replies (received and forwarded). For this 
later case, you have to use the onreply_route() and add the header from 
there.
regards,
bogdan
Tung Tran wrote:
> Hi all,
>  
> I am trying to get some AVP value from radius and insert into the SIP 
> messages. I am OK to get the AVPs from radius but dont know how to 
> insert these values into reply messages ( 200 OK for Register and 
> Invite request). Should someone help which command should be used on 
> this case.
>  
> I tried these commands from route processing REGISTER message, but not 
> sucess yet
>  
> insert_hf("credit-amount: $avp(s:h323-credit-amount)\r\n","SIP-AVP");
> #        avp_pushto("$br","$avp(s:h323-credit-amount)");  
>     append_to_reply("Foo: $avp(s:h323-credit-amount)\r\n");
>  
> Regards,
>  
> Tung
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>   
    
    
More information about the Users
mailing list