[OpenSIPS-Users] Manipulate Opensips generated SIP headers

Ping Han pinghan022 at gmail.com
Fri Jun 5 08:39:36 CEST 2015

Hi Bogdan,

Thanks for your reply.

I am trying to manipulate the CSeq header.

I have attached a packet trace.

In the example sends a SIP Invite to via
Opensips. Then challenges authentication. In the second SIP
Invite that contains the authentication info (frame number 6), I have to
increment the CSeq header otherwise does not like it. The new
CSeq is now set to 2.

If is not able to accept the call, it returns something other
than "200 OK" (606 in this example). Now it is the problem. Opensips sends
back an ACK (frame number 12) with CSeq set to 1 (not 2). is
expecting an ACK with a CSeq set to 2. The consequence is that keeps sending 606 until times out.

The ACK is internally generated by Opensips and as you said we can not
manipulate it. I am wondering if there is any way to solve this problem.

PS: is the internal IP of Opensips server and
is the external IP.


On Thu, Jun 4, 2015 at 12:55 AM, Bogdan-Andrei Iancu <bogdan at opensips.org>

>  Hi Ping,
> There is no access to internally generated ACK and CANCEL requests.
> What are you trying to do ?
> Regards,
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
> On 03.06.2015 02:53, Ping Han wrote:
> Hi,
> With Opensips is there a way to manipulate the SIP headers of a messages
> that are generated locally by Opensips. See the example below.
> --------------------------------------------
> ACK sip:0370103204 at SIP/2.0
> Via: SIP/2.0/UDP;branch=z9hG4bK5094.3ee05403.1
> From:<sip:0370103401 at xxxvoip.com>;tag=1740643510
> Call-ID: 641613075 at
> To:<sip:0370103204 at>;tag=1994410995-1432625097305;
> CSeq: 1 ACK
> Max-Forwards: 70
> User-Agent: OpenSIPS (2.1.0 (x86_64/linux))
> Content-Length: 0
> --------------------------------------------
> Thanks,
> Ping Han
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150605/62b11134/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cseq_issue.pcap
Type: application/octet-stream
Size: 11330 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20150605/62b11134/attachment-0001.obj>

More information about the Users mailing list