[asterisk-bugs] [JIRA] (ASTERISK-25985) chan_sip:sip_poke_peer does't copy port

Rusty Newton (JIRA) noreply at issues.asterisk.org
Wed May 4 09:39:56 CDT 2016


     [ https://issues.asterisk.org/jira/browse/ASTERISK-25985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-25985:
------------------------------------

    Assignee: József Dudás
      Status: Waiting for Feedback  (was: Triage)

We can't accept inline patches typically. Would you like to submit a patch and get credit for it?

https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process



> chan_sip:sip_poke_peer does't copy port
> ---------------------------------------
>
>                 Key: ASTERISK-25985
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25985
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/Messaging
>    Affects Versions: 11.22.0, 13.8.2
>            Reporter: József Dudás
>            Assignee: József Dudás
>
> When a peer is set to different port than 5060, and SIP OPTIONS is sent by asterisk, the SIP packet does not contain the port number.
> So if trunk port is 5080 (and not 5060), asterisk still sends 
> OPTIONS sip:aaa.bbb.ccc.ddd
> and not:
> OPTIONS sip:aaa.bbb.ccc.ddd:5080
> Solvable by adding to channels/chan_sip.c's sip_poke_peer function this:
> p->portinuri = peer->portinuri;		



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list