Hello,
append_branch() is setting only request uri (r-uri) for the extra
branch. If you need to set also outbound proxy (dst uri), use the
sbranch function:
-
https://www.kamailio.org/docs/modules/stable/modules/pv.html#pv.f.sbranch_a…
Cheers,
Daniel
On 08.09.17 08:52, Aidar Kamalov wrote:
Hello!
I have a simple route
route[HUNT] {
$ru = "sip:34200@172.16.3.7:5060
<http://sip:34200@172.16.3.7:5060>";
append_branch("sip:34201@192.168.2.71
<mailto:sip%3A34201@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 <http://192.168.10.54:5060> -> 192.168.10.47:5060
<http://192.168.10.47:5060>
INVITE sip:34200@172.16.3.7:5060 <http://sip:34200@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@192.168.10.54
<mailto:sip%3A53003@192.168.10.54>>;tag=1dc09a643aa66d85o0.
To: <sip:1111@192.168.10.54 <mailto:sip%3A1111@192.168.10.54>>.
Call-ID: 7c5b5710-57b4f8c9(a)172.16.3.4
<mailto:7c5b5710-57b4f8c9@172.16.3.4>.
U 192.168.10.54:5060 <http://192.168.10.54:5060> -> 192.168.2.71:5060
<http://192.168.2.71:5060>
INVITE sip:34201@192.168.2.71 <mailto:sip%3A34201@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@192.168.10.54
<mailto:sip%3A53003@192.168.10.54>>;tag=1dc09a643aa66d85o0.
To: <sip:1111@192.168.10.54 <mailto:sip%3A1111@192.168.10.54>>.
Call-ID: 7c5b5710-57b4f8c9(a)172.16.3.4
<mailto:7c5b5710-57b4f8c9@172.16.3.4>.
--
Aydar A. Kamalov
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio Advanced Training -
www.asipto.com
Kamailio World Conference -
www.kamailioworld.com