freeswitch@default> sofia status gateway SIP_M200 ================================================================================================= Name SIP_M200 Profile external Scheme Digest Realm 172.30.0.2 Username USERNAME_STRING Password yes *From <sip:USERNAME_STRING@172.30.0.2>* Contact <sip:gw+SIP_M200@172.30.0.1:5080;transport=udp;gw=SIP_M200> Exten USERNAME_STRING *To sip:USERNAME_STRING@172.30.0.2* Proxy sip:172.30.0.2 Context public Expires 3600 Freq 3600 Ping 1354199070 PingFreq 5 PingState -1/-1/1 State NOREG *Status DOWN (ping)* CallsIN 0 CallsOUT 0 FailedCallsIN 0 FailedCallsOUT 0 ================================================================================================= freeswitch@default> but the remote UA accepts Thu Nov 29 18:27:16 2012 RECEIVE 15:5060 <-- 172.30.0.1:5080 OPTIONS sip:172.30.0.2;transport=udp SIP/2.0 Via: SIP/2.0/UDP 172.30.0.1:5080;rport;branch=z9hG4bKv39BcX339a2ZK Max-Forwards: 70 *From: <sip:172.30.0.2>;tag=H7jt6HH1p05cg To: <sip:172.30.0.2>* Call-ID: acb53903-b4d3-1230-60ac-00d0b7ded66a CSeq: 36762086 OPTIONS User-Agent: FreeSWITCH-mod_sofia/1.2.3+git~20120920T220849Z~f718a5e8e6 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY Supported: timer, precondition, path, replaces Allow-Events: talk, hold, conference, refer Content-Length: 0 Vladislav 29.11.2012 17:12, Mimiko пишет:
On 29.11.2012 14:56, "Гришин В.С." wrote:
*From: <sip:172.30.0.2>;tag=BZN3H5ZBpm8gQ <----in this string no username To: <sip:172.30.0.2> <---- and in this string no username*
it is necessary to make as
From: "USERNAME_STRING" <sip:USERNAME_STRING@172.30.0.1>;tag=9DcB7gSNZZ41j You have to use <action application="set" data="effective_caller_id_name=USERNAME_STRING"/> <action application="set" data="effective_caller_id_number=USERNAME_STRING"/>
in dialplan before bridging, or in users directory profile.