[SR-Users] Stateless message forwarding with forward() add extra identical Via header.

Ali Shirvani aj.shirvani at gmail.com
Sat Jun 15 15:38:39 CEST 2019


Hi all,

According to this SO question
<https://stackoverflow.com/questions/32519551/kamailio-concurrent-calls-after-forked-invite/32573673#32573673>
I
tried to forward received message to multiple destinations with the
following Lua script. But in the second UA I got duplicate Via header. Here
is the Lua script:

```Lua
KSR.forward_uri("sip:ali at 192.168.1.50:7080;transport=UDP");
KSR.forward_uri("sip:tes at 192.168.1.50:9080;transport=UDP");
```

And here is the received Via headers is `tes` UA:

```
Via: SIP/2.0/UDP
192.168.1.21;branch=z9hG4bKbe8c.953ed42f0bcc438c6991121d3483010b.0
Via: SIP/2.0/UDP
192.168.1.21;branch=z9hG4bKbe8c.953ed42f0bcc438c6991121d3483010b.0
Via: SIP/2.0/UDP 10.189.219.4:5060
;rport=5060;rport=5060;branch=z9hG4bK-4177-1-2
```

Would you please help me to forward message to multiple destination without
duplicate Via headers?

Regards,
Ali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190615/c7e2896f/attachment.html>


More information about the sr-users mailing list