[Serusers] record-route and pstn gateway problem.

Java Rockx javarockx at gmail.com
Wed Mar 23 12:59:03 CET 2005


This should fix that:

route {

   # sanity checks

   if (method!="REGISTER") record_route();

   # all other processing
}

Regards,
Paul

On Wed, 23 Mar 2005 13:15:40 +0800, Jiang zhou <zjiang at sipod.com> 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
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>




More information about the sr-users mailing list