And please accept my apologies for responding late. I tried modifying the configuration file to do a far-end NAT traversal but this case (wifi to 3G) is still not working.
Registration of UAC Behind WiFi
*******************************
UAC ------> Proxy
-----------------
REGISTER sip:188.227.178.226 SIP/2.0
Via: SIP/2.0/UDP 59.178.140.180:5060;branch=z9hG4bK.MAq2ODF9T;rport
CSeq: 25 REGISTER
Call-ID: GCOzYfxLqw
Max-Forwards: 70
Supported: replaces, outbound
Expires: 3600
User-Agent: LinphoneAndroid/3 (belle-sip/1.3.2)
Authorization: Digest realm="188.227.178.226", nonce="555b738d000137e5140acc6ffeafac33d1aafa6094b3da16", username="181085", uri="sip:188.227.178.226", response="d622655dcae5c6861c05e71533cb445e"
Proxy ------> SIP Server
------------------------
REGISTER sip:188.227.178.226 SIP/2.0
Via: SIP/2.0/UDP 104.222.98.124:7878;branch=z9hG4bKf61e.10e33f9242f9bab1186af8c0d860f197.0
Via: SIP/2.0/UDP 59.178.140.180:5060;received=59.178.140.180;branch=z9hG4bK.MAq2ODF9T;rport=5060
CSeq: 25 REGISTER
Call-ID: GCOzYfxLqw
Max-Forwards: 69
Supported: replaces, outbound
Expires: 3600
User-Agent: LinphoneAndroid/3 (belle-sip/1.3.2)
Authorization: Digest realm="188.227.178.226", nonce="555b738d000137e5140acc6ffeafac33d1aafa6094b3da16", username="181085", uri="sip:188.227.178.226", response="d622655dcae5c6861c05e71533cb445e"
P-hint: outbound
SIP Server ------> Proxy
------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP 104.222.98.124:7878;received=104.222.98.124;rport=7878;branch=z9hG4bKf61e.10e33f9242f9bab1186af8c0d860f197.0
Via: SIP/2.0/UDP 59.178.140.180:5060;received=59.178.140.180;branch=z9hG4bK.MAq2ODF9T;rport=5060
CSeq: 25 REGISTER
Call-ID: GCOzYfxLqw
Server: OpenSIPS (1.8.3-notls (x86_64/linux))
Content-Length: 0
Proxy ------> UAC
-----------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP 59.178.140.180:5060;received=59.178.140.180;branch=z9hG4bK.MAq2ODF9T;rport=5060
CSeq: 25 REGISTER
Call-ID: GCOzYfxLqw
Server: OpenSIPS (1.8.3-notls (x86_64/linux))
Content-Length: 0
Registration of UAC on 3G
*************************
UAC ------> Proxy
-----------------
REGISTER sip:188.227.178.226 SIP/2.0
Via: SIP/2.0/UDP 106.201.89.50:5060;branch=z9hG4bK.TZ8-sBaxi;rport
CSeq: 25 REGISTER
Call-ID: ei4dEgWhzV
Max-Forwards: 70
Supported: replaces, outbound
Expires: 3600
User-Agent: LinphoneAndroid/3 (belle-sip/1.3.2)
Authorization: Digest realm="188.227.178.226", nonce="555b7343000137493797b541c03d370fd95d1c5f1b634449", username="10185", uri="sip:188.227.178.226", response="1e9f404568b1fbded560fafc8714db31"
Proxy ------> SIP Server
------------------------
REGISTER sip:188.227.178.226 SIP/2.0
Via: SIP/2.0/UDP 104.222.98.124:7878;branch=z9hG4bKdf92.7d24b9515de3bb87a736bb7e40cd1923.0
Via: SIP/2.0/UDP 106.201.89.50:5060;received=106.201.89.50;branch=z9hG4bK.TZ8-sBaxi;rport=5060
CSeq: 25 REGISTER
Call-ID: ei4dEgWhzV
Max-Forwards: 69
Supported: replaces, outbound
Expires: 3600
User-Agent: LinphoneAndroid/3 (belle-sip/1.3.2)
Authorization: Digest realm="188.227.178.226", nonce="555b7343000137493797b541c03d370fd95d1c5f1b634449", username="10185", uri="sip:188.227.178.226", response="1e9f404568b1fbded560fafc8714db31"
P-hint: outbound
SIP Server ------> Proxy
------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP 104.222.98.124:7878;received=104.222.98.124;rport=7878;branch=z9hG4bKaf92.109b3a2c233dcc8d0a0adafe734e77d5.0
Via: SIP/2.0/UDP 106.201.89.50:5060;received=106.201.89.50;branch=z9hG4bK.u6mLnvNhh;rport=5060
CSeq: 26 REGISTER
Call-ID: ei4dEgWhzV
Server: OpenSIPS (1.8.3-notls (x86_64/linux))
Content-Length: 0
Proxy ------> UAC
-----------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP 106.201.89.50:5060;received=106.201.89.50;branch=z9hG4bK.u6mLnvNhh;rport=5060
CSeq: 26 REGISTER
Call-ID: ei4dEgWhzV
Server: OpenSIPS (1.8.3-notls (x86_64/linux))
Content-Length: 0
Calling from UAa (wifi) to UAb (3G)
***********************************
UAa ------> Proxy
-----------------
Via: SIP/2.0/UDP 59.178.140.180:5060;branch=z9hG4bK.dii5ugxwb;rport
CSeq: 20 INVITE
Call-ID: 5kP-E1uHL1
Max-Forwards: 70
Route: <sip:104.222.98.124:7878;lr>
Supported: replaces, outbound
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE
Content-Type: application/sdp
Content-Length: 421
User-Agent: LinphoneAndroid/3 (belle-sip/1.3.2)
v=0
o=181085 2051 698 IN IP4 59.178.140.180
s=Talk
c=IN IP4 59.178.140.180
b=AS:380
t=0 0
m=audio 11695 RTP/AVP 124 120 111 110 0 8 101
a=rtpmap:124 opus/48000/2
a=fmtp:124 useinbandfec=1; stereo=0; sprop-stereo=0
a=rtpmap:120 SILK/16000
a=rtpmap:111 speex/16000
a=fmtp:111 vbr=on
a=rtpmap:110 speex/8000
a=fmtp:110 vbr=on
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtcp:7077 IN IP4 192.168.1.2
Proxy ------> SIP Server
------------------------
Record-Route: <sip:104.222.98.124:7878;lr=on;nat=yes>
Via: SIP/2.0/UDP 104.222.98.124:7878;branch=z9hG4bKae74.d03682b95a7f012aaa8cc9e9bc9b14f5.0
Via: SIP/2.0/UDP 59.178.140.180:5060;received=59.178.140.180;branch=z9hG4bK.dii5ugxwb;rport=5060
CSeq: 20 INVITE
Call-ID: 5kP-E1uHL1
Max-Forwards: 69
Supported: replaces, outbound
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE
Content-Type: application/sdp
Content-Length: 421
User-Agent: LinphoneAndroid/3 (belle-sip/1.3.2)
P-hint: outbound
v=0
o=181085 2051 698 IN IP4 104.222.98.124
s=Talk
c=IN IP4 104.222.98.124
b=AS:380
t=0 0
m=audio 19880 RTP/AVP 124 120 111 110 0 8 101
a=rtpmap:124 opus/48000/2
a=fmtp:124 useinbandfec=1; stereo=0; sprop-stereo=0
a=rtpmap:120 SILK/16000
a=rtpmap:111 speex/16000
a=fmtp:111 vbr=on
a=rtpmap:110 speex/8000
a=fmtp:110 vbr=on
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtcp:19881
a=nortpproxy:yes
SIP Server ------> Proxy
------------------------
SIP/2.0 100 Giving a try
Via: SIP/2.0/UDP 104.222.98.124:7878;received=104.222.98.124;rport=7878;branch=z9hG4bKbe74.a7aaf30744452fb8d6e4a007c5454b22.0
Via: SIP/2.0/UDP 59.178.140.180:5060;received=59.178.140.180;branch=z9hG4bK.xKUkXp0dg;rport=5060
CSeq: 21 INVITE
Call-ID: 5kP-E1uHL1
Server: OpenSIPS (1.8.3-notls (x86_64/linux))
Content-Length: 0
SIP Server ------> UAb
----------------------
Record-Route: <sip:188.227.178.226;lr;did=b63.3b918bd2>
Record-Route: <sip:104.222.98.124:7878;lr=on;nat=yes>
Via: SIP/2.0/UDP 188.227.178.226:5060;branch=z9hG4bKbe74.e083e367.0
Via: SIP/2.0/UDP 104.222.98.124:7878;rport=7878;received=104.222.98.124;branch=z9hG4bKbe74.a7aaf30744452fb8d6e4a007c5454b22.0
Via: SIP/2.0/UDP 59.178.140.180:5060;received=59.178.140.180;branch=z9hG4bK.xKUkXp0dg;rport=5060
CSeq: 21 INVITE
Call-ID: 5kP-E1uHL1
Max-Forwards: 68
Supported: replaces, outbound
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE
Content-Type: application/sdp
Content-Length: 421
User-Agent: LinphoneAndroid/3 (belle-sip/1.3.2)
P-hint: outbound
v=0
o=181085 2051 698 IN IP4 104.222.98.124
s=Talk
c=IN IP4 104.222.98.124
b=AS:380
t=0 0
m=audio 10326 RTP/AVP 124 120 111 110 0 8 101
a=rtpmap:124 opus/48000/2
a=fmtp:124 useinbandfec=1; stereo=0; sprop-stereo=0
a=rtpmap:120 SILK/16000
a=rtpmap:111 speex/16000
a=fmtp:111 vbr=on
a=rtpmap:110 speex/8000
a=fmtp:110 vbr=on
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtcp:10327
a=nortpproxy:yes
Finally,
SIP Server ------> Proxy
------------------------
SIP/2.0 408 Request Timeout
Via: SIP/2.0/UDP 104.222.98.124:7878;received=104.222.98.124;rport=7878;branch=z9hG4bKbe74.a7aaf30744452fb8d6e4a007c5454b22.0
Via: SIP/2.0/UDP 59.178.140.180:5060;received=59.178.140.180;branch=z9hG4bK.xKUkXp0dg;rport=5060
CSeq: 21 INVITE
Call-ID: 5kP-E1uHL1
Server: OpenSIPS (1.8.3-notls (x86_64/linux))
Content-Length: 0
Kindly guide me to resolve this part, I am attaching the kamailio.cfg file herewith.