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

Yasin CANER (JIRA) noreply at issues.asterisk.org
Mon Apr 24 09:09:57 CDT 2017


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

Yasin CANER updated ASTERISK-26957:
-----------------------------------

    Comment: was deleted

(was: Patch file)

> 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
>         Attachments: 0001-added-a-function-to-manipulate-outgoing-To-header.-w.patch, 0001-added-a-function-to-manipulate-outgoing-To-header.-w.patch
>
>
> 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