wrong record-route while adding another record route .
``
Record-Route:
<sip:2600:1F1C:74E:E100:E89F:BEB1:10AF:1CB1:5060;transport=tcp;r2=on;lr=on;ftag=V4Zw5Cjy7MeoxT-YKzAqq0bejH2jMVbe;did=8a9.3ae2>
### Possible Solutions
``
<!--
we need to add [] around the record route on relay to gateway
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
root@ip-172-31-0-35:/usr/local/src/kamailio/src/modules# kamailio -version
version: kamailio 5.0.4 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST,
DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC,
DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024,
BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 05:47:18 Oct 31 2017 with unknown
```
* **Operating System**:
<!--
root@ip-172-31-0-35:/usr/local/src/kamailio/src/modules# uname -a
Linux ip-172-31-0-35 4.4.0-1022-aws #31-Ubuntu SMP Tue Jun 27 11:27:55 UTC 2017 x86_64
x86_64 x86_64 GNU/Linux
-->
```
------------------------------------------------------------------------
INVITE sip:+919967609476ipv6-phone.voice.plivodev.com@ms.voice.plivodev.com:5060
SIP/2.0
Record-Route:
<sip:2600:1F1C:74E:E100:E89F:BEB1:10AF:1CB1:5060;transport=tcp;r2=on;lr=on;ftag=V4Zw5Cjy7MeoxT-YKzAqq0bejH2jMVbe;did=8a9.3ae2>
Record-Route:
<sip:[2600:1F1C:74E:E100:E89F:BEB1:10AF:1CB1]:5061;transport=tls;r2=on;lr=on;ftag=V4Zw5Cjy7MeoxT-YKzAqq0bejH2jMVbe;did=8a9.3ae2>
Via: SIP/2.0/TCP
[2600:1F1C:74E:E100:E89F:BEB1:10AF:1CB1]:5060;branch=z9hG4bKf213.7fbb49d8d95b8d23065d4f15e2cc852e.0;i=1
Via: SIP/2.0/TLS
[2001:FD0:3200:174:A590:5860:61F5:384B]:50085;received=2001:FD0:3200:174:A590:5860:61F5:384B;rport=50085;branch=z9hG4bKPjhuMfZXOwOBBco.KIFMjJGDEKUlNL6H5l;alias
Max-Forwards: 69
From:
sip:snsone170720062259@ipv6-phone.voice.plivodev.com;tag=V4Zw5Cjy7MeoxT-YKzAqq0bejH2jMVbe
To: sip:+919967609476ipv6-phone.voice.plivodev.com@ipv6-phone.voice.plivodev.com
Contact:
<sip:snsone170720062259@[2001:fd0:3200:174:a590:5860:61f5:384b]:50085;transport=TLS;app_id=30eb1c5ce0951e0a3cbb9d1b6ecf5c03a51b8a9f5eaf78c905edfa239a769471;ob>
Call-ID: fI3AeG7mpYKJ9cxL-bIAnEkcBjh9I.gz
CSeq: 2732 INVITE
Route: <sip:ipv6-phone.voice.plivodev.com;transport=tls;lr>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER,
MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1313