# How to active PRACK/UPDATE for SIP

**URL:** <https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638>\
**Category:** Asterisk SIP\
**Created:** [August 21, 2019, 12:50pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638 "2019-08-21T12:50:52Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![celsoannes](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/celsoannes/32/2013_2.png) [@celsoannes](https://community.asterisk.org/u/celsoannes)\
**Post date:** [August 21, 2019, 12:50pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638/1 "2019-08-21T12:50:52Z")

</div>

Hi,  
I am using Asterisk 13.6.0, and I have a SIP TRUNK with an ISP.

The calls are hangup in the middle of the call, the ISP told me that I have to active on the INVITE support to the 100rel, PRACK and UPDATE.

I dont know how to do that, at moment my sip.conf is like that:

```auto
[general]
context=interno
allowguest=no
bindport=5060
binaddr=0.0.0.0
language=pt_BR
disallow=all
allow=alaw
dtmfmode=rfc2833
nat=force_rport,comedia
limitonpeer=yes
srvlookup=no
rtptimeout=60
rtpholdtimeout=300
tos_sip=cs3
tos_audio=ef
tos_video=af41
t38pt_udptl=yes
ignoresdpversion=yes

[voxip]
type=peer
host=10.150.66.16
outboundproxy=10.150.66.16
fromuser=5430468800
insecure=invite,port
qualify=yes
port=5060
nat=no
disallow=all
allow=g729,alaw
prack=yes
reinvite=yes
canreinvite=no
username=5430468800
secret=5430468800
context=entrada-voxip
rtptimeout=10

```

I didn’t see the option **prack** on the `sip.conf`, but the ISP told me that I have to include this on my `sip.conf`.

The ISP sent me an image showing that my Asterisk isn’t sent the UPDATE, what is needed to keep the call going on otherwise the ISP drop the call.

 ![unnamed](https://global.discourse-cdn.com/asterisk/original/2X/4/45475087b949427a6d7c5443ac604c90bbca67bc.png)

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [August 21, 2019, 1:04pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638/2 "2019-08-21T13:04:57Z")

</div>

The chan\_sip module does not support PRACK. It is supported in chan\_pjsip.

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [August 21, 2019, 1:10pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638/3 "2019-08-21T13:10:27Z")

</div>

The ITSP isn’t SIP compliant as support for UPDATE isn’t mandatory, nor is 100Rel support.

chan\_sip is deprecated, doesn’t have full UPDATE support, so does not advertise it, and does not have 100Rel support.

There is also no reinvite configuration option and canreinvite is an obsolete name for directmedia.

Why are you disable port number checks?

chan\_pjsip does have 100Rel support. I don’t know if it advertises UPDATE support.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [August 21, 2019, 1:12pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638/4 "2019-08-21T13:12:02Z")

</div>

I believe it does advertise it, but don’t know for certain.

---

<div class="post-metadata">

**Author:** ![celsoannes](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/celsoannes/32/2013_2.png) [@celsoannes](https://community.asterisk.org/u/celsoannes)\
**Post date:** [August 21, 2019, 2:17pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638/6 "2019-08-21T14:17:31Z")

</div>

> [@jcolp](#):
>
> The chan\_sip module does not support PRACK. It is supported in chan\_pjsip.

I have none experience on chan\_pjsip, could you please, remake this configuration for pjsip.conf for me.

I thank you in advance.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [August 21, 2019, 2:20pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638/7 "2019-08-21T14:20:07Z")

</div>

The project provides numerous wiki pages[1] talking about configuration, as well as a tool that can be used to convert a sip.conf to a pjsip.conf.

[1] [https://wiki.asterisk.org/wiki/display/AST/Configuring+res\_pjsip](https://wiki.asterisk.org/wiki/display/AST/Configuring+res_pjsip)

---

<div class="post-metadata">

**Author:** ![celsoannes](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/celsoannes/32/2013_2.png) [@celsoannes](https://community.asterisk.org/u/celsoannes)\
**Post date:** [August 21, 2019, 2:20pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638/8 "2019-08-21T14:20:55Z")

</div>

What do you mean with?

> Why are you disable port number checks?

---

<div class="post-metadata">

**Author:** ![johnkiniston](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/johnkiniston/32/28_2.png) [@johnkiniston](https://community.asterisk.org/u/johnkiniston)\
**Post date:** [August 21, 2019, 3:16pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638/9 "2019-08-21T15:16:03Z")

</div>

David is referencing this line of your configuration file where you are disabling the port number check.

> [@celsoannes](#):
>
> insecure=invite,port

---

<div class="post-metadata">

**Author:** ![celsoannes](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/celsoannes/32/2013_2.png) [@celsoannes](https://community.asterisk.org/u/celsoannes)\
**Post date:** [August 21, 2019, 3:45pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638/10 "2019-08-21T15:45:32Z")

</div>

Thanks for clarifying.

The template was given to me by the ISP.

If the concern is about safety, the connection to the ISP is made locally, there is a modem with connect directly to the server network interface. It don’t go through internet.

If it was mentioned for other reason, please, clarify to me.

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [August 21, 2019, 5:13pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638/11 "2019-08-21T17:13:41Z")

</div>

ISPs have a habit of handing out confiugrations that are about ten years out of date and are designed to avoid support calls rather than make systems secure. With anything with a name like insecure, you should only be disabling checks that you actually need to disable, and unless the ITSP originates calls from ports other than 5060, you don’t need insecure=port.

---

<div class="post-metadata">

**Author:** ![celsoannes](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/celsoannes/32/2013_2.png) [@celsoannes](https://community.asterisk.org/u/celsoannes)\
**Post date:** [August 21, 2019, 5:28pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638/12 "2019-08-21T17:28:32Z")

</div>

Thanks for the clarification.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 20, 2019, 5:28pm UTC](https://community.asterisk.org/t/how-to-active-prack-update-for-sip/80638/13 "2019-09-20T17:28:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
