Hi all,
I have the current configuration located on google clod servers:
[Alice a.a.a.a]--->(GCN NAT x.x.x.x)--->(Instance with Kam
10.0.0.1)--->(next proxy 10.0.0.2)
Currently I have configured a fake alias with IP x.x.x.x in Debain and set
listeners this way:
listen=udp:10.0.0.1:5060 advertise x.x.x.x:5060
listen=udp:x.x.x.x:5060
200OK from Kam to Alice:
Via: a.a.a.a
Record-Route: <sip:alias1@10.0.0.2;lr> (used for further internal routing)
Record-Route: <sip:alias2@10.0.0.2;lr>
Record-Route: <sip:x.x.x.x;lr>
Contact: <sip:dnis@x.x.x.x>
ACK recived from Alice with reversed RR:
ACK sip:dnis@x.x.x.x
Via: a.a.a.a
Route: <sip:x.x.x.x;lr>,
<sip:alias2@10.0.0.2;lr>,<sip:alias1@10.0.0.2;lr>
So what Kam does - it goes through loose_route() and dispatches two ACKs to
x.x.x.x (from which I'd like to get rid of) and 10.0.0.2
First one is:
ACK sip:alias1@10.240.0.67
Via: x.x.x.x
Via: a.a.a.a
Route: <sip:x.x.x.x;lr>, <sip:alias2@10.0.0.1;lr>
And the next one:
ACK sip:alias1@10.240.0.67
Via: x.x.x.x
Via: x.x.x.x (Doubles Via)
Via: a.a.a.a
Route: <sip:alias2@10.0.0.1;lr>
So my question is - how to make Kam think that x.x.x.x it's own address and
stop dispatching in-dialog messages to itself? Currently I'm thinking about
chooping off one Route/Record-Route in route[WITHINDLG] tight before
loose_route(). But maybe there's a better way to solve my problem?
Show replies by date