[SR-Users] Manually add Via Header

Andreas Granig agranig at sipwise.com
Thu Oct 25 15:27:27 CEST 2012


Hi,

On 10/25/2012 02:51 PM, Olle E. Johansson wrote:
>> Is there a way in kamailio to statelessy forward a request without
>> putting its own Via header into the message? Consider an example where a
>> stateless load-balancer sends a request to a proxy A, which again
>> statelessy forwards it to another proxy B, while it's not interested in
>> staying in the path even for replies. It's not necessary either because
>> the load-balancer, which would receive the replies from B then, can pass
>> them along according to the Via path, so no tm or something is involved.
>>
>> This might break some RFC, but it would remove proxy A completely out of
>> the path once the request got forwarded. In theory this seems possible
>> if it's ensured that both the load-balancer and proxy A act strictly
>> stateless, no?
> From the cookbook on the wiki:
> 
> /O
> 
> send
> 
> Send the original SIP message to a specific destination in stateless mode. No changes are applied to received message, no Via header is added. Host can be an IP or hostname. Used protocol: UDP
> 
> Parameter is mandatory and has string format.
> 
> Example of usage:
> 
>  send("10.10.10.10:5070");

Oh, thanks for the hint! I was always thinking about using forward().
Will double-check send() again!

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121025/8b2c6798/attachment.pgp>


More information about the sr-users mailing list