Discussion:
sending bye using sipsak [onsip.org]
Pavel Siderov
2005-04-13 13:24:29 UTC
Permalink
Hi guys,

I read the tutorial on http://onsip.org ( http://www.onsip.org/modules/xoopsfaq/index.php?cat_id=3#2 ) about sending byes but has no success with my tries:

bye.txt:

BYE sip:***@1.2.3.4 SIP/2.0
From: sip:***@5.6.7.8;user=phone
To: sip:***@1.2.3.4:5060;user=phone
Contact: sip:***@5.6.7.8;user=phone
CSeq: 100 BYE
Call-ID: ***@192.168.2.111
Max-Forwards: 16
Content-Length: 0

Call-ID is taken after call is has started. 1.2.3.4 is the ip of my pstn provider and 5.6.7.8 of my ser box.

When I try to send it using sipsak:

sipsak -f bye.txt -s 62.244.175.133

I got the following error:

error: SIPURI doesn't not begin with sip


Any suggestions / ideas what I'm doing wrong.

Thanks,
Pavel
Java Rockx
2005-04-13 13:29:10 UTC
Permalink
Your sipsak command should be

*sipsak -f bye.txt -s sip:62.244.175.133 <http://62.244.175.133/>*

Regards,
Paul
Post by Pavel Siderov
Hi guys,
I read the tutorial on http://onsip.org (
http://www.onsip.org/modules/xoopsfaq/index.php?cat_id=3#2 ) about sending
CSeq: 100 BYE
*Max-Forwards: 16
Content-Length: 0*
Call-ID is taken after call is has started. 1.2.3.4 <http://1.2.3.4> is
the ip of my pstn provider and 5.6.7.8 <http://5.6.7.8> of my ser box.
*sipsak -f bye.txt -s 62.244.175.133 <http://62.244.175.133>*
*error: SIPURI doesn't not begin with sip*
Any suggestions / ideas what I'm doing wrong.
Thanks,
Pavel
_______________________________________________
Serusers mailing list
http://mail.iptel.org/mailman/listinfo/serusers
Pavel Siderov
2005-04-13 14:09:16 UTC
Permalink
Thanks Paul.

Now I got

sipsak -f bye.txt -s sip:1.2.3.4
** give up retransmissioning....

And the call continued :(

Regards,
Pavel

----- Original Message -----
From: Java Rockx
To: Pavel Siderov
Cc: ***@iptel.org
Sent: Wednesday, April 13, 2005 4:29 PM
Subject: Re: [Serusers] sending bye using sipsak [onsip.org]


Your sipsak command should be

sipsak -f bye.txt -s sip:1.2.3.4

Regards,
Paul


On 4/13/05, Pavel Siderov <***@hostmates.com> wrote:
Hi guys,

I read the tutorial on http://onsip.org ( http://www.onsip.org/modules/xoopsfaq/index.php?cat_id=3#2 ) about sending byes but has no success with my tries:

bye.txt:

BYE sip:***@1.2.3.4 SIP/2.0
From: sip:***@5.6.7.8;user=phone
To: sip:***@1.2.3.4:5060;user=phone
Contact: sip:***@5.6.7.8;user=phone
CSeq: 100 BYE
Call-ID: ***@192.168.2.111
Max-Forwards: 16
Content-Length: 0

Call-ID is taken after call is has started. 1.2.3.4 is the ip of my pstn provider and 5.6.7.8 of my ser box.

When I try to send it using sipsak:

sipsak -f bye.txt -s 1.2.3.4

I got the following error:

error: SIPURI doesn't not begin with sip


Any suggestions / ideas what I'm doing wrong.

Thanks,
Pavel

_______________________________________________
Serusers mailing list
***@iptel.org
http://mail.iptel.org/mailman/listinfo/serusers
Java Rockx
2005-04-13 14:45:25 UTC
Permalink
You'll have to ^C sipsak to stop it since it is very unlikely that the
destination you're sending to will reply nicely.

If the call doesn't stop then you may have the wrong Call-ID

Regards,
Paul
Post by Pavel Siderov
Thanks Paul.
Now I got
sipsak -f bye.txt -s sip:1.2.3.4 <http://1.2.3.4>
** give up retransmissioning....
And the call continued :(
Regards,
Pavel
*Sent:* Wednesday, April 13, 2005 4:29 PM
*Subject:* Re: [Serusers] sending bye using sipsak [onsip.org<http://onsip.org>
]
Your sipsak command should be
*sipsak -f bye.txt -s sip:1 <http://62.244.175.133/>.2.3.4*
Regards,
Paul
Pavel Siderov
2005-04-13 15:10:53 UTC
Permalink
I've tested this lots of times ... and I think that the Call-ID is correctly copied from the database.

Thanks,
Pavel
----- Original Message -----
From: Java Rockx
To: Pavel Siderov
Cc: ***@iptel.org
Sent: Wednesday, April 13, 2005 5:45 PM
Subject: Re: [Serusers] sending bye using sipsak [onsip.org]


You'll have to ^C sipsak to stop it since it is very unlikely that the destination you're sending to will reply nicely.

If the call doesn't stop then you may have the wrong Call-ID

Regards,
Paul


On 4/13/05, Pavel Siderov <***@hostmates.com> wrote:
Thanks Paul.

Now I got

sipsak -f bye.txt -s sip:1.2.3.4
** give up retransmissioning....

And the call continued :(

Regards,
Pavel

----- Original Message -----
From: Java Rockx
To: Pavel Siderov
Cc: ***@iptel.org
Sent: Wednesday, April 13, 2005 4:29 PM
Subject: Re: [Serusers] sending bye using sipsak [onsip.org]


Your sipsak command should be

sipsak -f bye.txt -s sip:1.2.3.4

Regards,
Paul
Pavel Siderov
2005-04-14 08:28:54 UTC
Permalink
Hi Paul,

I just tried your suggestion but still with no success. Here is my bye.txt

BYE sip:***@1.2.3.4 SIP/2.0
From: <sip:***@5.6.7.8>;tag=95061277
To: <sip:***@1.2.3.4>;tag=as414565bd
Contact: sip:***@1.2.3.4;user=phone
Call-ID: BF5C0E09-B35D-4E5D-BB02-***@192.168.2.111
CSeq: 100 BYE
Max-Forwards: 16
Content-Length: 0

Thanks you very much for your help :)

Regards,
Pavel
----- Original Message -----
From: Java Rockx
To: Pavel Siderov
Sent: Wednesday, April 13, 2005 9:21 PM
Subject: Re: [Serusers] sending bye using sipsak [onsip.org]


Then the only thing I can think of is that you may have to include the <from> and <to> headers including the from_tag and to_tag. I guess you're just dealing with a SIP devices that looks at all these to match transactions.

You should just be able to plug these items to the BYE message template file.

Regards,
Paul


On 4/13/05, Pavel Siderov <***@hostmates.com> wrote:
I've tested this lots of times ... and I think that the Call-ID is correctly copied from the database.

Thanks,
Pavel
----- Original Message -----
From: Java Rockx
To: Pavel Siderov
Cc: ***@iptel.org
Sent: Wednesday, April 13, 2005 5:45 PM
Subject: Re: [Serusers] sending bye using sipsak [onsip.org]


You'll have to ^C sipsak to stop it since it is very unlikely that the destination you're sending to will reply nicely.

If the call doesn't stop then you may have the wrong Call-ID

Regards,
Paul


On 4/13/05, Pavel Siderov <***@hostmates.com> wrote:
Thanks Paul.

Now I got

sipsak -f bye.txt -s sip:1.2.3.4
** give up retransmissioning....

And the call continued :(

Regards,
Pavel

----- Original Message -----
From: Java Rockx
To: Pavel Siderov
Cc: ***@iptel.org
Sent: Wednesday, April 13, 2005 4:29 PM
Subject: Re: [Serusers] sending bye using sipsak [onsip.org]


Your sipsak command should be

sipsak -f bye.txt -s sip:1.2.3.4

Regards,
Paul
Java Rockx
2005-04-14 12:10:06 UTC
Permalink
I'm not certain, but the contact field may need to have angle brackets
around the uri like the To header has.

Also, the only other thing I can think of is perhaps your line terminators
aren't right. Head line must be terminated with \r\n and there must be one
extra \r\n following the last header field.

Regards,
Paul
Post by Pavel Siderov
Hi Paul,
I just tried your suggestion but still with no success. Here is my bye.txt
CSeq: 100 BYE
Max-Forwards: 16
Content-Length: 0
Thanks you very much for your help :)
Regards,
Pavel
----- Original Message -----
*Sent:* Wednesday, April 13, 2005 9:21 PM
*Subject:* Re: [Serusers] sending bye using sipsak [onsip.org<http://onsip.org>
]
Then the only thing I can think of is that you may have to include the
<from> and <to> headers including the from_tag and to_tag. I guess you're
just dealing with a SIP devices that looks at all these to match
transactions.
You should just be able to plug these items to the BYE message template file.
Regards,
Paul
Post by Pavel Siderov
I've tested this lots of times ... and I think that the Call-ID is
correctly copied from the database.
Thanks,
Pavel
----- Original Message -----
*Sent:* Wednesday, April 13, 2005 5:45 PM
*Subject:* Re: [Serusers] sending bye using sipsak [onsip.org<http://onsip.org>
]
You'll have to ^C sipsak to stop it since it is very unlikely that the
destination you're sending to will reply nicely.
If the call doesn't stop then you may have the wrong Call-ID
Regards,
Paul
Post by Pavel Siderov
Thanks Paul.
Now I got
sipsak -f bye.txt -s sip:1.2.3.4 <http://1.2.3.4>
** give up retransmissioning....
And the call continued :(
Regards,
Pavel
*Sent:* Wednesday, April 13, 2005 4:29 PM
*Subject:* Re: [Serusers] sending bye using sipsak [onsip.org<http://onsip.org>
]
Your sipsak command should be
*sipsak -f bye.txt -s sip:1 <http://62.244.175.133/>.2.3.4*
Regards,
Paul
Loading...