<p>Porting numbers sometimes is not so easy and plain.</p>
<div class="gmail_quote">On Jun 9, 2014 2:48 PM, "natalia silva" <<a href="mailto:natalianew@gmail.com">natalianew@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>First I would like to thank all the help found here on the forum</div><div>Thank you to Mr. Gustavo Cremella and Mc Ricardo GRATH.</div><div><br></div><div>The solution was found after some adjustments</div>
<div>Remembering that they are functional in my environment and more:</div><div><br></div><div>1 - My number is ported from another carrier.</div><div>2 - Context of input and output</div><div>3 - Setting the Dahdi-in virtual numbers provider to sync with its corresponding range ported in my real number.</div>
<div>4 - Clock facing the operator, as in the case of Mundivox she needs to deliver the clock operator being called. Example I call a number from the operator OI, then Mundivox handle this connection and delivery to OI to complete the connection.</div>
<div><br></div><div> <br></div><div>chan_dahdi.conf</div><div>[Channels]</div><div>language = br</div><div>context = default (default context for incoming calls)</div><div>mfcr2_variant = en</div><div>mfcr2_max_ani = 20</div>
<div>mfcr2_max_dnis = 10</div><div>mfcr2_category = national_subscriber</div><div>mfcr2_logdir = span_ALL</div><div>mfcr2_call_files = yes</div><div>mfcr2_metering_pulse_timeout = 1000</div><div>, Mfcr2_double_answer = yes (optional)</div>
<div>group = 1</div><div>context = dahdi-in (Uses the [internal] context in extensions.conf, as mentioned in point 3 above)</div><div>signaling = mfcr2</div><div>channel => 1-15</div><div>context = default (Incoming calls go to [incoming] in extensions.conf)</div>
<div>group = 63 (Gets, sets or clears the channel group, the limit is 63 so he was left for redundancy)</div><div><br></div><div># Include dahdi-channels.conf</div><div><br></div><div>system.conf</div><div>span = 1,1,0, cas, hdb3</div>
<div>cas = 1-15:1101</div><div>echocanceller Mg2 = 0.1 to 31</div><div>loadzone = br</div><div>defaultzone = br</div><div><br></div><div><br></div><div>[Dahdi-in]</div><div>, Mundivox (range of virtual numbers, Mundivox)</div>
<div>exten => _18 [2-7] X, 1, Answer ()</div><div>exten => _18 [2-7] X, n, Queue (incoming_local, rn,,, 1)</div><div>exten => _18 [2-7] X, n, Goto (Start Menu-, s, 1)</div><div>exten => _18 [2-7] X, n, Hangup ()</div>
<div><br></div><div>exten => _29 [4-7] X, 1, Answer ()</div><div>exten => _29 [4-7] X, n, queu (incoming_local, rn,,, 1)</div><div>exten => _29 [4-7] X, n, Goto (Start Menu-, s, 1)</div><div>exten => _29 [4-7] X, n, Hangup ()</div>
<div><br></div><div>Was required for the DDR's range that has this operator, it will make all connections to this range fall on the main trunk</div><div><br></div><div>Already for a DDR'especícifico fall into a specific extension then you need to identify.</div>
<div>This is simple just enter <cli and analyze logs, make a link to a particular DDR. In my case I started to see this error:</div><div><br></div><div>new MFC/R2 call detected on chan 1.</div><div>Offered MFC/R2 call on chan 1. = 21,980,823,777 ANI, DNIS = 1825, Category = National Subscriber</div>
<div>[Jun 5 12:24:19] NOTICE [9466]: chan_dahdi.c: 4007 dahdi_r2_on_call_offered: MFC/R2 call on channel 1 requested non-existent extension '1825 'in context' default '. Rejecting call.</div><div>MFC/R2 call disconnected on channel 1</div>
<div>MFC/R2 call end on channel 1</div><div><br></div><div><br></div><div>So I needed to create this fix which then enter the call to your specific extension, in dahdi-in too.</div><div>exten => _1825, 1, Answer ()</div>
<div>exten => _1825, n, Macro (dialexten, 4105.20)</div><div>exten => _1825, n, Hangup ()</div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-r2 mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-r2" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-r2</a><br></blockquote></div>