[OpenSIPS-Users] uac_replace_from not restoring displayname

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Jul 9 20:04:36 CEST 2010


Hi Erik,

For original INVITE:

 
    create_dialog();
    $dlg_val(org_display) = $fn;
    uac_replace_from(....);


For sequential requests, after doing loose_route, do:
    if ( $DLG_status!=NULL &&  $dlg_val(org_display)!=NULL )
             uac_replace_from("$dlg_val(org_display)","");


Regards,
Bogdan

Erik Versaevel - InfoPact Netwerkdiensten wrote:
> Hi bogdan,
>
> a config snippet would be appreciated, i am using the dialog module at the moment to limit concurrent calls
>
> Regards,
>
> Erik
>
>
> Op 8-7-2010 11:19, Bogdan-Andrei Iancu schreef:
>   
>> AVPs are not dialog persistent, but you can use dialog module with 
>> dialog persistent vars to store the displayname from the original INVITE 
>> and apply it in all sequential requests.
>>
>> If you are not familiar with how to use the dialog support, just let me 
>> know.
>>
>> Regards,
>> Bogdan
>>
>> Erik Versaevel - InfoPact Netwerkdiensten wrote:
>>     
>>> Hi Bogdan,
>>>
>>> Hmm, that would be just as confusing i think, i might be able to pull it off by storing the original displayname in an AVP ?
>>>
>>> Regards,
>>>
>>> Erik
>>>
>>>
>>> Op 8-7-2010 9:55, Bogdan-Andrei Iancu schreef:
>>>   
>>>       
>>>> Hi Erik,
>>>>
>>>> by design, the display name is not restored at all as it is not relevant 
>>>> from SIP point of view in the sequential requests. To avoid confusions, 
>>>> a simple hack I do in script, is, for sequential requests, to completely 
>>>> remove the display name part (also with uac_replace_from).
>>>>
>>>> Regards,
>>>> Bogdan
>>>>
>>>> E. Versaevel wrote:
>>>>     
>>>>         
>>>>> Hi all,
>>>>>
>>>>> Is there a reason why uac_replace_from() is not restoring the displayname back to the sipclient?
>>>>>
>>>>> i'm doing a uac_replace_from() to mange the displayname/uri so my asterisk machine wil use the correct
>>>>> sip peer, however packages back to the sipclient only have their URI restored and keep the displayname set with the uac_replace_from()
>>>>> Is this expected behaviour? It's confusing for both me and the end users because you suddenly recieve packages with another displayname.
>>>>>
>>>>> Kind regards,
>>>>>
>>>>> Erik
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opensips.org
>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>>   
>>>>>       
>>>>>           
>>>>     
>>>>         
>>>
>>> Erik Versaevel
>>>
>>>   
>>>       
>>     
>
>
>
> Erik Versaevel
>
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro




More information about the Users mailing list