[asterisk-bugs] [JIRA] (ASTERISK-23169) [patch] Support getting local SIP IP using CHANNEL() dial plan function

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Jan 28 15:37:03 CST 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214495#comment-214495 ] 

Rusty Newton commented on ASTERISK-23169:
-----------------------------------------

It does sound useful! Since this would be a new feature, it would likely go in Trunk. It appears to patch cleanly to Trunk.

A question about

bq. <para>R/O Get the IP address of the socket which received the call.</para>

I'm not a developer, so I don't know what is going on in the source always. 

Would it always be the socket receiving the call? In the case of outbound calls, wouldn't it be the socket originating the call? Would it be more appropriate to say something like "R/O Get the IP address of the local socket regardless of it is source or destination" ?
                
> [patch] Support getting local SIP IP using CHANNEL() dial plan function
> -----------------------------------------------------------------------
>
>                 Key: ASTERISK-23169
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23169
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Channels/chan_sip/General, Functions/func_channel
>    Affects Versions: 11.7.0
>            Reporter: Ben Smithurst
>            Severity: Minor
>         Attachments: ourip.diff
>
>
> It is useful for us in some dial plan code to be able to determine the local SIP IP.  I couldn't see a way of doing this, so I extended CHANNEL() to support it.  I'm submitting this because it's pretty simple and it may be useful for other people.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list