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

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Tue Dec 19 11:33:07 CST 2017


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

Richard Mudgett edited comment on ASTERISK-26957 at 12/19/17 11:31 AM:
-----------------------------------------------------------------------

Did you ever end up pursuing a different change based on what Richard said?
asterisk-dev list thread: http://lists.digium.com/pipermail/asterisk-dev/2017-May/076322.html



was (Author: jcolp):
Did you ever end up pursuing a different change based on what Richard said?
asterisk-dev list thread: http://lists.digium.com/pipermail/asterisk-dev/2017-May/076321.html

> 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
>            Assignee: Yasin CANER
>            Severity: Minor
>         Attachments: Asterik 13 Toph.jpg
>
>
> 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
> {noformat}
> 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
> {noformat}
> 		   
> 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.
> 6- chan_pjsip , CDR is checked , no problem.
> 7- chan_sip  , it tested with or without Callerid(DNID) setting. there is not side effect. No 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
> commit is updated for format and fixed memory leak.



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



More information about the asterisk-bugs mailing list