Askozia Forums
May 17, 2012, 02:57:51 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Phone rings after Hangup (2.0.4)  (Read 616 times)
BlackJack
Jr. Member
**

Karma: 0
Posts: 29


View Profile
« on: May 20, 2011, 05:34:55 am »

Hello,

when i call between extensions internal then everything works finde. When incomming calls come over ISDN or SIP Provider the phone rings again after hangup. I tested also the Snapshot r1732 with the same issue.

Some Debug info:

Code:
 == Using SIP RTP CoS mark 5
  == Using SIP VRTP CoS mark 6
    -- Executing [USER@SIP-PROVIDER-20868666614dd4e6a6a95fe-incoming:1] NoOp("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "incoming call from provider: SIPPROVIDER to USER") in new stack
    -- Executing [USER@SIP-PROVIDER-20868666614dd4e6a6a95fe-incoming:2] Set("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "HASVOICEMAIL="yes"") in new stack
    -- Executing [USER@SIP-PROVIDER-20868666614dd4e6a6a95fe-incoming:3] Set("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "MISSEDCAUSE=hungup") in new stack
    -- Executing [USER@SIP-PROVIDER-20868666614dd4e6a6a95fe-incoming:4] Set("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "SENDNOTIFICATIONS="USER@domain.tld"") in new stack
    -- Executing [USER@SIP-PROVIDER-20868666614dd4e6a6a95fe-incoming:5] Macro("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "main,SIP/9085&SIP/9185,9085,9085,to,20") in new stack
    -- Executing [s@macro-main:1] Dial("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "SIP/9085&SIP/9185,20,to") in new stack
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP CoS mark 6
    -- Called 9085
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP CoS mark 6
    -- Called 9185
    -- SIP/9185-00000021 is ringing
    -- SIP/9085-00000020 is ringing
  == Spawn extension (macro-main, s, 1) exited non-zero on 'SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f' in macro 'main'
  == Spawn extension (SIP-PROVIDER-20868666614dd4e6a6a95fe-incoming, USER, 5) exited non-zero on 'SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f'
    -- Executing [h@SIP-PROVIDER-20868666614dd4e6a6a95fe-incoming:1] NoOp("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "Hanging up incoming call from provider: SIPPROVIDER to h") in new stack
    -- Executing [h@SIP-PROVIDER-20868666614dd4e6a6a95fe-incoming:2] Macro("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "missedcallmail") in new stack
    -- Executing [s@macro-missedcallmail:1] NoOp("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "Entering the missed call mail macro") in new stack
    -- Executing [s@macro-missedcallmail:2] NoOp("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "DIALSTATUS: CANCEL") in new stack
    -- Executing [s@macro-missedcallmail:3] ExecIf("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "0?MacroExit()") in new stack
    -- Executing [s@macro-missedcallmail:4] NoOp("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "SENDNOTIFICATIONS: USER@domain.tld") in new stack
    -- Executing [s@macro-missedcallmail:5] ExecIf("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "0?MacroExit()") in new stack
    -- Executing [s@macro-missedcallmail:6] NoOp("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "MISSEDCAUSE: hungup") in new stack
    -- Executing [s@macro-missedcallmail:7] ExecIf("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "0?MacroExit()") in new stack
    -- Executing [s@macro-missedcallmail:8] NoOp("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "VMSTATUS: ") in new stack
    -- Executing [s@macro-missedcallmail:9] ExecIf("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "0?MacroExit()") in new stack
    -- Executing [s@macro-missedcallmail:10] Set("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "TMPMAILFILE=/var/asterisk/spool/tmp/email-7570a94ddba0da431fa0f5f77ed5991d") in new stack
    -- Executing [s@macro-missedcallmail:11] System("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "touch /var/asterisk/spool/tmp/email-7570a94ddba0da431fa0f5f77ed5991d") in new stack
    -- Executing [s@macro-missedcallmail:12] System("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "echo "date: `date`" > /var/asterisk/spool/tmp/email-7570a94ddba0da431fa0f5f77ed5991d") in new stack
    -- Executing [s@macro-missedcallmail:13] System("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "echo "to: USER@domain.tld" >> /var/asterisk/spool/tmp/email-7570a94ddba0da431fa0f5f77ed5991d") in new stack
    -- Executing [s@macro-missedcallmail:14] System("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "echo "subject: Missed Call (hungup)" >> /var/asterisk/spool/tmp/email-7570a94ddba0da431fa0f5f77ed5991d") in new stack
    -- Executing [s@macro-missedcallmail:15] System("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "echo "from: AskoziaPBX Notifications <tk@domain.tld>" >> /var/asterisk/spool/tmp/email-7570a94ddba0da431fa0f5f77ed5991d") in new stack
    -- Executing [s@macro-missedcallmail:16] System("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "echo >> /var/asterisk/spool/tmp/email-7570a94ddba0da431fa0f5f77ed5991d") in new stack
    -- Executing [s@macro-missedcallmail:17] System("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "echo "2011-05-20 - 08:06 from "CALLERNUMBER" <CALLERNUMBER>" >> /var/asterisk/spool/tmp/email-7570a94ddba0da431fa0f5f77ed5991d") in new stack
    -- Executing [s@macro-missedcallmail:18] System("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "/usr/bin/msmtp -C /etc/msmtp.conf -t < /var/asterisk/spool/tmp/email-7570a94ddba0da431fa0f5f77ed5991d") in new stack
    -- Executing [s@macro-missedcallmail:19] System("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "rm /var/asterisk/spool/tmp/email-7570a94ddba0da431fa0f5f77ed5991d") in new stack
    -- Executing [h@SIP-PROVIDER-20868666614dd4e6a6a95fe-incoming:3] Set("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "MISSEDCAUSE=hungup") in new stack
    -- Executing [h@SIP-PROVIDER-20868666614dd4e6a6a95fe-incoming:4] Set("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "SENDNOTIFICATIONS="USER@domain.tld"") in new stack
    -- Executing [h@SIP-PROVIDER-20868666614dd4e6a6a95fe-incoming:5] Macro("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "main,SIP/9085&SIP/9185,9085,9085,to,20") in new stack
    -- Executing [s@macro-main:1] Dial("SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f", "SIP/9085&SIP/9185,20,to") in new stack
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP CoS mark 6
    -- Called 9085
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP CoS mark 6
    -- Called 9185
  == Spawn extension (macro-main, s, 1) exited non-zero on 'SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f' in macro 'main'
  == Spawn extension (SIP-PROVIDER-20868666614dd4e6a6a95fe-incoming, h, 5) exited non-zero on 'SIP/SIP-PROVIDER-20868666614dd4e6a6a95fe-0000001f'

On the SIPProviders side Asterisk 1.4.30 is running.
Logged
Scapal
Full Member
***

Karma: 4
Posts: 58



View Profile
« Reply #1 on: May 20, 2011, 07:57:12 am »

I know, I have the same problem with many applications. This is due to the way Askozia generates the dialplan from Applications, putting 'catch all' wildcards in front of the extensions.

This is why I ended up bypassing the 'Application' editor and putting my apps in the extensions.conf directly.

For example, I would append this to the extensions.conf:
Code:
[app-queue-vm]
exten => s,1,PlayBack(vm-intro)
exten => s,n,VoiceMail(ooo@default,s)

And then, to link it to an extension that will appear in Askozia comboboxes (ie. to link it to a DID), just have an Askozia app doing this:
Code:
1,Goto(app-queue-vm,s,1)​​​

For the Askozia team: I think it is urgent to completely review this app section, the design is quite flawed.
The way I see things: separate the Application part from the extension part.
While the application itself would not be directly dialable (not included in the phones contexts), the extension part would just be a stub like I use now:
Code:
1,Goto(app-context,s,1)​​​
or
Code:
1,Goto(app-context,${EXTEN},1)​​​

The app itself should give the ability to specify the exten part. This is less a problem since the context is not included in phones contexts, eliminating potential extension conflicts.

Code:
[app-context]
exten => s,n,Background(custom/greetings)
exten => s,n,WaitExten()

exten => 1,1,NoOp(1 Pressed)
exten => 1,n,Playback(custom/helloworld)
exten => 1,n,Hangup()

exten => 2,1,NoOp(2 Pressed)
exten => 2,n,Playback(custom/something)
exten => 2,n,Hangup()

Cheers,
Pascal
Logged
BlackJack
Jr. Member
**

Karma: 0
Posts: 29


View Profile
« Reply #2 on: May 20, 2011, 09:17:17 am »

Thank you very much.

I deleted all Applications but the problem isn't solved. How looks a "catch all" wildcard perhaps i can chacnge something else in extensions.conf.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.067 seconds with 19 queries.