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

Tihomir Culjaga tculjaga at gmail.com
Thu Jan 19 21:45:03 MSK 2017


crap!

shame on me:

# fgrep "192.168.254.73" * -R
sip_profiles/internal.xml:    <param name="rtp-ip" value="192.168.254.73 "/>
sip_profiles/internal.xml:    <param name="sip-ip" value="192.168.254.73 "/>

thanks!



On 19 January 2017 at 17:01, Michael Jerris <mike at jerris.com> wrote:

> grep your configs for that ip address.  Sounds like you have it somewhere
> with a space after it.
>
> On Jan 19, 2017, at 9:07 AM, Tihomir Culjaga <tculjaga at gmail.com> wrote:
>
> 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
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170119/d7bb2496/attachment.html 


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