Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?

2015-08-28 Thread Dan Cropp
s-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Dan Cropp Sent: Friday, August 28, 2015 8:20 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and ha

Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?

2015-08-28 Thread Dan Cropp
PJSIP Add Header prior to calling Queue and have it part of the INVITE packet? Den 2015-08-28 kl. 00:07, skrev Dan Cropp: I have both the PJSIP add and the chan_sip way of adding SIP headers in there. The Verbose is showing the variable value is there. The INVITE to PJSIP/Agent1 does not include

Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?

2015-08-27 Thread Niklas Larsson
Den 2015-08-28 kl. 00:07, skrev Dan Cropp: I have both the PJSIP add and the chan_sip way of adding SIP headers in there. The Verbose is showing the variable value is there. The INVITE to PJSIP/Agent1 does not include either X-My-DNID or X-My-DNID2 headers. You have to use an pre-dial h

Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?

2015-08-27 Thread Dan Cropp
g List - Non-Commercial Discussion Subject: Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet? Are you using this method of setting headers on PJSIP? https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+Function_PJSIP_HEADER

Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?

2015-08-27 Thread Scott Griepentrog
igium.com] *On Behalf Of *Scott Griepentrog > *Sent:* Thursday, August 27, 2015 4:28 PM > > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* Re: [asterisk-users] Is it possible to perform PJSIP Add > Header prior to calling Queue and have it part of the INV

Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?

2015-08-27 Thread Dan Cropp
Of Scott Griepentrog Sent: Thursday, August 27, 2015 4:28 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet? Local channels: http

Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?

2015-08-27 Thread Scott Griepentrog
gt; > > > > > *From:* asterisk-users-boun...@lists.digium.com [mailto: > asterisk-users-boun...@lists.digium.com] *On Behalf Of *Scott Griepentrog > *Sent:* Thursday, August 27, 2015 1:57 PM > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* Re:

Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?

2015-08-27 Thread Dan Cropp
ssion Subject: Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet? To add a header to the call leg that goes to the agent, try using a local channel to activate dialplan on the outbound call: Register Local/number@agent i

Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?

2015-08-27 Thread Scott Griepentrog
To add a header to the call leg that goes to the agent, try using a local channel to activate dialplan on the outbound call: Register Local/number@agent in the queue on behalf of the agent (replace number with the agent's extension number) In dialplan [agent], wild card match the number, add the

[asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?

2015-08-27 Thread Dan Cropp
I have a call coming in. I need to add a SIP Header to the channel. Then, I need to send the call to the Queue so it is sent to the Agent. The SIP header I added, I need to have appear in the INVITE sent to the Agent. It works in chan_sip. I send the call to a macro which does... n,SIPAddHeader(