[OpenSIPS-Users] mi_xmlrpc - Display name in From header

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Jan 26 09:24:24 CET 2010


Hi Chris,

That is correct according to SIP grammar, but just to look "good" I made 
a new change to fix add the space - please update again from SVN.

Regards,
Bogdan

Chris Maciejewski wrote:
> Hi Bogdan,
>
> Just tested patch from SVN and it works for me now.
>
> There is only small issue. It now removes space between display name
> and URI part, so for example:
>
> From: "Test User" <sip:test at example.com>;
>
> becomes:
>
> From: "Test User"<sip:test at example.com>;
>
> Best regards,
> Chris
>
> 2010/1/25 Bogdan-Andrei Iancu <bogdan at voice-system.ro>:
>   
>> Hi Chris,
>>
>> Found the problem and fixed it. Please updated from SVN and give it a try.
>>
>> Regards,
>> Bogdan
>>
>> Chris Maciejewski wrote:
>>     
>>> Hi Bogdan,
>>>
>>> Thanks for your help.
>>>
>>> XML MI command attached.
>>>
>>> Please let me know if I can help somehow in fixing this issue (testing
>>> patches etc.)
>>>
>>> Best regards,
>>> Chris
>>>
>>> 2010/1/15 Bogdan-Andrei Iancu <bogdan at voice-system.ro>
>>>
>>>       
>>>> Hi Chris,
>>>>
>>>> It seams that the t_uac MI function fails to properly detect the display
>>>> name and adds an extra pare of angle brackets...Could you send the
>>>> complete MI command you are using - I will try to reproduce and debug this.
>>>>
>>>> Thanks & Regards,
>>>> Bogdan
>>>>
>>>> Chris Maciejewski wrote:
>>>>
>>>>         
>>>>> Hi,
>>>>>
>>>>> I am trying to include "display name" in a From header (ie. 'From:
>>>>> "Test User" <sip:test at example.com>'), when sending local messages with
>>>>> mi_xmlrpc (openSIPs 1.5.3).
>>>>>
>>>>> Already tried many options, but I always end up with 'From: <"Test
>>>>> User" <sip:test at example.com>>' which obviously fails.
>>>>>
>>>>> My XML headers parameter:
>>>>> ...
>>>>>  <param>
>>>>>   <value>
>>>>>    <string>From: Test User &#60;sip:test at example.com&#62;&#13;&#10;To:
>>>>> &#60;sip:10001 at example.com&#62;&#13;&#10;Content-Type: text/html;
>>>>> charset=utf-8&#13;&#10;</string>
>>>>>   </value>
>>>>>  </param>
>>>>> ....
>>>>>
>>>>> Results in the following SIP packet:
>>>>>
>>>>> MESSAGE sip:10001 at example.com SIP/2.0.
>>>>> Via: SIP/2.0/UDP 10.10.10.1:5065;branch=z9hG4bK40b7.e646756.0.
>>>>> To: <sip:10001 at example.com>.
>>>>> From: <Test User
>>>>> <sip:test at example.com>>;tag=a6eba7f2b7ff5072ce4465fa3b4415e6-e309.
>>>>> ....
>>>>>
>>>>> Any suggestions how to solve this issue very much appreciated.
>>>>>
>>>>> Kind regards,
>>>>> Chris
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opensips.org
>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list