Koozali.org: home of the SME Server

3.1 Call groups

Offline groutley

  • *****
  • 213
  • +0/-0
    • http://www.routley.homeip.net
3.1 Call groups
« on: January 05, 2011, 03:54:08 AM »
I have a problem with call groups..

I'm running asterisk 1.6 and sail 3.1.0.97 ( and was the same on .93)

For my Trunklines I send the incoming call to a ring group, defined in call groups including a bunch of extensions.

If I ring the call group from an extension,  it works..
Code: [Select]
== Using SIP RTP CoS mark 5
    -- Executing [55@internal:1] AGI("SIP/5021-00000004", "sarkhpe,Alias,SIP/5021 SIP/5020 SIP/5010 SIP/5029,55") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sarkhpe
    -- AGI Script Executing Application: (Dial) Options: (SIP/5021&SIP/5020&SIP/5010&SIP/5029,15,)
  == Using SIP RTP CoS mark 5
    -- Called 5021
  == Using SIP RTP CoS mark 5
[Jan  5 13:47:03] WARNING[4495]: app_dial.c:1750 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Using SIP RTP CoS mark 5
[Jan  5 13:47:03] WARNING[4495]: app_dial.c:1750 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
  == Using SIP RTP CoS mark 5
    -- Called 5029
    -- SIP/5029-00000006 is ringing
    -- SIP/5021-00000005 is ringing
    -- AGI Script Executing Application: (Answer) Options: ()
    -- <SIP/5021-00000004>AGI Script sarkhpe completed, returning 0
    -- Executing [h@extensions:1] Hangup("SIP/5021-00000004", "") in new stack
  == Spawn extension (extensions, h, 1) exited non-zero on 'SIP/5021-00000004'

but when the Trunkline rings..  the caller hears engaged tone:-
Code: [Select]
  == Using SIP RTP CoS mark 5
    -- Executing [61312345551@mainmenu:1] AGI("SIP/peer3447-00000007", "sarkhpe,Inbound") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sarkhpe
    -- AGI Script Executing Application: (Set) Options: (CDR(userfield)=61312345551)
    -- <SIP/peer3447-00000007>AGI Script sarkhpe completed, returning 0
    -- Auto fallthrough, channel 'SIP/peer3447-00000007' status is 'UNKNOWN'
    -- Executing [h@mainmenu:1] Hangup("SIP/peer3447-00000007", "") in new stack
  == Spawn extension (mainmenu, h, 1) exited non-zero on 'SIP/peer3447-00000007'

Yet if I target a single extension as the trunkline outcome, it works ! ....
Code: [Select]
  == Using SIP RTP CoS mark 5
    -- Executing [61312345551@mainmenu:1] AGI("SIP/peer3447-00000008", "sarkhpe,Inbound") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sarkhpe
    -- AGI Script Executing Application: (Set) Options: (CDR(userfield)=61312345551)
    -- AGI Script Executing Application: (Answer) Options: ()
    -- <SIP/peer3447-00000008>AGI Script sarkhpe completed, returning 0
    -- Executing [5021@extensions:1] AGI("SIP/peer3447-00000008", "sarkhpe,InCall,") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sarkhpe
    -- AGI Script Executing Application: (Dial) Options: (SIP/5021,20,kt)
  == Using SIP RTP CoS mark 5
    -- Called 5021
    -- SIP/5021-00000009 is ringing

Curioustly if my MNF trunk rings in.  I get...
Code: [Select]
  == Using SIP RTP CoS mark 5
[Jan  5 13:57:37] NOTICE[3867]: chan_sip.c:20291 handle_request_invite: Call from '09109123' to extension '09109123' rejected because extension not found in context 'mainmenu'.
  == Using SIP RTP CoS mark 5
[Jan  5 13:57:38] NOTICE[3867]: chan_sip.c:20291 handle_request_invite: Call from '09109123' to extension '09109123' rejected because extension not found in context 'mainmenu'.

So for some reason this Trunkline wants to route the call to its own 'peer' instead of the defined extension or trunkline.
« Last Edit: January 05, 2011, 04:02:07 AM by groutley »

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: 3.1 Call groups
« Reply #1 on: January 05, 2011, 01:28:16 PM »
Its a little bug Glen

Name your call group with 4 digits (5555) and it will work.

Thanks for spotting this - I've entered it into the  bug tracker

Please confirm that the workaround does it for you.

As to the failure of the 09109123 line.  Do you have a DiD with that number?  Just check the manimenu context (in extensions.conf) and tell me if 09109123 appears in it.

Best

S

Offline groutley

  • *****
  • 213
  • +0/-0
    • http://www.routley.homeip.net
Re: 3.1 Call groups
« Reply #2 on: January 05, 2011, 02:00:18 PM »
As to the failure of the 09109123 line.  Do you have a DiD with that number?  Just check the manimenu context (in extensions.conf) and tell me if 09109123 appears in it.

Hi S,
 thanks, I have changed my 2 digit call groups to 4 digits.. although it's a little late at night to be testing,  I'll update the result tomorrow.

Yes I have a DID for that Trunk line which is seen in the extensions.conf
Code: [Select]
exten => 61398766378,1,agi(sarkhpe,Inbound)This is the DID for the 09109123 Trunk but 09109123 is the account / SIP number.

So I need to change the DID in that Trunk to be the SIP number ?
 

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: 3.1 Call groups
« Reply #3 on: January 05, 2011, 02:05:18 PM »
Different carriers send things in in different ways.   In this case, your carrier appears to be sending the account id rather than the DiD.  Just create a DiD with the number  09109123 and route that.

Best

S

Offline groutley

  • *****
  • 213
  • +0/-0
    • http://www.routley.homeip.net
Re: 3.1 Call groups
« Reply #4 on: January 05, 2011, 02:09:59 PM »
Thanks,
 all changes are committed..
I'll let you know tomorrow how it all goes.

Thanks again for you assistance..
Glen