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@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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers