[Serusers] reinvite problem...

Natambu Obleton nobleton at fasttrackcomm.net
Mon Dec 11 20:02:26 CET 2006


After a crap load of tracing and putting log(“I am here\n”) all over the
config file I think I may of gotten it working?

 

I started with the gettingstarted gw-pstn.cfg file and made this change


 

I edited my onreply route[1] to setflag(6)..

 

onreply_route[1] {

        log("******************************ONREPLY ROUTE[1]\n");

 

Added:        if (!search("^Contact:[ ]*\*") && client_nat_test("7")) {

Added:                log("******************************ONREPLY ROUTE[1]
set_flag\n");

Added:                        setflag(6);

Added:        }

 

        if ((isflagset(6) || isflagset(7)) &&

            (status=~"(180)|(183)|2[0-9][0-9]")) {

 

                log("******************************ONREPLY ROUTE[1]
flag_set\n");

                if (!search("^Content-Length:[ ]*0")) {

                        use_media_proxy();

                        log("******************************ONREPLY ROUTE[1]
use_media_proxy\n");

                };

        };

 

        if (client_nat_test("1")) {

                log("******************************ONREPLY ROUTE[1]
fix_nated_contact\n");

                fix_nated_contact();

        };

}

 

 

Natambu Obleton

Network Engineer

FastTrack Communications

nobleton at fasttrackcomm.net

(970) 247-3366 office

(970) 247-2426 fax

 

  _____  

From: serusers-bounces at lists.iptel.org
[mailto:serusers-bounces at lists.iptel.org] On Behalf Of Natambu Obleton
Sent: Monday, December 11, 2006 10:19 AM
To: serusers at iptel.org
Subject: [Serusers] reinvite problem...

 

Ok. I have SER working with mediaproxy and it rewrites the requests to goto
the Mediaproxy server as it should, but after a call has been up for a bit..
it gets another invite from my PSTN gateway and when this invite comes
through it doesn’t rewrite the media addresses why?

 

My config:

http://laplata.fasttrackcomm.net/ser_cfg.txthttp://laplata.fasttrackcomm.net
/ser_cfg.txt
<http://laplata.fasttrackcomm.net/ser_cfg.txthttp:/laplata.fasttrackcomm.net
/ser_cfg.txt> 

 

 

My transaction log:

http://laplata.fasttrackcomm.net/translog.txt

 

About ¾’s of the way down you will see where 206.123.213.84 sends another
invite for the call and SER doesn’t change the media information on it.
Thanks for your help.     

 

Natambu Obleton

Network Engineer

FastTrack Communications

nobleton at fasttrackcomm.net

(970) 247-3366 office

(970) 247-2426 fax

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20061211/2ef85ac3/attachment.htm>


More information about the sr-users mailing list