[SR-Users] append_branch + dispatcher

Aidar Kamalov aidar.kamalov at gmail.com
Fri Sep 8 08:52:08 CEST 2017


Hello!

I have a simple route
route[HUNT] {
    $ru = "sip:34200 at 172.16.3.7:5060";
    append_branch("sip:34201 at 192.168.2.71");
}
172.16.3.7 and 192.168.2.71 ip phones
192.168.10.54 is kamailio
192.168.10.47 is asterisk

If I called to this route kamailio will call to 34200 through dispatcher
via asterisk. But branch going directly to the ip phone.
Is it possible to call all branches through dispatcher and asterisks?

U 192.168.10.54:5060 -> 192.168.10.47:5060
INVITE sip:34200 at 172.16.3.7:5060 SIP/2.0.
Record-Route: <sip:192.168.10.54;lr=on;ftag=1dc09a643aa66d85o0;did=12f.336>.
Via: SIP/2.0/UDP
192.168.10.54;branch=z9hG4bK2fd3.b2bbf3cfc7962b4cb7a1c6a174668c0d.0.
Via: SIP/2.0/UDP 172.16.3.4:5060;branch=z9hG4bK-8b2e7bed.
From: ".............. .......... ................" <sip:53003 at 192.168.10.54
>;tag=1dc09a643aa66d85o0.
To: <sip:1111 at 192.168.10.54>.
Call-ID: 7c5b5710-57b4f8c9 at 172.16.3.4.


U 192.168.10.54:5060 -> 192.168.2.71:5060
INVITE sip:34201 at 192.168.2.71 SIP/2.0.
Record-Route: <sip:192.168.10.54;lr=on;ftag=1dc09a643aa66d85o0;did=12f.336>.
Via: SIP/2.0/UDP
192.168.10.54;branch=z9hG4bK2fd3.b2bbf3cfc7962b4cb7a1c6a174668c0d.1.
Via: SIP/2.0/UDP 172.16.3.4:5060;branch=z9hG4bK-8b2e7bed.
From: ".............. .......... ................" <sip:53003 at 192.168.10.54
>;tag=1dc09a643aa66d85o0.
To: <sip:1111 at 192.168.10.54>.
Call-ID: 7c5b5710-57b4f8c9 at 172.16.3.4.



-- 
Aydar A. Kamalov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170908/201805d4/attachment.html>


More information about the sr-users mailing list