<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Leg setup returning to initial dial peer script in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442566#M384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response Yawchen,&amp;nbsp; I agree with what you say, but I have been trying for a week to make the dial-peer to act as an incoming and be able to execute the incoming script, and I don't know what else to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me fixing the IOS config? how can I make the dial-peer to be accepted as incoming? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2014 20:41:34 GMT</pubDate>
    <dc:creator>luisbethancourt</dc:creator>
    <dc:date>2014-07-10T20:41:34Z</dc:date>
    <item>
      <title>Leg setup returning to initial dial peer script</title>
      <link>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442564#M382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been working on an out-bound script (based on a the ) that applies to all calls that go through a specific voip dial-peer.&amp;nbsp; It is basically a form of force authorization code, but simpler to manage (at least the way I see it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason I can't force the dial-peer to appear as incoming, because of that I cannot use the incoming service, so I have to use the &lt;STRONG&gt;service fac_moded out-bound&lt;/STRONG&gt;. (I am attaching the script that I am using)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the dial peer configuration is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dial-peer voice 5 voip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; service fac_moded out-bound&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; destination-pattern 2....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; session protocol sipv2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; session target ipv4:x.x.x.x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally am able to play media to ask for pin,&amp;nbsp; capture the pin, the pin authenticates with what I need.&amp;nbsp; Everything works as planned, but then when it comes time to proceed with the authorized connection of the call, I issue a &lt;STRONG&gt;leg setup&lt;/STRONG&gt; command with the ndis value.&amp;nbsp; Instead of going right to the sip connection,&amp;nbsp; the call is coming again into the dial peer and the script runs a second time (a loop I cannot break).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess if I used the inbound service script, the leg setup command would simply finish the second leg of the call, and I would be able to finish the call without this problem, but I still have not found a way to configure the dial-peer to be classified as Incoming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to understand if this is an expected behavior?&amp;nbsp; maybe I am doing something wrong with the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how to achieve this will be highly appreciated.&amp;nbsp; when I finish the script and it is working I will post it for others to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 19:52:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442564#M382</guid>
      <dc:creator>luisbethancourt</dc:creator>
      <dc:date>2014-07-10T19:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Leg setup returning to initial dial peer script</title>
      <link>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442565#M383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should fix the issue from IOS config but not script itself. Looks like incoming dial-peer should handle the script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem you have is that you get the DNIS from incoming call (called number) then you do the call setup to that number which created a loop.&lt;/P&gt;&lt;P&gt;If you like to keep current outbound script&amp;nbsp; you can add a prefix on DNIS and create an outgoing dial-peer for that (but you need to remove that&amp;nbsp; prefix&amp;nbsp; before send the call out in that new dialpeer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 20:34:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442565#M383</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2014-07-10T20:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Leg setup returning to initial dial peer script</title>
      <link>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442566#M384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response Yawchen,&amp;nbsp; I agree with what you say, but I have been trying for a week to make the dial-peer to act as an incoming and be able to execute the incoming script, and I don't know what else to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me fixing the IOS config? how can I make the dial-peer to be accepted as incoming? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 20:41:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442566#M384</guid>
      <dc:creator>luisbethancourt</dc:creator>
      <dc:date>2014-07-10T20:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Leg setup returning to initial dial peer script</title>
      <link>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442567#M385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using CME or voice gateway ? i.e. the calling phone is registered in the same box Tcl script is running or from outside of BOX. A simple network diagram will help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 22:37:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442567#M385</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2014-07-10T22:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Leg setup returning to initial dial peer script</title>
      <link>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442568#M386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yawchen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The telephone is registered in the same box the TCL script is running.&amp;nbsp; the configuration diagram would be something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.cisco.com/legacyfs/online/fusion/82585_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to control with a PIN code all the calls the SIP Phone can make to different dial patterns. (international, cellphone, local).&amp;nbsp; Right now I was able to work this out doing this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Setup a dial-peer with the 9 destination-pattern prefix that has the CME Router itself as the session target, and has the authorization application associated to the out-bound dial-peer.&lt;/P&gt;&lt;P&gt;2. The script ask for a PIN, then does the authentication as expected, then does a regular expression to substitute the 9 with 8 and place the call using the leg setup command.&lt;/P&gt;&lt;P&gt;3. Setup a dial-peer with the 8 destination-pattern prefix that has the SIP Server as the session target.&amp;nbsp; this dial-peer has no scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this, my goal is achieved, but I am still not happy with how I am achieving it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ideal setup would be to have only one dial-peer with an incoming application, and when the script authenticates the user, proceed with the outbound leg setup.&amp;nbsp; Can this be achieved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 13:28:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442568#M386</guid>
      <dc:creator>luisbethancourt</dc:creator>
      <dc:date>2014-07-11T13:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Leg setup returning to initial dial peer script</title>
      <link>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442569#M387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is something to do with the phone is registered locally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With typical voice gateway , you may have 2 dialpeers&amp;nbsp; incoming and outgoing but should not need the outbound script.&lt;/P&gt;&lt;P&gt;In you case call coming with 9xxxx on incoming dialpeers then go out with xxxx on outgoing dialpeer. You can try it with an external phone. With the old ISR&amp;nbsp; 3845 I am using I can do what you like to do, but in new 29xx I have similar issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think your script (in and out) has any issue. Maybe you want to consult Cisco Tech Support for this dial-peer config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is a typical config used in voice gateway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dial-peer voice 900000 voip&lt;/P&gt;&lt;P&gt; description &amp;lt;==&amp;nbsp; Incoming Dial-Peer VOIP - TCL&lt;/P&gt;&lt;P&gt; service abc&lt;/P&gt;&lt;P&gt; session protocol sipv2&lt;/P&gt;&lt;P&gt; session transport tcp&lt;/P&gt;&lt;P&gt; incoming called-number .&lt;/P&gt;&lt;P&gt; voice-class codec 1&amp;nbsp; &lt;/P&gt;&lt;P&gt; voice-class sip profiles 2&lt;/P&gt;&lt;P&gt; dtmf-relay rtp-nte&lt;/P&gt;&lt;P&gt; ip qos dscp cs3 signaling&lt;/P&gt;&lt;P&gt; no vad&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dial-peer voice 900001 voip&lt;/P&gt;&lt;P&gt; description &amp;lt;= outgoing dial peer - TCL&lt;/P&gt;&lt;P&gt; destination-pattern 321…….&lt;/P&gt;&lt;P&gt; session protocol sipv2&lt;/P&gt;&lt;P&gt; session target ipv4:xxx.xxx.xxx.xxx&lt;/P&gt;&lt;P&gt; voice-class codec 1&amp;nbsp; &lt;/P&gt;&lt;P&gt; dtmf-relay cisco-rtp rtp-nte&lt;/P&gt;&lt;P&gt; no vad&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 19:57:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442569#M387</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2014-07-11T19:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Leg setup returning to initial dial peer script</title>
      <link>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442570#M388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have an answer from CISCO Tech Support ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 09:38:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/leg-setup-returning-to-initial-dial-peer-script/m-p/3442570#M388</guid>
      <dc:creator>Support Blackned</dc:creator>
      <dc:date>2014-11-11T09:38:22Z</dc:date>
    </item>
  </channel>
</rss>

