[asterisk-users] IAX softphone fails through PRI trunks with Hangup

2007-01-25 Thread Patrick W. Foster
I've a call center using IAX softphones provided by a third party.  
We've observed problems where the IAX phones seem unable to use our PRI 
trunks.  A sample anonymized call is provided below with the PRI debug 
calls embedded.  Any thoughts,
comments or suggestions would be welcome.  In anonymizing it, I preseved 
the format

and number of digits sent.

   -- Accepting AUTHENTICATED call from 192.168.1.164:
   requested format = alaw,
   requested prefs = (),
   actual format = ulaw,
   host prefs = (ulaw|alaw|gsm),
   priority = mine
   -- Executing Set(IAX2/4427-1, EMERGENCYROUTE=YES) in new stack
   -- Executing Macro(IAX2/4427-1, dialout-trunk|1|6167X||) in 
new stack

   -- Executing GotoIf(IAX2/4427-1, 1?3:2) in new stack
   -- Goto (macro-dialout-trunk,s,3)
   -- Executing Macro(IAX2/4427-1, user-callerid) in new stack
   -- Executing GotoIf(IAX2/4427-1, 0?report) in new stack
   -- Executing GotoIf(IAX2/4427-1, 0?start) in new stack
   -- Executing Set(IAX2/4427-1, REALCALLERIDNUM=4427) in new stack
   -- Executing NoOp(IAX2/4427-1, REALCALLERIDNUM is 4427) in new stack
   -- Executing Set(IAX2/4427-1, AMPUSER=4427) in new stack
   -- Executing Set(IAX2/4427-1, AMPUSERCIDNAME=USER18-IAX) in new 
stack

   -- Executing GotoIf(IAX2/4427-1, 0?report) in new stack
   -- Executing Set(IAX2/4427-1, CALLERID(all)=USER18-IAX 4427) 
in new stack
   -- Executing NoOp(IAX2/4427-1, Using CallerID USER18-IAX 
4427) in new stack

   -- Executing Macro(IAX2/4427-1, record-enable|4427|OUT) in new stack
   -- Executing GotoIf(IAX2/4427-1, 0  0?2:4) in new stack
   -- Goto (macro-record-enable,s,4)
   -- Executing AGI(IAX2/4427-1, 
recordingcheck|20070125-102531|1169738731.2435) in new stack

   -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
 recordingcheck|20070125-102531|1169738731.2435: Outbound recording not 
enabled

   -- AGI Script recordingcheck completed, returning 0
   -- Executing NoOp(IAX2/4427-1, No recording needed) in new stack
   -- Executing Macro(IAX2/4427-1, outbound-callerid|1) in new stack
   -- Executing GotoIf(IAX2/4427-1, 1?start) in new stack
   -- Goto (macro-outbound-callerid,s,3)
   -- Executing NoOp(IAX2/4427-1, REALCALLERIDNUM is 4427) in new stack
   -- Executing Set(IAX2/4427-1, USEROUTCID=8xx-6xx-) in new 
stack

   -- Executing Set(IAX2/4427-1, EMERGENCYCID=) in new stack
   -- Executing Set(IAX2/4427-1, TRUNKOUTCID=Business Name 
5xx-6xx-) in new stack

   -- Executing GotoIf(IAX2/4427-1, 0?trunkcid) in new stack
   -- Executing GotoIf(IAX2/4427-1, 1?trunkcid) in new stack
   -- Goto (macro-outbound-callerid,s,11)
   -- Executing GotoIf(IAX2/4427-1, 0?usercid) in new stack
   -- Executing Set(IAX2/4427-1, CALLERID(all)=Business Name 
5xx-6xx-) in new stack

   -- Executing GotoIf(IAX2/4427-1, 0?report) in new stack
   -- Executing Set(IAX2/4427-1, CALLERID(all)=8xx-6xx-) in 
new stack
   -- Executing NoOp(IAX2/4427-1, CallerID set to  8xx6xx) 
in new stack

   -- Executing Set(IAX2/4427-1, GROUP()=OUT_1) in new stack
   -- Executing GotoIf(IAX2/4427-1, 0?108) in new stack
   -- Executing Set(IAX2/4427-1, DIAL_NUMBER=6167X) in new stack
   -- Executing Set(IAX2/4427-1, DIAL_TRUNK=1) in new stack
   -- Executing AGI(IAX2/4427-1, fixlocalprefix) in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
   -- AGI Script fixlocalprefix completed, returning 0
   -- Executing Set(IAX2/4427-1, OUTNUM=6167X) in new stack
   -- Executing Set(IAX2/4427-1, custom=ZAP/g1) in new stack
   -- Executing GotoIf(IAX2/4427-1, 0?16) in new stack
   -- Executing Dial(IAX2/4427-1, ZAP/g1/6167X|150|r) in new stack
-- Making new call for cr 33745
   -- Requested transfer capability: 0x00 - SPEECH
 Protocol Discriminator: Q.931 (8)  len=46
 Call Ref: len= 2 (reference 977/0x3D1) (Originator)
 Message type: SETUP (5)
 [04 03 80 90 a2]
 Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer 
capability: Speech (0)
  Ext: 1  Trans mode/rate: 64kbps, 
circuit-mode (16)

  Ext: 1  User information layer 1: u-Law (34)
 [18 03 a9 83 84]
 Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0, 
Exclusive Dchan: 0

ChanSel: Reserved
   Ext: 1  Coding: 0   Number Specified   Channel 
Type: 3

   Ext: 1  Channel: 4 ]
 [1e 02 80 83]
 Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard 
(0) 0: 0   Location: User (0)
   Ext: 1  Progress Description: Calling 
equipment is non-ISDN. (3) ]

 [6c 0c 21 81 38 30 30 36 39 35 39 38 39 37]
 Calling Number (len=14) [ Ext: 0  TON: National Number (2)  NPI: 
ISDN/Telephony Numbering Plan (E.164/E.163) (1)
   Presentation: Presentation permitted, user 
number passed network screening (1) '8xx6xx' ]

 [70 0b 80 36 31 36 37 38 34 32 37 36 37]
 Called Number (len=13) [ Ext: 1  TON: 

Re: [asterisk-users] IAX softphone fails through PRI trunks with Hangup

2007-01-25 Thread Tim Panton


On 25 Jan 2007, at 16:48, Patrick W. Foster wrote:

I've a call center using IAX softphones provided by a third party.   
We've observed problems where the IAX phones seem unable to use our  
PRI trunks.  A sample anonymized call is provided below with the  
PRI debug calls embedded.  Any thoughts,
comments or suggestions would be welcome.  In anonymizing it, I  
preseved the format

and number of digits sent.


Do you have an IAX trace (either etherreal or IAX2 debug ) of a  
failed call ?


We had a similar problem in an early version of our  IAX softphone.
When I put the state-machine together I didn't expect the ringing  
message _ever_

come after a call is answered.

But it can, if you have

exten = s,1,Answer()
exten = s,2,Playback(your-call-may-be-recorded-blah-blah)
exten = s,3,Dial(Zap/g1/004416128824245) ; this line can generate a  
ringing message


Tim.



Tim Panton

www.mexuar.net
www.westhawk.co.uk/



___
--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