Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manipulating P-Asserted-Identity on Dial Verb Header affects From Field #3

Open
ajukes opened this issue Mar 18, 2020 · 1 comment
Open

Comments

@ajukes
Copy link

ajukes commented Mar 18, 2020

GIven the following dial verb

{
  "verb": "dial",
  "actionHook": "/outdial",
  "callerId": "+447956697540",
  "answerOnBridge": true,
  "dtmfCapture": ["*2", "*3"],
  "dtmfHook": {
    "url": "/dtmf",
    "method": "GET"
  },
  "target": [
    {
      "type": "sip",
      "uri": "sip:[email protected]:5060"
    }
    ],
    "headers" : {
         "P-Asserted-Identity" : "<sip:[email protected]:5060>"
    }
}

We expect to see a SIP INVITE header as follows

From: <sip:[email protected]:5060>;tag=p3g4cSrZr2c1r
To: <sip:[email protected]:5060>
P-Asserted-Identity: "+1234567890" <sip:[email protected]:5060>

but instead we see a Header as follows with incorrect From

From: <sip:[email protected]:5060>;tag=p3g4cSrZr2c1r
To: <sip:[email protected]:5060>
P-Asserted-Identity: "+1234567890" <sip:[email protected]:5060>
@davehorton
Copy link
Collaborator

The INVITE sent from the feature server was as expected:

2020-03-18 15:39:52.687023 recv 1035 bytes from udp/[172.31.50.112]:5060 at 15:39:52.686828:
INVITE sip:[email protected]:5060 SIP/2.0^M
Via: SIP/2.0/UDP 172.31.50.112;rport;branch=z9hG4bKSQje0tte7HUjN^M
Max-Forwards: 70^M
From: <sip:[email protected]:5060>;tag=B54N479KDgyae^M
To: <sip:[email protected]:5060>^M
Call-ID: 8d1dd8cc-e3d1-1238-b5b0-0243b45f9388^M
CSeq: 17719204 INVITE^M
Contact: <sip:[email protected]:5060>^M
Content-Type: application/sdp^M
Content-Length: 481^M
X-CID: 41261b2f-6fbf2455-34cdc7-7fb2f3dcecb0-de641fac-13e2-7225^M
P-Asserted-Identity: "+442077222700" <sip:[email protected]:5060>^M

The INVITE from the sbc-outbound app has the improper From header

2020-03-18 15:39:52.694891 send 1043 bytes to udp/[188.39.6.210]:5060 at 15:39:52.694743:
INVITE sip:[email protected]:5060 SIP/2.0^M
Via: SIP/2.0/UDP 63.33.24.29;rport;branch=z9hG4bK05N1gcBHyFg3e^M
Max-Forwards: 70^M
From: <sip:[email protected]:5060>;tag=p3g4cSrZr2c1r^M
To: <sip:[email protected]:5060>^M
Call-ID: 8d1f148a-e3d1-1238-bca5-02ebb6fea23c^M
CSeq: 17719204 INVITE^M
Contact: <sip:[email protected]:5060>^M
Content-Type: application/sdp^M
Content-Length: 493^M
X-CID: 41261b2f-6fbf2455-34cdc7-7fb2f3dcecb0-de641fac-13e2-7225^M
P-Asserted-Identity: "+442077222700" <sip:[email protected]:5060>^M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants