[asterisk-bugs] [JIRA] (ASTERISK-26957) manipulating ToHeader number with CallerID(DNID)

Asterisk Team (JIRA) noreply at issues.asterisk.org
Mon Apr 24 08:59:58 CDT 2017


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

Asterisk Team commented on ASTERISK-26957:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

> manipulating ToHeader number with CallerID(DNID)
> ------------------------------------------------
>
>                 Key: ASTERISK-26957
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26957
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Applications/app_dial, Resources/res_pjsip_session
>    Affects Versions: 13.15.0
>         Environment: Centos 6.7, Asterisk 13.5
>            Reporter: Yasin CANER
>            Severity: Minor
>
> Hello all,
> Some kind of devices like FXS needs to wait Request Uri Number and ToHeader number must be same.if not , it declines the calls. in chan_sip, 
> we can solve this problem with exclamation mark in Dial app but chan_pjsip doesnt have ability. So i added a function to set toheader with setting Callerid(DNID) variable in res_pjsip_session.c
> My toph
> A caller ---> Asterisk-Trunk-1 || Asterisk-Trunk-2 --> Kamailio --> B callee
> INVITE --> Ruri : 08503027337	From : 08503023423 To   : 08503027337 ---> Asterisk Trunk -1 -->Asterisk Trunk -2  ---> Ruri : 56428503027337 From : 908503023423 To   : 8503027337----> Kamailio(carrier module) ----> Ruri : 8503027337 From : 908503023423 To   : 8503023423
>  
> 		   
> How is it work.
> 	Before dial application , setting Callerid(DNID) in dialplan , it effects.
> i tested function as below
> 1- 2 side PJSIP_SEND_SESSION_REFRESH(), it send re-invite to outgoing and incoming channels. No problem
> 2- Fax Re-invite, it send so many re-invite to negotiation for fax. No problem
> 3- Standard Call . No Problem
> 4- without setting Callerid(DNID) . No problem ,there isnt null pointer exception or crash
> 5- Setting 2 side Callerid(DNID) . there isnt problem.
> it didn't test on chan_sip
> Forum topic : https://community.asterisk.org/t/way-to-get-toheader-name-or-number/68717/6?u=ycaner



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



More information about the asterisk-bugs mailing list