[Home]

Summary:ASTERISK-23453: res_pjsip_header_funcs: Add tests for PJSIP_HEADER
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2014-03-07 12:53:25.000-0600Date Closed:2014-04-01 10:17:58
Priority:MajorRegression?
Status:Closed/CompleteComponents:Tests/testsuite
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Add tests for the PJSIP_HEADER function. This should verify that:

# On an inbound channel's INVITE request:
** PJSIP_HEADER(read, \[Standard header\]) will read some standard SIP header
** PJSIP_HEADER(read \[Custom header\]) will read a custom SIP header
** PJSIP_HEADER(read \[Custom header\], 2) will read the second custom SIP header
# On an outgoing channel's INVITE request:
** PJSIP_HEADER(read, \[Standard header\]) will read some standard SIP header
** PJSIP_HEADER(read \[Custom header\]) will read a custom SIP header
** PJSIP_HEADER(read \[Custom header\], 2) will read the second custom SIP header
** PJSIP_HEADER(add, \[Custom header\]) will add a custom header to the INVITE request
** PJSIP_HEADER(update, \[Custom header\]) will update a custom header
** PJSIP_HEADER(update, \[Custom header\], 2) will update the second custom header in an outgoing INVITE request
** PJSIP_HEADER(remove, \[Custom header\]) will remove a custom header from an outgoing request
** PJSIP_HEADER(remove, \[Custom header\], 2) will remove the second custom header

Note that a pre-dial handler should be used for the outgoing channels.
Comments: