{"action":"reopened","issue":{"url":"https://api.github.com/repos/OpenSIPS/opensips/issues/1386","repository_url":"https://api.github.com/repos/OpenSIPS/opensips","labels_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/1386/labels{/name}","comments_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/1386/comments","events_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/1386/events","html_url":"https://github.com/OpenSIPS/opensips/issues/1386","id":331903505,"node_id":"MDU6SXNzdWUzMzE5MDM1MDU=","number":1386,"title":"Opensips cannot parse INVITE with two 'P-Asserted-Identity' headers","user":{"login":"kertor","id":3471049,"node_id":"MDQ6VXNlcjM0NzEwNDk=","avatar_url":"https://avatars0.githubusercontent.com/u/3471049?v=4","gravatar_id":"","url":"https://api.github.com/users/kertor","html_url":"https://github.com/kertor","followers_url":"https://api.github.com/users/kertor/followers","following_url":"https://api.github.com/users/kertor/following{/other_user}","gists_url":"https://api.github.com/users/kertor/gists{/gist_id}","starred_url":"https://api.github.com/users/kertor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kertor/subscriptions","organizations_url":"https://api.github.com/users/kertor/orgs","repos_url":"https://api.github.com/users/kertor/repos","events_url":"https://api.github.com/users/kertor/events{/privacy}","received_events_url":"https://api.github.com/users/kertor/received_events","type":"User","site_admin":false},"labels":[{"id":39042785,"node_id":"MDU6TGFiZWwzOTA0Mjc4NQ==","url":"https://api.github.com/repos/OpenSIPS/opensips/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"bogdan-iancu","id":3973594,"node_id":"MDQ6VXNlcjM5NzM1OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3973594?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdan-iancu","html_url":"https://github.com/bogdan-iancu","followers_url":"https://api.github.com/users/bogdan-iancu/followers","following_url":"https://api.github.com/users/bogdan-iancu/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-iancu/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-iancu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-iancu/subscriptions","organizations_url":"https://api.github.com/users/bogdan-iancu/orgs","repos_url":"https://api.github.com/users/bogdan-iancu/repos","events_url":"https://api.github.com/users/bogdan-iancu/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-iancu/received_events","type":"User","site_admin":false},"assignees":[{"login":"bogdan-iancu","id":3973594,"node_id":"MDQ6VXNlcjM5NzM1OTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3973594?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdan-iancu","html_url":"https://github.com/bogdan-iancu","followers_url":"https://api.github.com/users/bogdan-iancu/followers","following_url":"https://api.github.com/users/bogdan-iancu/following{/other_user}","gists_url":"https://api.github.com/users/bogdan-iancu/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdan-iancu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdan-iancu/subscriptions","organizations_url":"https://api.github.com/users/bogdan-iancu/orgs","repos_url":"https://api.github.com/users/bogdan-iancu/repos","events_url":"https://api.github.com/users/bogdan-iancu/events{/privacy}","received_events_url":"https://api.github.com/users/bogdan-iancu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-06-13T09:00:57Z","updated_at":"2018-06-19T20:38:53Z","closed_at":null,"author_association":"NONE","body":"Hello! Opensips cannot parse INVITE with two 'P-Asserted-Identity' headers. For example, 'P-Asserted-Identity' headers from INVITE request (order is saved):\r\n```\r\nP-Asserted-Identity: \"99999999999 99999999999\" <sip:99999999999@mpbx.sip.domain.com>\r\nP-Asserted-Identity: \"99999999999 99999999999\" <tel:+99999999999>\r\n```\r\n\r\nOpensips logs:\r\n```\r\nJun  7 07:48:06 opensips /usr/sbin/opensips[4779]: ERROR:sipmsgops:sip_validate_hdrs: invalid uri type [[tel:+99999999999] in first [P-Asserted-Identity] value (SIP or SIPS expected)\r\n```\r\nFrom rfc3325:\r\n```\r\n      PAssertedID = \"P-Asserted-Identity\" HCOLON PAssertedID-value\r\n                      *(COMMA PAssertedID-value)\r\n      PAssertedID-value = name-addr / addr-spec\r\n\r\n   A P-Asserted-Identity header field value MUST consist of exactly one\r\n   name-addr or addr-spec.  There may be one or two P-Asserted-Identity\r\n   values.  If there is one value, it MUST be a sip, sips, or tel URI.\r\n   If there are two values, one value MUST be a sip or sips URI and the\r\n   other MUST be a tel URI.  It is worth noting that proxies can (and\r\n   will) add and remove this header field.\r\n```\r\n\r\nFrom rfc3261:\r\n```\r\nname-addr      =  [ display-name ] LAQUOT addr-spec RAQUOT\r\naddr-spec      =  SIP-URI / SIPS-URI / absoluteURI\r\nabsoluteURI    =  scheme \":\" ( hier-part / opaque-part )\r\nscheme         =  ALPHA *( ALPHA / DIGIT / \"+\" / \"-\" / \".\" )\r\n```\r\nOpensips version:\r\n```\r\nversion: opensips 2.3.3 (x86_64/linux)\r\nflags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, HP_MALLOC, FAST_LOCK-FUTEX-ADAPTIVE_WAIT\r\nADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535\r\npoll method support: poll, epoll_lt, epoll_et, sigio_rt, select.\r\ngit revision: a0bed9d\r\nmain.c compiled on 20:03:01 May 15 2018 with gcc 4.8.3\r\n```\r\n\r\nThis case work correctly on opensips version 2.1.\r\nI found this error after update opensips to 2.3 version.\r\nSimilarly case: https://github.com/OpenSIPS/opensips/issues/1385\r\nCan you check it? Thanks!"}}
{"actor":{"display_login":"bogdan-iancu"}}