[Serusers] Re: record-route and pstn gateway problem.
Marian Dumitru
marian.dumitru at voice-sistem.ro
Wed Mar 23 13:25:45 CET 2005
Hi Jiang,
Be sure you record_route() also to calls forwarded to GW - add the
record_route() before the forward().
Also don't forget to do loose_route() in your script for requests within
the dialog.
Best regards,
Marian
Jiang zhou wrote:
> Hi,all
>
> I have a record route problem:
>
> sip client===>ser====>(pstn)gateway
>
> invite: client---->ser---->gw
> ring and 200ok : gw--->ser--->client
> ack : client--------------->gw
>
> I use forward command forward pstn call to gateway.
> if (uri=~"^sip:9817") {
> rewritehost("xxx.xxx.xxx.xxx");
> forward(xxx.xxx.xxx.xxx,5060);
> break;
> }
>
> There is no record-route field in the 200ok packet. So client forward to gw
> directly.
> But when sip client call each other ser insert record-route field. Can
> someone tell me
> how to config forward command with record-route supported?
>
> Jiangzhou
> Best Regards
>
>
>
--
Voice System
http://www.voice-system.ro
More information about the sr-users
mailing list