Contact

Blogs

Take a look at the things that interest us.

Sending and receiving sip headers from Asterisk dial plan

Wesley Wesley 2 years

In this post, I want to give you a simple example of sending and receiving header parameters within the Asterisk Dial plan through multiple servers.

Server1:

[extensions]
exten => _100,1,Ringing
exten => n,SIPAddHeader(testparameter: test)
exten => n,Dial(PJSIP/Server2/100,60,tT)
exten => n,Hangup

Server2:

[extensions]
exten => _100,1,Ringing
exten => n,NoOp(SIP Header: ${SIP_HEADER(testparameter)})
same => n,Answer()
same => n,Queue(support)
same => n,Hangup() 

This post is purely to give you an idea of how it works, as the SipAddHeader function can be used in many different use cases.

Sending and receiving sip headers from Asterisk dial plan 2021-08-24 08:11:27

There are no comments.

4702

Have questions about our services?

Contact our Sales team to get answers.

Contact Us
gomibako@aska-ltd.jp