{"id":1196,"date":"2009-12-30T01:02:16","date_gmt":"2009-12-30T07:02:16","guid":{"rendered":"http:\/\/gregsowell.com\/?p=1196"},"modified":"2009-12-29T15:05:09","modified_gmt":"2009-12-29T21:05:09","slug":"inbound-calls-forwarded-to-external-numbers-wont-pass-calleridor-fail-to-dial-out","status":"publish","type":"post","link":"https:\/\/gregsowell.com\/?p=1196","title":{"rendered":"Inbound Calls Forwarded to External Numbers Won&#8217;t Pass CallerID(or Fail to Dial Out)"},"content":{"rendered":"<p><a href=\"http:\/\/www.cablesandkits.com\/?utm_source=gregsowell&#038;utm_medium=banner&#038;utm_content=728x90&#038;utm_campaign=gregsowell\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2009\/11\/blogbanner2.gif\" alt=\"blogbanner2\" title=\"CablesAndKits.com Rocks!\" width=\"637\" height=\"90\" class=\"alignnone size-full wp-image-1098\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2009\/11\/blogbanner2.gif 637w, https:\/\/gregsowell.com\/wp-content\/uploads\/2009\/11\/blogbanner2-300x42.gif 300w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><\/p>\n<p>This <a href=\"http:\/\/www.cisco.com\/en\/US\/products\/sw\/voicesw\/ps556\/products_tech_note09186a0080618a74.shtml\">Cisco article<\/a> describes the problem exactly!<\/p>\n<p>The scenario:<br \/>\nI set my desk phone&#8217;s call forward all to forward to my cell phone.  Someone from the outside calls my desk and it forwards to my cell.  The number ringing on my cell phone looks like the generic PRI, and not the caller or my desk phone.  For some people, the call won&#8217;t forward at all.  My first step is to do a debug isdn q931 on my gateway to see what I&#8217;m presenting to the PSTN.  <\/p>\n<li>My desk line is 9793939444.\n<li>The outside caller is 254663555.\n<li>My cell phone the number is forwarded to is 9793939444.\n<p>Debug isdn q931 with &#8220;Calling Party Selection&#8221; set to Originator:<\/p>\n<pre class=\"gs-code\"><code class=\"language-plaintext\">ZZZ-XXX-Phone-R1#\r\nDec  4 08:08:50.656: ISDN Se0\/1\/0:23 Q931: RX &lt;- SETUP pd = 8  callref = 0x0D93\r\n        Bearer Capability i = 0x8090A2\r\n                Standard = CCITT\r\n                Transfer Capability = Speech\r\n                Transfer Mode = Circuit\r\n                Transfer Rate = 64 kbit\/s\r\n        Channel ID i = 0xA98381\r\n                Exclusive, Channel 1\r\n        Calling Party Number i = 0x2183, &#039;2543663555&#039;\r\n                Plan:ISDN, Type:National\r\n        Called Party Number i = 0xC1, &#039;9793939444&#039;\r\n                Plan:ISDN, Type:Subscriber(local)\r\nDec  4 08:08:50.692: ISDN Se0\/1\/0:23 Q931: TX -&gt; CALL_PROC pd = 8  callref = 0x8\r\nD93\r\n        Channel ID i = 0xA98381\r\n                Exclusive, Channel 1\r\nDec  4 08:08:50.708: ISDN Se0\/1\/0:23 Q931: TX -&gt; SETUP pd = 8  callref = 0x0001\r\n        Bearer Capability i = 0x8090A2\r\n                Standard = CCITT\r\n                Transfer Capability = Speech\r\n                Transfer Mode = Circuit\r\n                Transfer Rate = 64 kbit\/s\r\n        Channel ID i = 0xA98382\r\n                Exclusive, Channel 2\r\n        Net Specific Fac i = 0x00E6\r\n        Calling Party Number i = 0x2183, &#039;2543663555&#039;\r\n                Plan:ISDN, Type:National\r\n        Called Party Number i = 0x80, &#039;9795956333&#039;\r\n                Plan:Unknown, Type:Unknown\r\n        Redirecting Number i = 0x00008F, &#039;4444&#039;\r\n                Plan:Unknown, Type:Unknown\r\nZZZ-XXX-Phone-R1#\r\nDec  4 08:08:50.796: ISDN Se0\/1\/0:23 Q931: RX &lt;- STATUS pd = 8  callref = 0x8001\r\n\r\n        Cause i = 0x82E46C74 - Invalid information element contents\r\n        Cause i = 0x82AB6C74 - Access information discarded\r\n        Call State i = 0x01\r\nDec  4 08:08:50.800: ISDN Se0\/1\/0:23 Q931: RX &lt;- CALL_PROC pd = 8  callref = 0x8\r\n001\r\n        Channel ID i = 0xA98382\r\n                Exclusive, Channel 2\r\nZZZ-XXX-Phone-R1#debug isdn q931\r\nDec  4 08:08:51.950: ISDN Se0\/1\/0:23 Q931: RX &lt;- PROGRESS pd = 8  callref = 0x80\r\n01\r\n        Progress Ind i = 0x8488 - In-band info or appropriate now available\r\nDec  4 08:08:51.954: ISDN Se0\/1\/0:23 Q931: TX -&gt; PROGRESS pd = 8  callref = 0x8D\r\n93\r\n        Progress Ind i = 0x8488 - In-band info or appropriate now available<\/code><\/pre>\n<p>As you can see in the debug above, the call heading back out the gateway is set to the outside caller&#8217;s phone number.  Generally the Calling Party Selection(CPS) is set to Originator.  What this means is that when a call is forwarded, it will appear to be coming from the calling party&#8217;s number.  This is where our problem lies.  When someone calls my desk from outside and the call is then forwarded back out the PSTN, the phone number will appear to come from a number that shouldn&#8217;t be sourced from my PRI.  What I can do is set the CPS so that it will change the source number to be the first forwarded device.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2009\/12\/inbound-call-forward.JPG\" alt=\"Device -&gt; Gateway -&gt; Outbound section -&gt; &quot;Calling Party Selection&quot;\" title=\"inbound-call-forward\" width=\"481\" height=\"179\" class=\"size-full wp-image-1234\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2009\/12\/inbound-call-forward.JPG 481w, https:\/\/gregsowell.com\/wp-content\/uploads\/2009\/12\/inbound-call-forward-300x111.jpg 300w\" sizes=\"auto, (max-width: 481px) 100vw, 481px\" \/><\/p>\n<p>Now, have a look at our debug.<\/p>\n<p>Debug isdn q931 with &#8220;Calling Party Selection&#8221; set to First Redirect Number (External):<\/p>\n<pre class=\"gs-code\"><code class=\"language-plaintext\">ZZZ-XXX-Phone-R1#\r\nDec  4 08:10:47.143: ISDN Se0\/1\/0:23 Q931: RX &lt;- SETUP pd = 8  callref = 0x0D94\r\n        Bearer Capability i = 0x8090A2\r\n                Standard = CCITT\r\n                Transfer Capability = Speech\r\n                Transfer Mode = Circuit\r\n                Transfer Rate = 64 kbit\/s\r\n        Channel ID i = 0xA98381\r\n                Exclusive, Channel 1\r\n        Calling Party Number i = 0x2183, &#039;2543663555&#039;\r\n                Plan:ISDN, Type:National\r\n        Called Party Number i = 0xC1, &#039;9793939444&#039;\r\n                Plan:ISDN, Type:Subscriber(local)\r\nDec  4 08:10:47.179: ISDN Se0\/1\/0:23 Q931: TX -&gt; CALL_PROC pd = 8  callref = 0x8\r\nD94\r\n        Channel ID i = 0xA98381\r\n                Exclusive, Channel 1\r\nDec  4 08:10:47.195: ISDN Se0\/1\/0:23 Q931: TX -&gt; SETUP pd = 8  callref = 0x0001\r\n        Bearer Capability i = 0x8090A2\r\n                Standard = CCITT\r\n                Transfer Capability = Speech\r\n                Transfer Mode = Circuit\r\n                Transfer Rate = 64 kbit\/s\r\n        Channel ID i = 0xA98382\r\nZZZ-XXX-Phone-R1#\r\n                Exclusive, Channel 2\r\n        Net Specific Fac i = 0x00E6\r\n        Calling Party Number i = 0x2180, &#039;9793939444&#039;\r\n                Plan:ISDN, Type:National\r\n        Called Party Number i = 0x80, &#039;9795956333&#039;\r\n                Plan:Unknown, Type:Unknown\r\n        Redirecting Number i = 0x00008F, &#039;4444&#039;\r\n                Plan:Unknown, Type:Unknown\r\nDec  4 08:10:47.279: ISDN Se0\/1\/0:23 Q931: RX &lt;- STATUS pd = 8  callref = 0x8001\r\n\r\n        Cause i = 0x82E474 - Invalid information element contents\r\n        Cause i = 0x82AB74 - Access information discarded\r\n        Call State i = 0x01\r\nDec  4 08:10:47.287: ISDN Se0\/1\/0:23 Q931: RX &lt;- CALL_PROC pd = 8  callref = 0x8\r\n001\r\n        Channel ID i = 0xA98382\r\n                Exclusive, Channel 2\r\nDec  4 08:10:48.140: ISDN Se0\/1\/0:23 Q931: RX &lt;- PROGRESS pd = 8  callref = 0x80\r\n01\r\n        Progress Ind i = 0x8488 - In-band info or appropriate now available\r\nDec  4 08:10:48.148: ISDN Se0\/1\/0:23 Q931: TX -&gt; PROGRESS pd = 8  callref = 0x8D\r\n94\r\n        Progress Ind i = 0x8488 - In-band info or appropriate now available<\/code><\/pre>\n<p>When the call heads out to the PSTN now, it looks like it is sourced from my desk phone.  Now the call will go through and I will be able to see that it is coming from my desk.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This Cisco article describes the problem exactly! The scenario: I set my desk phone&#8217;s call forward all to forward to my cell phone. Someone\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,16,19],"tags":[],"class_list":["post-1196","post","type-post","status-publish","format-standard","hentry","category-callmanager","category-cisco","category-voip"],"_links":{"self":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1196"}],"version-history":[{"count":19,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1196\/revisions"}],"predecessor-version":[{"id":1302,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1196\/revisions\/1302"}],"wp:attachment":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}