[asterisk-r2] [MFCR2+LIBOPENR2 TELEFONICA COLOMBIA]

Moises Silva moises.silva at gmail.com
Sat Apr 4 21:03:19 CDT 2009


As I said, you should create a simple dial plan, just a simple
Answer(), Dial() and Hangup(), what's the point of confusing us and
yourself with other stuff?

Also include the output of mfcr2 show version and core show version.

Moy

On Sat, Apr 4, 2009 at 3:32 PM, Carlos Andrés Tapasco Viera
<ctapasco at opengroupsa.com> wrote:
> Hi Moy, here is my dialplan.  I've to wait until Monday in order to
> communicate with my provider, meanwhile, I'll still trying and learning from
> you. Thanks
>
> **************************************
> /etc/asterisk/extensions.conf
> **************************************
> [general]
> static=yes
> writeprotect=no
> autofallthrough=yes
> clearglobalvars=no
> priorityjumping=yes
> ;
> [globals]
> MAXUSER => 5
> TRUNKTEL => DAHDI/g0
> ;
> ;---- Tráfico entrante via E1-R2 ------
> [entrante]
> exten => 070,1,GoTo(ivr-centroaguas,s,1)
> exten => 071,1,Macro(extensiones,SIP/107,107)
> exten => 072,1,Macro(extensiones,SIP/108,108)
> exten => 073,1,Macro(extensiones,SIP/115,115)
> exten => 074,1,Macro(extensiones,SIP/118,118)
> exten => 075,1,Macro(extensiones,SIP/119,119)
> exten => 076,1,Macro(extensiones,SIP/122,122)
> exten => 077,1,Macro(extensiones,SIP/123,123)
> exten => 078,1,Macro(extensiones,SIP/134,134)
> exten => 079,1,Macro(extensiones,SIP/140,140)
> exten => 080,1,Macro(extensiones,SIP/141,141)
> exten => 081,1,Macro(extensiones,SIP/142,142)
> exten => 082,1,Macro(extensiones,SIP/133,133)
> exten => 083,1,Macro(extensiones,SIP/301,301)
> exten => 084,1,Macro(extensiones,SIP/305,305)
> exten => 085,1,Macro(extensiones,SIP/401,401)
> exten => 086,1,Macro(extensiones,SIP/402,402)
> ;
> [macro-extensiones]
> exten => s,1,Set(CHANNEL(language)=es)
> exten => s,n(start),Dial(${ARG1},30,rtT)
> exten => s,n,VoiceMail(${ARG2}@default)
> exten => s,n,Hangup()
> ;
> [macro-conferencia]
> exten => s,1,MeetMeCount(${ARG1}|count)
> exten => s,n,GotoIF($["${count}" >= "${MAXUSER}"]?103)
> exten => s,n,Authenticate(5678)
> exten => s,n,MeetMe(${ARG1}|pi)
> exten => s,n,Playback(vm-goodbye)
> exten => s,n,Hangup
> exten => s,103,Background(conf-full)
> exten => s,104,Hangup
> ;
> [macro-operadora]
> exten => s,1(main),Dial(${ARG1},10,rtT)
> exten => s,n,Dial(SIP/102,10,rtT)
> exten => s,n,Dial(SIP/103,10,rtT)
> exten => s,n,Dial(SIP/104,10,rtT)
> exten => s,n,Dial(SIP/105,10,rtT)
> exten => s,n,Dial(SIP/106,10,rtT)
> exten => s,n,Macro(extensiones,SIP/100,100)
> ;
> [ext-gerencia]
> exten => 200,1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> ;
> [ext-recepcion]
> exten => 100,1,Macro(operadora,SIP/${EXTEN})
> ;
> [ext-administrativo]
> exten => _10[1789],1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => _11[0-13-57-9],1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => _12[02-58-9],1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => _13[0-4-9],1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => _14[0-5],1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => _15[0-4],1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => _16[0-2],1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => 184,1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => 199,1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => _20[12],1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => 300,1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => 500,1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => 800,1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => 911,1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => _30[1-9],1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> exten => _40[12],1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> ;
> [ext-opengroup]
> exten => 01,1,Macro(extensiones,SIP/${EXTEN},${EXTEN})
> ;
> [local]
> exten => _9NXXXXXX,1,Answer()
> exten => _9NXXXXXX,n,Set(_MFCR2_CATEGORY=national_priority_subscriber)
> exten => _9NXXXXXX,n,Dial(${TRUNKTEL}/${EXTEN:1},,rtT)
> exten => _9NXXXXXX,n,Hangup()
> ;
> [servicios]
> exten => *90,1,VoiceMailMain(@default)
> exten => *90,n,Hangup()
> exten => *91,1,Macro(conferencia,300)
> ;
> ;------------ MANEJO DE PERMISOS ----------------
> [gerencia]
> include => ext-gerencia
> include => ext-administrativo
> include => ext-recepcion
> include => servicios
> include => ext-opengroup
> ;
> [recepcion]
> include => ext-gerencia
> include => ext-recepcion
> include => ext-administrativo
> include => local
> include => servicios
> include => ext-opengroup
> ;
> [administrativo]
> include => ext-gerencia
> include => ext-administrativo
> include => ext-recepcion
> include => servicios
> include => ext-opengroup
> ;
> [opengroup]
> include => ext-gerencia
> include => ext-administrativo
> include => ext-recepcion
> include => servicios
> include => ext-opengroup
> include => local
> ;
> [ivr-centroaguas]
> exten => s,1,BackGround(ivr_centroaguas/bienvenida)
> exten => s,n(menu),BackGround(ivr_centroaguas/opciones)
> exten => s,n,BackGround(ivr_centroaguas/despedida)
> exten => s,n,WaitExten(1)
> exten => i,1,GoTo(s,menu)
> exten => t,1,Macro(operadora,SIP/100)
> exten => 1,1,GoTo(ext-administrativo,109,1)
> exten => 2,1,Macro(operadora,SIP/100)
>
> ****************************************
> ****************************************
>
> On Sat, Apr 4, 2009 at 3:50 PM, Moises Silva <moises.silva at gmail.com> wrote:
>>
>> Post in pastebin your dial plan (if its too complex create a simple
>> dial plan). You should not see that message unless you are setting an
>> invalid category with Set(_MFCR2_CATEGORY=something-misspelled).
>>
>> Ask your telco why are they rejecting your call.
>>
>> Moy
>>
>> On Sat, Apr 4, 2009 at 11:17 AM, Carlos Andrés Tapasco Viera
>> <ctapasco at opengroupsa.com> wrote:
>> > Hi Juan, thanks for your suggestion, but the trouble still to be the
>> > same.
>> > I've tried with all options for mfcr2_category (national_subscriber,
>> > national_priority_subscriber, international_subscriber,
>> > international_priority_subscriber and collect_call).  I don't know why
>> > if I
>> > set for example mfcr2_category=national_priority_subscriber in CLI
>> > appears
>> > "National Subscriber" as invalid and later try to use "National Priority
>> > Subscriber" as default.  No matter category I used, ever asks first for
>> > "National Subscriber", I don't understand.
>> >
>> > ****************************
>> > Executing [94862030 at opengroup:1] Dial("SIP/01-b742fca0",
>> > "DAHDI/g0/4862030,,rtT") in new stack
>> > [Apr  4 12:17:47] WARNING[14914]: chan_dahdi.c:1646
>> > dahdi_r2_get_channel_category: Invalid category specified 'National
>> > Subscriber' for chan DAHDI/1-1, using default National Priority
>> > Subscriber
>> >     -- Called g0/4862030
>> > [Apr  4 12:17:49] NOTICE[14914]: chan_dahdi.c:1926 dahdi_r2_write_log:
>> > Chan
>> > 1 - Far end disconnected. Reason: Network Congestion
>> >     -- MFC/R2 call disconnected on chan 1
>> >     -- DAHDI/1-1 is circuit-busy
>> >     -- Hungup 'DAHDI/1-1'
>> >   == Everyone is busy/congested at this time (1:0/1/0)
>> >     -- Executing [94862030 at opengroup:2] Hangup("SIP/01-b742fca0", "") in
>> > new
>> > stack
>> >   == Spawn extension (opengroup, 94862030, 2) exited non-zero on
>> > 'SIP/01-b742fca0'
>> > [Apr  4 12:17:49] NOTICE[14429]: chan_dahdi.c:1796 dahdi_r2_on_call_end:
>> > MFC/R2 call end on chan 1
>> > ***************************
>> >
>> > On Sat, Apr 4, 2009 at 10:57 AM, Juan Rosero <juan.rosero at nowtek.net>
>> > wrote:
>> >>
>> >> I was having the exact same problem and it got fixed when I used itu
>> >> for
>> >> mfcr2_variant!
>> >>
>> >> I have inbound and outband calls, yay!
>> >>
>> >> Here's my configuration so it might help anybody in Colombia and Carlos
>> >> in
>> >> particular, although I use colombian provider ETB instead of
>> >> Telefónica...
>> >> If you need any other file just tell me.
>> >>
>> >> I have two spans but only one is for the E1 so I will only attach the
>> >> relevant configuration, carefull with the spans then...
>> >>
>> >> Here are the files:
>> >>
>> >> ***********
>> >> zaptel.conf
>> >> ***********
>> >>
>> >> # Span 2: WCT1/0 "Wildcard TE121 Card 0" HDB3/CCS/CRC4 RED RECOVERING
>> >> span=2,1,0,cas,hdb3
>> >> cas=9-23:1101
>> >> dchan=24
>> >> cas=25-39:1101
>> >>
>> >> # Global data
>> >>
>> >> loadzone        = fr
>> >> defaultzone     = fr
>> >>
>> >>
>> >> ***********
>> >> zapata.conf
>> >> ***********
>> >>
>> >> [trunkgroups]
>> >>
>> >> [channels]
>> >> language=es
>> >>
>> >>
>> >> ; Span 2: WCT1/0 "Wildcard TE121 Card 0" (MASTER) HDB3/
>> >>
>> >> signalling=mfcr2
>> >> mfcr2_variant=itu
>> >> mfcr2_get_ani_first=no
>> >> mfcr2_max_ani=10
>> >> mfcr2_max_dnis=3
>> >> mfcr2_category=national_subscriber
>> >> mfcr2_logdir=ETB
>> >> mfcr2_call_files=yes
>> >> mfcr2_logging=all
>> >> mfcr2_mfback_timeout=8000
>> >> mfcr2_metering_pulse_timeout=-1
>> >> mfcr2_allow_collect_calls=yes
>> >> mfcr2_double_answer=no
>> >> mfcr2_immediate_accept=no
>> >> mfcr2_forced_release=no
>> >> mfcr2_charge_calls=no
>> >>
>> >> context=from-zaptel
>> >> group=1,2
>> >> callgroup=1
>> >> pickupgroup=1
>> >> musiconhold=default
>> >> usecallerid=yes
>> >> channel => 9-23
>> >> channel => 25-39
>> >
>> >
>> >
>> > --
>> > Carlos Andrés Tapasco Viera
>> > OpenGroup S.A.
>> > Ingeniero Electrónico
>> > Area de Telecomunicaciones
>> > IP-PBX +57-24862030
>> > Mobile 1 +57-3117650143
>> > Mobile 2 +57-3012141132
>> > Santiago de Cali
>> > Valle del Cauca
>> > Colombia
>> > Sudamérica
>> >
>> > _______________________________________________
>> > --Bandwidth and Colocation Provided by http://www.api-digital.com--
>> >
>> > asterisk-r2 mailing list
>> > To UNSUBSCRIBE or update options visit:
>> >   http://lists.digium.com/mailman/listinfo/asterisk-r2
>> >
>>
>>
>>
>> --
>> "I do not agree with what you have to say, but I’ll defend to the
>> death your right to say it." Voltaire
>>
>> _______________________________________________
>> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>>
>> asterisk-r2 mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-r2
>
>
> --
> Carlos Andrés Tapasco Viera
> OpenGroup
> Ingeniero Electrónico
> Area de Telecomunicaciones
> IP-PBX +57-24862030
> Mobile 1 +57-3117650143
> Mobile 2 +57-3012141132
> Santiago de Cali
> Valle del Cauca
> Colombia
> Sudamérica
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-r2 mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-r2
>



-- 
"I do not agree with what you have to say, but I’ll defend to the
death your right to say it." Voltaire



More information about the asterisk-r2 mailing list