Re: [asterisk-users] PJSIP add header not working

2017-10-02 Thread Andre Gronwald
Thanks all for the help, I got a step ahead. But in this scenario I am not able to deliver call-id of call-leg a to call-leg b. Extension A is going to make an outbound trunk call: 1. extension calls asterisk (call leg a, call-id 1234567890) 2. asterisk makes outbound trunk call (call leg b,

Re: [asterisk-users] PJSIP add header not working

2017-10-02 Thread Bryant Zimmerman
t(PJSIP_HEADER(add,Call-Info)=\;answ er-after=0) exten => addSessionCallInfo,n,Return() Thanks Bryant Zimmerman (ZK Tech Inc.) 616-855-1030 Ext. 2003 From: "Andre Gronwald" <andregronwal...@gmail.com> Sent: Monday, October 2, 20

Re: [asterisk-users] PJSIP add header not working

2017-10-02 Thread Joshua Colp
On Mon, Oct 2, 2017, at 12:06 PM, Andre Gronwald wrote: > Hi, > I am trying to add a custom header to my calls to map several call-legs > into a global call for viewing. > > For this to work I read the call-id from pjsip-channel and write it into > X-CID: > > ## > -- Executing

Re: [asterisk-users] PJSIP add header not working

2017-10-02 Thread Loic Chabert
Hi, Following some new behaviour on PJSIP, adding SIP header must be done using a subrouting. Please find below my working configuration: *[subroutine]exten => caller_handler,1,NoOp()same =>n,Set(PJSIP_HEADER(add,X-CID)=${ARG1})same => n,Return()* and then, add new parameters on Dial

[asterisk-users] PJSIP add header not working

2017-10-02 Thread Andre Gronwald
Hi, I am trying to add a custom header to my calls to map several call-legs into a global call for viewing. For this to work I read the call-id from pjsip-channel and write it into X-CID: ## -- Executing [s@macro-dialout-trunk-predial-hook:4] Set("PJSIP/10-0006",