Review Board 1.7.16


Add a function PJSIP_ENDPOINT to retrieve endpoint configuration details from the dialplan

Review Request #3035 - Created Nov. 27, 2013 and submitted

Matt Jordan
12
Reviewers
asterisk-dev
Asterisk
The impetus for this function came from looking at the CHANNEL function for chan_sip, and starting to map out what properties should be applied to chan_pjsip.

While I was looking at it, I thought that - other than the name of the endpoint associated with the channel - endpoint details really shouldn't come from the CHANNEL function. They should come from something else. Hence, the PJSIP_ENDPOINT function.

This function lets you query any property configured on an endpoint, for any endpoint, from the dialplan. Assuming the CHANNEL function gets applied to chan_pjsip, this would let you extract information about a channel's endpoint - or whatever endpoint they're going to go talk to.

This has some obvious implications in knowing what's about to happen before you go Dial some endpoint.

As an aside, I think this patch also shows (to a small extent) the usefulness of both Sorcery as well as XML configuration information. More lines of code are spent on sanitizing input than anything else.
Testsuite test written and available here:

https://reviewboard.asterisk.org/r/3034/
Total:
3
Open:
0
Resolved:
3
Dropped:
0
Status:
From:
Review request changed
Updated (Dec. 11, 2013, 7:09 a.m.)
  • changed from pending to submitted

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.