I am having a problem with my trunk provider. They are telling me that I am sending invalid data in the FROM field in my INVITEs.
send 1105 bytes to udp/[190.210.242.212]:5060 at 20:08:19.303853:
------------------------------------------------------------------------
Via: SIP/2.0/UDP 201.216.208.162;rport;branch=z9hG4bKaUty18S0r7rHH
Max-Forwards: 70
From: "Caller Name" <sip:1144444444@190.210.242.212>;tag=cUHKHN7pQBKUS
Call-ID: 0f230991-bd37-1236-769b-1cc1de7988ec
CSeq: 121667185 INVITE
Contact: <sip:1144444444@201.216.208.162:5060;transport=udp;gw=iplan4>
User-Agent: FreeSWITCH-mod_sofia/1.8.0+git~20160928T221047Z~b8c65fb455~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 226
X-FS-Support: update_display,send_info
v=0
o=FreeSWITCH 1523985303 1523985304 IN IP4 201.216.208.162
s=FreeSWITCH
c=IN IP4 201.216.208.162
t=0 0
m=audio 21196 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
They object to the FROM DOMAIN (
190.210.242.212) being equal to the TO domain.
These are one legged calls, and my gateway configuration looks like this:
<include>
<gateway name="iplan4">
<param name="username" value="1144444444"/>
<param name="realm" value="190.210.242.212"/>
<param name="from_user" value="1143211234"/>
<param name="from_domain" value="201.216.208.162"/>
<param name="password" value="ninguna"/>
<param name="extension" value="1144444444"/>
<param name="extension-in-contact" value="true"/>
<param name="proxy" value="190.210.242.212"/>
<param name="rfc2833-pt" value="101"/>
<param name="dtmf-type" value="rfc2833"/>
<param name="liberal-dtmf" value="false"/>
<param name="apply-inbound-acl" value="iPlan"/>
<param name="accept-blind-auth" value="true"/>
<param name="register" value="false"/>
<param name="register-transport" value="udp"/>
<param name="retry-seconds" value="30"/>
</gateway>
</include>
FS is not honoring this line:
<param name="from_domain" value="201.216.208.162"/> and is instead using the proxy value in the FROM field.
How do I configure the gateway to use my public IP (
201.216.208.162) in the FROM field?
BTW, it is also not honoring the
<param name="from_user" value="1143211234"/> line.
Thanks,
Guillermo
--
Guillermo Ruiz Camauer