[Freeswitch-users] Malformed From, fix your code!

Tihomir Culjaga tculjaga at gmail.com
Thu Jan 19 17:07:43 MSK 2017


hi,


does anyone experience the same issue ?
im running FreeSWITCH Version 1.6.14+git~20170112T174802Z~a8d53fdd79~64bit
(git a8d53fd 2017-01-12 17:48:02Z 64bit)



im trying to originate a call like this:

bgapi originate [origination_caller_id_number=1234]sofia/internal/
1002 at 192.168.254.168 &echo()


it looks like FS brakes the from header ... pls note the extra space
between the IP address and the closing ">"


   ------------------------------------------------------------------------
send 1009 bytes to udp/[192.168.254.168]:5060 at 15:02:13.408606:
   ------------------------------------------------------------------------
   INVITE sip:1002 at 192.168.254.168 SIP/2.0
   Via: SIP/2.0/UDP 192.168.254.73;rport;branch=z9hG4bKHr6ea76mt53QQ
   Max-Forwards: 70
   From: "" <sip:1234 at 192.168.254.73 >;tag=Q0SvF26gNteKa
   To: <sip:1002 at 192.168.254.168>
   Call-ID: a588ad14-58f2-1235-07b5-525400e95788
   CSeq: 102081187 INVITE
   Contact: <sip:mod_sofia at 192.168.254.73 :5060>
   User-Agent:
FreeSWITCH-mod_sofia/1.6.14+git~20170112T174802Z~a8d53fdd79~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: 224
   X-FS-Support: update_display,send_info
   Remote-Party-ID: <sip:1234 at 192.168.254.73
>;party=calling;screen=yes;privacy=off

   v=0
   o=FreeSWITCH 1484806170 1484806171 IN IP4 192.168.254.73
   s=FreeSWITCH
   c=IN IP4 192.168.254.73
   t=0 0
   m=audio 28332 RTP/AVP 8 101
   a=rtpmap:8 PCMA/8000
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-16
   a=ptime:20
   ------------------------------------------------------------------------
recv 286 bytes from udp/[192.168.254.168]:5060 at 15:02:13.427078:
   ------------------------------------------------------------------------
   SIP/2.0 400 Malformed From, fix your code!
   Via: SIP/2.0/UDP 192.168.254.73;rport=5060;branch=z9hG4bKHr6ea76mt53QQ
   To: <sip:1002 at 192.168.254.168>;tag=c8797354
   From: <sip:1234 at 192.168.254.73>
   Call-ID: a588ad14-58f2-1235-07b5-525400e95788
   CSeq: 102081187 INVITE
   Content-Length: 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170119/524828b1/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list