Asterisk and Homer 7.x

So I’m racked my brain and the forum for days now and figured I’d try asking like a normal human haha!

I am using Asterisk 18.x with Homer (sipcature.org) This works as expected using the HEP module and such, but Homer needs to be able to associate the A leg and B leg of the calls. Their solution is to add a SIP header x-cid with the call-id of the A leg (ingress) in the B leg.(to extension etc.)

PJSIP X-CID Correlation for BLEG

PJSIP_HEADER(add,X-CID)=$SIPCALLID

However adding this to the extensions_custom s doesn’t appear to work. I can get it to add the x header x-cid but the value is blank.

I am open to any and all suggestions at this point.

that is not a normal asterisk extention but one from FreePBX
you need to use an exterions that is configure in your Dial Command

https://docs.asterisk.org/Asterisk_20_Documentation/API_Documentation/Dialplan_Applications/Dial/#arguments

b( context^exten^priority ) - Before initiating an outgoing call, 'Gosub' to the specified location using the newly created channel. The 'Gosub' will be executed for each destination channel.

context
exten
priority (params )
  arg1[^arg1...]
  argN

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.