versatica / JsSIP

JsSIP, the JavaScript SIP library
https://jssip.net
Other
2.42k stars 744 forks source link

Add custom header JsSIP - Asterisk #850

Closed lilslimxdgxxxx closed 6 months ago

lilslimxdgxxxx commented 6 months ago

I'm trying to add X-LadingCode to sip header so asterisk can read it

I tried

   uaRef.current.call(`sip:${numberInfor?.phoneNumber}@${hostName}${port ? `:${port}` : ''}`, {
    extraHeaders: ['X-LadingCode: 100']
  })

In asterisk: ảnh I can call normally but the sip header X-LadingCode always blank ảnh

You guys have any idea what I'm missing?

ibc commented 6 months ago

Questions or usage problems in the mailing list, please, not in GitHub.