[asterisk-users] PRI Connection in Lima, Peru
Eric "ManxPower" Wieling
eric at fnords.org
Tue Aug 8 11:16:28 MST 2006
On Digital interfaces (PRI, SIP, etc) you are expected to check the
value of HANGUPCAUSE and play the correct message to the caller. The
telco does not do this for you on these types of interfaces.
Carlos Prieto wrote:
> OK, sorry for not being so explicit.
> Here is the console output when i try to call no a non-existant number. I
> don't get the message from the provider telling me the number does not
> exist. But, if i place a call through an analog line, i got the provider
> message.
>
> -- Accepting AUTHENTICATED call from 201.240.77.46:
> > requested format = gsm,
> > requested prefs = (),
> > actual format = gsm,
> > host prefs = (g729|gsm|ulaw|alaw),
> > priority = mine
> -- Executing Macro("IAX2/599-2", "dialout-trunk|1|5622716||") in new
> stack
> -- Executing GotoIf("IAX2/599-2", "1?3:2") in new stack
> -- Goto (macro-dialout-trunk,s,3)
> -- Executing Macro("IAX2/599-2", "user-callerid") in new stack
> -- Executing GotoIf("IAX2/599-2", "0?report") in new stack
> -- Executing GotoIf("IAX2/599-2", "0?start") in new stack
> -- Executing Set("IAX2/599-2", "REALCALLERIDNUM=599") in new stack
> -- Executing NoOp("IAX2/599-2", "REALCALLERIDNUM is 599") in new stack
> -- Executing Set("IAX2/599-2", "AMPUSER=599") in new stack
> -- Executing Set("IAX2/599-2", "AMPUSERCIDNAME=Carlos Prieto") in new
> stack
> -- Executing GotoIf("IAX2/599-2", "0?report") in new stack
> -- Executing Set("IAX2/599-2", "CALLERID(all)=Carlos Prieto <599>") in
> new stack
> -- Executing NoOp("IAX2/599-2", "Using CallerID "Carlos Prieto" <599>")
> in new stack
> -- Executing Macro("IAX2/599-2", "record-enable|599|OUT") in new stack
> -- Executing GotoIf("IAX2/599-2", "0 > 0?2:4") in new stack
> -- Goto (macro-record-enable,s,4)
> -- Executing AGI("IAX2/599-2",
> "recordingcheck|20060808-125641|1155059801.39") in new stack
> -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
> recordingcheck|20060808-125641|1155059801.39: Outbound recording not
> enabled
> -- AGI Script recordingcheck completed, returning 0
> -- Executing NoOp("IAX2/599-2", "No recording needed") in new stack
> -- Executing Macro("IAX2/599-2", "outbound-callerid|1") in new stack
> -- Executing GotoIf("IAX2/599-2", "1?start") in new stack
> -- Goto (macro-outbound-callerid,s,3)
> -- Executing NoOp("IAX2/599-2", "REALCALLERIDNUM is 599") in new stack
> -- Executing Set("IAX2/599-2", "USEROUTCID=") in new stack
> -- Executing Set("IAX2/599-2", "EMERGENCYCID=") in new stack
> -- Executing Set("IAX2/599-2", "TRUNKOUTCID=") in new stack
> -- Executing GotoIf("IAX2/599-2", "1?trunkcid") in new stack
> -- Goto (macro-outbound-callerid,s,11)
> -- Executing GotoIf("IAX2/599-2", "1?usercid") in new stack
> -- Goto (macro-outbound-callerid,s,13)
> -- Executing GotoIf("IAX2/599-2", "1?report") in new stack
> -- Goto (macro-outbound-callerid,s,15)
> -- Executing NoOp("IAX2/599-2", "CallerID set to "Carlos Prieto" <599>")
> in new stack
> -- Executing Set("IAX2/599-2", "GROUP()=OUT_1") in new stack
> -- Executing GotoIf("IAX2/599-2", "0?108") in new stack
> -- Executing Set("IAX2/599-2", "DIAL_NUMBER=5622716") in new stack
> -- Executing Set("IAX2/599-2", "DIAL_TRUNK=1") in new stack
> -- Executing AGI("IAX2/599-2", "fixlocalprefix") in new stack
> -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
> -- AGI Script fixlocalprefix completed, returning 0
> -- Executing Set("IAX2/599-2", "OUTNUM=5622716") in new stack
> -- Executing Set("IAX2/599-2", "custom=ZAP/g1") in new stack
> -- Executing GotoIf("IAX2/599-2", "0?16") in new stack
> -- Executing Dial("IAX2/599-2", "ZAP/g1/5622716|120|tTrwW") in new stack
> -- Requested transfer capability: 0x00 - SPEECH
> * -- Called g1/5622716*
> -- Zap/1-1 is proceeding passing it to IAX2/599-2
> *--* *Channel 0/1, span 1 got hangup request
> * *-- Hungup 'Zap/1-1'
> == Everyone is busy/congested at this time (1:0/0/1)*
> -- Executing Goto("IAX2/599-2", "s-CHANUNAVAIL|1") in new stack
> -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
> -- Executing NoOp("IAX2/599-2", "Dial failed due to CHANUNAVAIL") in new
> stack
> -- Executing Macro("IAX2/599-2", "outisbusy|") in new stack
> -- *Executing Playback("IAX2/599-2", "all-circuits-busy-now") in new
> stack
> -- Playing 'all-circuits-busy-now' (language 'es')
> * -- Executing Playback("IAX2/599-2", "pls-try-call-later") in new stack
> -- Playing 'pls-try-call-later' (language 'es')
> -- Hungup 'IAX2/599-2'
>
> Here is the console output when calling to an existant number. From time to
> time, totally random; i got the previous message.
>
> -- Accepting AUTHENTICATED call from 201.240.77.46:
> > requested format = gsm,
> > requested prefs = (),
> > actual format = gsm,
> > host prefs = (g729|gsm|ulaw|alaw),
> > priority = mine
> -- Executing Macro("IAX2/599-2", "dialout-trunk|1|3623885||") in new
> stack
> -- Executing GotoIf("IAX2/599-2", "1?3:2") in new stack
> -- Goto (macro-dialout-trunk,s,3)
> -- Executing Macro("IAX2/599-2", "user-callerid") in new stack
> -- Executing GotoIf("IAX2/599-2", "0?report") in new stack
> -- Executing GotoIf("IAX2/599-2", "0?start") in new stack
> -- Executing Set("IAX2/599-2", "REALCALLERIDNUM=599") in new stack
> -- Executing NoOp("IAX2/599-2", "REALCALLERIDNUM is 599") in new stack
> -- Executing Set("IAX2/599-2", "AMPUSER=599") in new stack
> -- Executing Set("IAX2/599-2", "AMPUSERCIDNAME=Carlos Prieto") in new
> stack
> -- Executing GotoIf("IAX2/599-2", "0?report") in new stack
> -- Executing Set("IAX2/599-2", "CALLERID(all)=Carlos Prieto <599>") in
> new stack
> -- Executing NoOp("IAX2/599-2", "Using CallerID "Carlos Prieto" <599>")
> in new stack
> -- Executing Macro("IAX2/599-2", "record-enable|599|OUT") in new stack
> -- Executing GotoIf("IAX2/599-2", "0 > 0?2:4") in new stack
> -- Goto (macro-record-enable,s,4)
> -- Executing AGI("IAX2/599-2",
> "recordingcheck|20060808-130315|1155060195.44") in new stack
> -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
> recordingcheck|20060808-130315|1155060195.44: Outbound recording not
> enabled
> -- AGI Script recordingcheck completed, returning 0
> -- Executing NoOp("IAX2/599-2", "No recording needed") in new stack
> -- Executing Macro("IAX2/599-2", "outbound-callerid|1") in new stack
> -- Executing GotoIf("IAX2/599-2", "1?start") in new stack
> -- Goto (macro-outbound-callerid,s,3)
> -- Executing NoOp("IAX2/599-2", "REALCALLERIDNUM is 599") in new stack
> -- Executing Set("IAX2/599-2", "USEROUTCID=") in new stack
> -- Executing Set("IAX2/599-2", "EMERGENCYCID=") in new stack
> -- Executing Set("IAX2/599-2", "TRUNKOUTCID=") in new stack
> -- Executing GotoIf("IAX2/599-2", "1?trunkcid") in new stack
> -- Goto (macro-outbound-callerid,s,11)
> -- Executing GotoIf("IAX2/599-2", "1?usercid") in new stack
> -- Goto (macro-outbound-callerid,s,13)
> -- Executing GotoIf("IAX2/599-2", "1?report") in new stack
> -- Goto (macro-outbound-callerid,s,15)
> -- Executing NoOp("IAX2/599-2", "CallerID set to "Carlos Prieto" <599>")
> in new stack
> -- Executing Set("IAX2/599-2", "GROUP()=OUT_1") in new stack
> -- Executing GotoIf("IAX2/599-2", "0?108") in new stack
> -- Executing Set("IAX2/599-2", "DIAL_NUMBER=3623885") in new stack
> -- Executing Set("IAX2/599-2", "DIAL_TRUNK=1") in new stack
> -- Executing AGI("IAX2/599-2", "fixlocalprefix") in new stack
> -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
> -- AGI Script fixlocalprefix completed, returning 0
> -- Executing Set("IAX2/599-2", "OUTNUM=3623885") in new stack
> -- Executing Set("IAX2/599-2", "custom=ZAP/g1") in new stack
> -- Executing GotoIf("IAX2/599-2", "0?16") in new stack
> -- Executing Dial("IAX2/599-2", "ZAP/g1/3623885|120|tTrwW") in new stack
> -- Requested transfer capability: 0x00 - SPEECH
> *-- Called g1/3623885*
> -- Zap/1-1 is proceeding passing it to IAX2/599-2
> *-- Zap/1-1 is ringing
> -- Zap/1-1 answered IAX2/599-2
> * -- Hungup 'Zap/1-1'
> -- Hungup 'IAX2/599-2'
>
> Kind regards.
>
> On 8/8/06, Moises Silva <moises.silva at gmail.com> wrote:
>>
>> Hi Carlos, are you new in asterisk-users? My recommendation would be
>> to post more information about what is Asterisk showing in the verbose
>> console. Posting only configurations with a brief description of the
>> problem from a "end user" perspective is something that I dont see
>> much usefull.
>>
>> Regards
>>
>> On 8/8/06, Carlos Prieto <prieto.carlos at gmail.com> wrote:
>> >
>> > Hi !
>> >
>> > I have a partial PRI conection with Telmex, and sometimes when i try to
>> > place a call, i got the message "all circuits are busy now", however
>> all
>> > channels are not in use. The same ocurres when i place a call to a
>> > non-existant number or to a busy number; i got "all circuits are busy
>> now"
>> > instead of getting "that number does not exist" from the provider or
>> listen
>> > the "busy" tone. When i place a call to a residential number and that
>> number
>> > does not answer, i don't hear the message from the voicemail ("You have
>> > tried to reach the number 123455. Please leave your message after the
>> tone")
>> > but instead i only hear the "beep" signal for leaving the message.
>> >
>> > Here are my configurations:
>> >
>> >
>> > /etc/zaptel.conf:
>> >
>> > span=1,1,0,ccs,hdb3
>> > bchan=1-15
>> > dchan=16
>> > loadzone = us
>> > defaultzone = us
>> >
>> > /etc/asterisk/zapata.conf:
>> >
>> > [channels]
>> > context=from-trunk
>> > switchtype=euroisdn
>> > signalling=pri_cpe
>> > group=1
>> > channel => 1-15
>> > callgroup=1
>> > pickupgroup=1
>> >
>> > "zap show status":
>> >
>> > Description Alarms IRQ
>> > bpviol CRC4
>> > Digium Wildcard TE110P T1/E1 Card 0 OK
>> 18964 0 0
>> >
>> >
>> > "pri show span 1":
>> >
>> > Primary D-channel: 16
>> > Status: Provisioned, Up, Active
>> > Switchtype: EuroISDN
>> > Type: CPE
>> > Window Length: 0/7
>> > Sentrej: 0
>> > SolicitFbit: 0
>> > Retrans: 0
>> > Busy: 0
>> > Overlap Dial: 0
>> > T200 Timer: 1000
>> > T203 Timer: 10000
>> > T305 Timer: 30000
>> > T308 Timer: 4000
>> > T313 Timer: 4000
>> > N200 Counter: 3
>> > Any help, will be appreciated.
>> >
>> > Thanks in advance.
>> > Kind regards.
>> >
>> > _______________________________________________
>> > --Bandwidth and Colocation provided by Easynews.com --
>> >
>> > asterisk-users mailing list
>> > To UNSUBSCRIBE or update options visit:
>> >
>> > http://lists.digium.com/mailman/listinfo/asterisk-users
>> >
>> >
>> >
>>
>>
>> --
>> "Su nombre es GNU/Linux, no solamente Linux, mas info en
>> http://www.gnu.org"
>> _______________________________________________
>> --Bandwidth and Colocation provided by Easynews.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
Now accepting new clients in Birmingham, Atlanta, Huntsville,
Chattanooga, and Montgomery.
More information about the asterisk-users
mailing list