[asterisk-bugs] [JIRA] (ASTERISK-26964) chan_pjsip creating wrong From header number on Re-invite
Yasin CANER (JIRA)
noreply at issues.asterisk.org
Fri Apr 28 02:00:58 CDT 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-26964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236782#comment-236782 ]
Yasin CANER commented on ASTERISK-26964:
----------------------------------------
hello Joshua,
as you can see on topology , A side is a kamailio that using uac module, can manipulate from/to header and can restore. Here is link http://kamailio.org/docs/modules/4.4.x/modules/uac.html#uac.f.uac_replace_to(display,uri)
to reprodoce this ,
1- Request Uri and To header must be different. you can do it with kamailio or etc.
2- set session_refresh() in dialplan , there is a example on attachments.
3- you can compare between From header on re-invite and to-header on First Invite , they are different.
i want to just show which part of code cause this problem so i sent this patch. if this patch apply, may be break others stuff.
if it is only anonymous support , we can add another function to check Null for From Header number and set anonymouse as set_from_header do.
if you want to test an event/move , i can help you.
Cheers.
> chan_pjsip creating wrong From header number on Re-invite
> ---------------------------------------------------------
>
> Key: ASTERISK-26964
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26964
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_pjsip_session
> Affects Versions: 13.15.0
> Environment: Centos 6.7, asterisk 13.5
> Reporter: Yasin CANER
> Assignee: Yasin CANER
> Attachments: Asterisk 13 Wrong from header in Re-invite.jpg, dialplan-1.txt, trace-1.txt
>
>
> chan_pjsip creating wrong From header number on Re-invite
> Hello,
> in t38 state or session_refresh , chan_pjsip create Re-invite with wrong From header number for incoming channel.i think chan_pjsip creates "from header number" from "Request uri" and it should be "to header number" .
> it easy to understand from logs.
> i fixed the situtation this patch but i am not sure why need set_from_header function in pjsip_refresh function.
> Cheers.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list