[Freeswitch-users] Sofia recover and wrong Sip fields when sending re-invite
Grygoriy Dobrovolskyy
megahohol at gmail.com
Thu Jun 21 16:04:15 MSD 2012
Hello list
I was able to setup HA cluster with two FS boxes, and if my primary crashed
sofia recover is triggered on the second box. However i have noticed that
second FS box sending the Re-Invite incorrectly.
My FS boxes setup is extremely simple, when i receive a call i forward it
to the Opensips proxy, so i use bridge like this: (public dialplan)
<condition field="${sip_to_user}" expression="(123456789).*$"
break="never">
<action inline="true" application="eval" data="URI=${sip_to_user}"/>
<action application="set" data="domain_name=$${domain}"/>
<action application="bridge"
data="{absolute_codec_string=PCMA}sofia/internal/987654333 at 17.2.128.75"/>
</condition>
So what FS does, its sends the INVITE to the opensips like this: (stripped)
INVITE sip:987654333 at 17.2.128.75 SIP/2.0
Via: SIP/2.0/UDP 17.2.128.147;rport;branch=z9hG4bK5N320Bvar00ZN
Max-Forwards: 68
From: "Grigoriy Dobrovolskyy" <sip:33811740 at 17.2.128.147>;tag=3jNgatZH4D92Q
To: <sip:987654333 at 17.2.128.75>
------stripped-----------
The call is answerred, and all is going fine, i crash this box and trigger
box2 to reinvite the call, FS2 gets the same ip and send Re-Invite like
this:
INVITE sip:17.2.128.75:5060;transport=udp SIP/2.0
Via: SIP/2.0/UDP 17.2.128.75;branch=z9hG4bK62a7.6041d237.0;rport
Max-Forwards: 68
From: <sip:987654333 at 17.2.128.75>;tag=B2B.511.202
To: Grigoriy Dobrovolskyy <sip:33811740 at 17.2.128.147>;tag=3jNgatZH4D92Q
Notice the FROM and To field, we are sending the invite to a proxy, from
this proxy, this has no sence, it should be:
From: Grigoriy Dobrovolskyy <sip:33811740 at 17.2.128.147>;tag=3jNgatZH4D92Q
To: <sip:987654333 at 17.2.128.75>;tag=B2B.511.202
Is there any way i can fix this with some kind of param ?
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120621/d8167ce1/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list