[Serusers] forward breaks URI rewrite?

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Aug 31 15:32:26 CEST 2005


On Aug 29, 2005 at 17:02, Chris Roberts <croberts at bongle.co.uk> wrote:
> Heya,
> 
> This might be an obvious answer, but when I forward a packet to another box
> using the forward() method, this seems to break the URI?
>         rewriteuri("sip:test at test.co.uk");
>         forward(x.x.x.x, 5060);
> 
> Now on my asterisk box and looking at ngrep, the test at test.co.uk has
> disappeared, and asterisk takes the SIPDOMAIN as 'x.x.x.x', rather than
> 'test.com'.

The message should have the rewritten uri: sip:test at test.co.uk.

> 
> Is this the desired behaviour? Is there a way to do what I want to do? I
> need to be able to pick out the original SIPDOMAIN in asterisk even after
> the packet has been forwarded by SER. People seem to have talked about doing
> this, but I'm not sure how I can forward it without obliterating the URI.

Could you send some network dumps and the config (maybe you are
rewriting the uri to x.x.x.x in some other place)?


Andrei




More information about the sr-users mailing list