Menu

#55 ua_string doesn't allow spaces in string

none
closed-fixed
5
2014-09-26
2011-05-24
No

When you want siproxd to rewrite the User-Agent string, then siproxd doesn't proces the ua_string value properly whenever spaces are in the string.
So, "ua_string = SomeStringWithNoSpaces" works, however "ua_string = Some String With Spaces" doesn't. Using single quotes also doesn't work.

It only reads the first word and then cuts off the string.

Can this be fixed? Or if I'm doing something wrong, could someone pass me the proper method?

Discussion

  • Thomas Ries

    Thomas Ries - 2011-05-24

    This is a known limitation.
    The current implementation of the configuration parser does not yet allow strings that include spaces.
    I'll rise the priority of this item on the todo list.

    /Thomas

     
  • Thomas Ries

    Thomas Ries - 2011-05-24
    • labels: 456643 -->
     
  • Thomas Ries

    Thomas Ries - 2011-06-05
    • labels: --> Runtime/Config
    • assigned_to: nobody --> tries
    • status: open --> open-accepted
     
  • Thomas Ries

    Thomas Ries - 2011-06-05

    Will be fixed in next release (0.8.1).
    The fix is already available in the current snapshot.

     
  • Herman van Drie

    Herman van Drie - 2011-06-05

    Thanks Thomas!
    I will give it a go, thanks!

    Btw, I am using SIP proxy on OpenWRT. I assume it will work on there too?

     
  • Thomas Ries

    Thomas Ries - 2014-09-26
    • status: open-accepted --> closed-fixed
    • Group: --> none
     

Log in to post a comment.