Open sergey-safarov opened 4 years ago
I tried without '', like "sip_invite_domain=2001:4958:4:3132:10:137:20:205", and it works on 1.10.5...
originate {codec_string=PCMU,sip_invite_domain=2001:4958:4:3132:10:137:20:205,dtmf_type=rfc2833}sofia/caller/911@domain.ca &playback(phrase:funny_prompts)
sip_invite_domain needs to wrap the IPv6 address in [] to make it valid, you can't put bare IPv6 addresses here.
I don't know, but on 1.10.5, it still works without []... But if we can make it work with [], then perfect.
_fs_cli -x "originate {codec_string=PCMU,return_ring_ready=false,rtp_info_when_no_2833=false,origination_caller_id_name=a,origination_caller_id_number=+14166666666,sip_invite_domain=2001:4958:4:3132:10:137:20:205,sip_contact_user=emergency-caller,sip_cid_type=none,originate_timeout=30,rtp_liberal_dtmf=true,dtmf_type=rfc2833}sofia/caller/911@emergency.local.ca;fs_path=sip:10.120.27.4:5060 &playback(phrase:funnyprompts)"
INVITE sip:911@emergency.local.ca SIP/2.0
Via: SIP/2.0/UDP 10.120.27.4:5060;branch=z9hG4bK1cbb.c6a41101.0
Via: SIP/2.0/UDP 10.120.27.4:5080;received=10.120.27.4;rport=5080;branch=z9hG4bK3aX5pXKQvrtjc
Max-Forwards: 69
From: "a" <sip:+14166666666@[2001:4958:4:3132:10:137:20:205]>;tag=yQBU0BB35atKc
To: <sip:911@emergency.local.ca>
Call-ID: 6a500f69-9aec-1239-d3b9-005056a9f3f7
CSeq: 27785504 INVITE
Contact: <sip:emergency-caller@10.120.27.4:5060>
User-Agent: FreeSWITCH-mod_sofia/1.10.5-release~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Disposition: session
Content-Length: 1278
X-FS-Support: update_display,send_info
Content-Type: application/sdp
v=0
o=FreeSWITCH 1604649539 1604649540 IN IP4 10.120.27.4
s=FreeSWITCH
c=IN IP4 10.120.27.4
t=0 0
m=audio 29054 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
Two tests above using current master, commit b7b83db66d6d7e60a6a27bc08b7b4ad447c1cd3a.
I am facing similar issue with sofia recover. is there any release corrected the issue ? running FreeSWITCH (Version 1.10.11-release git 8061d77 2024-01-16 22:35:34Z 64bit)
Describe the bug FS cannot send a call when "sip_invite_domain" contains IPv6 address string.
To Reproduce Steps to reproduce the behavior: 1) required to originate a call using command like
Expected behavior The call will send with From header realm defined in
sip_invite_domain
variable.Package version or git hash 1010c6c55c35b9df738c67bc80cb353c873dab76
Trace logs