Koozali.org: home of the SME Server

sometihink strange with sali channel status unkonwn

Offline bbialy

  • ****
  • 105
  • +0/-0
sometihink strange with sali channel status unkonwn
« on: April 28, 2008, 11:04:57 AM »
Hi,
I've got sail 2.2.1-618 and asterisk 1.4.19.1  kernel 2.6.9-67.0.7.ELsmp

after reboot whole system asterisk is starting up but there is no chance to make connection
because channel STATUS is UNKNOWN
but if I
stop PBX via server-manager panel and start it again it's working fine

WHY??

this afternoon i will put asterisk console debug

Maciej
Reading with understanding is the hardest thing IN THE WORLD

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: sometihink strange with sali channel status unkonwn
« Reply #1 on: April 29, 2008, 08:04:21 AM »
What kind of channels?  SIP?  ZAP?   IAX?


Difficult to comment without a better diagnostic


Regards

Offline bbialy

  • ****
  • 105
  • +0/-0
Re: sometihink strange with sali channel status unkonwn
« Reply #2 on: May 08, 2008, 01:49:41 AM »
OK i was able to get some logs
first just after server boots up

agi debuging is on

Code: [Select]
    -- Executing [0511111111@internal:1] AGI("SIP/7515-b7e01eb8", "selintra|OutCluster|0511111111") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: SIP/7515-b7e01eb8
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1210203160.1
AGI Tx >> agi_callerid: 7515
AGI Tx >> agi_calleridname: 7515
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 0507004828
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: internal
AGI Tx >> agi_extension: 0511111111
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
    -- AGI Script selintra completed, returning 0
  == Auto fallthrough, channel 'SIP/7515-b7e01eb8' status is 'UNKNOWN'
    -- Executing [h@internal:1] Hangup("SIP/7515-b7e01eb8", "") in new stack
  == Spawn extension (internal, h, 1) exited non-zero on 'SIP/7515-b7e01eb8'

channel is sip
when made
Code: [Select]
sip show peers the peer is status is ok

now i make STOP PBX and START in Global settings in server-manager panel

the same call from the same phone with the same extension and the same trunkiline
Code: [Select]
    -- Executing [0511111111@internal:1] AGI("SIP/7515-0a1004c8", "selintra|OutCluster|0511111111") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: SIP/7515-0a1004c8
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1210203724.2
AGI Tx >> agi_callerid: 7515
AGI Tx >> agi_calleridname: 7515
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 0511111111
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: internal
AGI Tx >> agi_extension: 0511111111
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >> >
AGI Rx << SET PRIORITY 1
AGI Tx >> 200 result=0
AGI Rx << SET EXTENSION 0511111111
AGI Tx >> 200 result=0
AGI Rx << SET CONTEXT 1234447515_out
AGI Tx >> 200 result=0
    -- AGI Script selintra completed, returning 0
    -- Executing [0511111111@1234447515_out:1] AGI("SIP/7515-0a1004c8", "selintra|OutRoute|Out_Suento15") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
AGI Tx >> agi_request: selintra
AGI Tx >> agi_channel: SIP/7515-0a1004c8
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1210203724.2
AGI Tx >> agi_callerid: 7515
AGI Tx >> agi_calleridname: 7515
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 0511111111
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: 1234447515_out
AGI Tx >> agi_extension: 0511111111
AGI Tx >> agi_priority: 1
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >> >
AGI Rx << SET CALLERID 7515
AGI Tx >> 200 result=1
AGI Rx << SET VARIABLE GROUP() "OUTBOUND_GROUP"
AGI Tx >> 200 result=1
AGI Rx << GET VARIABLE GROUP_COUNT()
AGI Tx >> 200 result=1 (1)
AGI Rx << EXEC Dial SIP/0507004828@1234447515
    -- AGI Script Executing Application: (Dial) Options: (SIP/0511111111@1234447515)
    -- Called 0507004828@1234447515
    -- SIP/1234447515-0a148580 is making progress passing it to SIP/7515-0a1004c8
    -- SIP/1234447515-0a148580 is ringing
    -- SIP/1234447515-0a148580 is making progress passing it to SIP/7515-0a1004c8
    -- SIP/1234447515-0a148580 answered SIP/7515-0a1004c8
AGI Tx >> 200 result=-1
  == Spawn extension (1234447515_out, 0511111111, 1) exited non-zero on 'SIP/7515-0a1004c8'
    -- Executing [h@1234447515_out:1] Hangup("SIP/7515-0a1004c8", "") in new stack
  == Spawn extension (1234447515_out, h, 1) exited non-zero on 'SIP/7515-0a1004c8'
    -- Saved useragent "eyeBeam release 1004p stamp 31962" for peer 7515
« Last Edit: May 09, 2008, 02:44:19 AM by bbialy »
Reading with understanding is the hardest thing IN THE WORLD

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: sometihink strange with sali channel status unkonwn
« Reply #3 on: May 10, 2008, 11:06:22 AM »
I have not seen anything like this before. Something looks to be causing the AGI to stumble. There is a difference between the two calls you show...  The DNID (Dialled NUmber ID) is different in each case.  Do you know why?

Here is what I suggest you can do...

There is a DEBUG version of the AGI which we use here to trace AGI execution.  I have put the latest version up onto our web-server so you can download it.  Here is the procedure you will need to run...

Code: [Select]
cd /var/lib/asterisk/agi-bin/
wget http://selintra.com/selintra-622D
mv selintra selintra_save
mv selintra-622D selintra

Now, you need to reboot your system without asterisk.  So, at the linux console do..
Code: [Select]
config setprop asterisk status disabled
reboot
When the system comes back up start asterisk with asterisk -vvvvc

Turn on agi debugging in the normal way (agi debug) and run your call

Post the output

Whe you've finished re-enable asterisk with
Code: [Select]
config setprop asterisk status enabled
To remove the selintra-DEBUG code..

Code: [Select]
cd /var/lib/asterisk/agi-bin/
mv selintra_save selintra


Restart asterisk


Kind Regards