Re: [SR-Users] Garbage in to field

2018-05-07 Thread Daniel-Constantin Mierla
Hello,

this is somehow by design from early days of the application (2001-2003)
for speed purposes (at that time such optimizations matter for high
capacity) and it got propagated over the time.

More about it can be found in FAQ (I extended right now with a bit more
details about this specific case):

  -
https://www.kamailio.org/wiki/tutorials/faq/main#how_to_set_different_header_va

Cheers,
Daniel

On 08.05.18 01:11, Kjeld Flarup wrote:
> I'm having problems with my To field.
>
> I'm doing an async_route, and afterwards sends the call with auth to a
> SIP server.
>
> My problem is that in the first invite I see the expected To field
> sip:004520202...@isp.com
>
> But when the Auto is send the To field is changed to the, To field for
> the PBX
> sip:1234@pbx.local
>
>
> I tried to fix this with uac_replace_to("$ru"), but that ends up in
> this To field:
> sip:004520202020@isp.comsip:004520202...@isp.com
>
> It seems like uac_replace_to sometimes appends rather that replaces.
> If I run it twice, then it for sure appends. Is this expected behaviour.
>
>
>

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Garbage in to field

2018-05-07 Thread Kjeld Flarup

I'm having problems with my To field.

I'm doing an async_route, and afterwards sends the call with auth to a 
SIP server.


My problem is that in the first invite I see the expected To field
sip:004520202...@isp.com

But when the Auto is send the To field is changed to the, To field for 
the PBX

sip:1234@pbx.local


I tried to fix this with uac_replace_to("$ru"), but that ends up in this 
To field:

sip:004520202020@isp.comsip:004520202...@isp.com

It seems like uac_replace_to sometimes appends rather that replaces.
If I run it twice, then it for sure appends. Is this expected behaviour.



--
 Med Liberalistiske Hilsner --
   Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
   Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
   Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users