I think you should move the line
if (method=="BYE") setflag(1);
To __before__ the loose_route() statement. It's possible that not all BYE messages will be loose routed.
Regards, Paul
On Wed, 16 Mar 2005 19:39:23 +0200, Pavel Siderov - Hostmates pi@hostmates.com wrote:
Attaching my ser.cfg (with little changes - the ips)
Regards, Steve
----- Original Message ----- From: "Java Rockx" javarockx@gmail.com To: "braincrew.com" somebody@braincrew.com Cc: serusers@lists.iptel.org Sent: Wednesday, March 16, 2005 7:11 PM Subject: Re: [Serusers] using sipsak to send a BYE
My problems last week regarding missing BYE messages at our PSTN GW were due to a bug in my loose_route() logic. Basically I was doing naughty things if loose_route() was TRUE, when I should have only been using t_relay().
In your case I'd say make sure you have the accounting flag set when you receive a BYE or CANCEL message. You can set this flag immediately after your "sanity checks" at the top of the main route block.
Regards, Paul
On Wed, 16 Mar 2005 19:07:16 +0200, braincrew.com somebody@braincrew.com wrote:
Hi Paul,
many thanks to your replies last week about user agent expiration (Sorry for not thanking you but just working ... 24 hours these days :( ).
I'm facing the similar issue with the byes on the side of ser. My B2BUA sends bye to ser but bye is not recorded in the database at about less than 10% of the calls. You have some idea what maybe the case ?
Thanks in advance :), Steve
----- Original Message ----- From: "Java Rockx" javarockx@gmail.com To: "Iqbal" iqbal@gigo.co.uk Cc: serusers@lists.iptel.org Sent: Wednesday, March 16, 2005 5:12 AM Subject: Re: [Serusers] using sipsak to send a BYE
I have. During my debugging with a 3rd party PSTN GW provider I sometimes didn't send them a BYE message and they couldn't close their billing record.
So I stored this in a file and used sipsak to close their billing record.
BYE sip:5135551234@216.229.118.76:4060 SIP/2.0 Route: sip:216.229.127.60:5060;lr From: sip:5135551234@64.152.60.6;user=phone To: sip:9145550000@66.243.109.99:5060;user=phone Contact: sip:9145550000@66.243.109.99:5060;user=phone CSeq: 42759 BYE Call-ID: 9787963-3319555348-76751@66.243.109.99 User-Agent: Grandstream BT100 1.0.5.11 Max-Forwards: 16 Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE Content-Length: 0
sipsak -f <filename> -s sip:<some IP address>
Regards, Paul
On Wed, 16 Mar 2005 03:07:05 GMT, Iqbal iqbal@gigo.co.uk wrote:
Hi
Has anyone done this successfully to hangup a call.
Iqbal
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers