[asterisk-bugs] [JIRA] (ASTERISK-23453) res_pjsip_header_funcs: Add tests for PJSIP_HEADER
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Fri Mar 7 12:54:48 CST 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-23453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Jordan updated ASTERISK-23453:
-----------------------------------
Status: Open (was: Triage)
> res_pjsip_header_funcs: Add tests for PJSIP_HEADER
> --------------------------------------------------
>
> Key: ASTERISK-23453
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-23453
> Project: Asterisk
> Issue Type: Improvement
> Security Level: None
> Components: Tests/testsuite
> Reporter: Matt Jordan
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list