Author Topic: How to set sip header on a call via direct command  (Read 3455 times)

xyswitchz

  • Newbie
  • *
  • Posts: 26
    • View Profile
How to set sip header on a call via direct command
« 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?

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: How to set sip header on a call via direct command
« Reply #1 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.