How to Add Remote-Party-ID in Invite Packet


This application is aim at adding a Remote-Party-ID header in Invite Packet.In some case,when MyPBX integrade with other device A,device A can only read the call id from Remote-Party-ID in Invite Packet.


How to Set

Step 1. Download a putty in your PC

We can access MyPBX SSH using putty or other terminal tools.

Putty download link:

Step 2. Open putty by SSH 

  • Before we open the putty by ssh,we need check the settings in MyPBX first.

Path:System---Network Settings---LAN Settings


  • Settings in putty





  • Login by ssh




Step 3. Edit by SSH

(Before you start the step,it would be better if you know some basic linux vi command.For example how to save,add,delete,modify the content in a file)

1)Type ‘cat /etc/asterisk/extensions.conf ‘in the putty and press keyboard ‘Enter’.It would show many contexts,what you need to do is to copy all the content of context [macro-trunkdial-failover-0.3] .(content from ‘exten = s,1’to ‘exten = h’)


2)Type ‘vi /persistent/custom-cfg/extensions_custom.conf’,copy whole content of context [macro-trunkdial-failover-0.3] (There are so much script in [macro-trunkdial-failover-0.3],the following picture only show some of them)


3)Add ‘exten=1-dial,n,SipAddHeader(Remote-Party-ID:"${CALLERID(name)}"<sip:${CALLERID(num)}@xx.xx.xx>\;privacy=off\;screen=no)‘ before ‘ exten = 1-dial,n,Dial(...) ' .

(xx.xx.xx.xx is the IP of the device itself,it may be or others)


4)Type <Esc> ,and then type’:wq’ and <Enter> to save the file.

 5)Type ‘mypbxconf‘ and ‘ asterisk -rx 'module relaod'  ‘ to make the settings effect.




Have more questions? Submit a request


Please sign in to leave a comment.