Yate Community Forum

General Category => Yate users hangout place => Topic started by: xyswitchz on May 01, 2018, 06:25:46 AM

Title: How to set sip header on a call via direct command
Post by: xyswitchz on May 01, 2018, 06:25:46 AM
How to set sip header on a call via direct command

.*=dispatch call.execute;callto=dumb/;direct=sip/sip:54321@x.x.x.x;osip_X-Acct=${acctid}

No header present with X-Acct. This does not seem to works. What the correct way please?
Title: Re: How to set sip header on a call via direct command
Post by: marian on May 03, 2018, 12:34:47 AM
You need to add an extra parameter indicating the parameters to be copied when the call is re-executed by dumb module:

.*=dispatch call.execute;callto=dumb/;direct=sip/sip:54321@x.x.x.x;osip_X-Acct=${acctid};copyparams=osip_X-Acct

The 'copyparams' parameter is a comma separated list of parameters to be copied.