Trouble with incoming calls

Happy new year everyone.

so i have my freepbx on my raspberry pi, using simonics as a trunk, i configured the trunk as described in their documentation (second method, peer)

outgoing calls work just fine, but some incoming calls are not being picked up by the ivr. i see in the logs the following

Executing [s@ivr-1:11] ExecIf("SIP/45.55.163.124-00000015", "1?Background(custom/main-newrec)") in new stack
    -- <SIP/45.55.163.124-00000015> Playing 'custom/main-newrec.slin' (language 'en')
       > 0x6e7f5338 -- Strict RTP switching to RTP target address 45.55.163.124:18468 as source
       > 0x6e7f5338 -- Strict RTP learning complete - Locking on source address 45.55.163.124:18468
  == Spawn extension (ivr-1, s, 11) exited non-zero on 'SIP/45.55.163.124-00000015'
    -- Executing [h@ivr-1:1] Hangup("SIP/45.55.163.124-00000015", "") in new stack
  == Spawn extension (ivr-1, h, 1) exited non-zero on 'SIP/45.55.163.124-00000015'
  == MixMonitor close filestream (mixed)
  == End MixMonitor Recording SIP/45.55.163.124-00000015

i appreciate any help
thanks

bump, anyone?

here’s a full call log

== Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [8881112222@from-sip-external:1] NoOp("SIP/159.203.186.242-0000001c", "Received incoming SIP connection from unknown peer to 8881112222") in new stack
    -- Executing [8881112222@from-sip-external:2] Set("SIP/159.203.186.242-0000001c", "DID=8881112222") in new stack
    -- Executing 8881112222@from-sip-external:3] Goto("SIP/159.203.186.242-0000001c", "s,1") in new stack
    -- Goto (from-sip-external,s,1)
    -- Executing [s@from-sip-external:1] GotoIf("SIP/159.203.186.242-0000001c", "1?setlanguage:checkanon") in new stack
    -- Goto (from-sip-external,s,2)
    -- Executing [s@from-sip-external:2] Set("SIP/159.203.186.242-0000001c", "CHANNEL(language)=en") in new stack
    -- Executing [s@from-sip-external:3] GotoIf("SIP/159.203.186.242-0000001c", "0?noanonymous") in new stack
    -- Executing [s@from-sip-external:4] Goto("SIP/159.203.186.242-0000001c", "from-trunk,8881112222,1") in new stack
    -- Goto (from-trunk,8881112222,1)
    -- Executing [8881112222@from-trunk:1] NoOp("SIP/159.203.186.242-0000001c", "Catch-All DID Match - Found 8881112222 - You probably want a DID for this.") in new stack
    -- Executing [8881112222@from-trunk:2] Log("SIP/159.203.186.242-0000001c", "WARNING,Friendly Scanner from 159.203.186.242") in new stack
[2018-01-02 13:25:24] WARNING[10590][C-00000016]: Ext. 8881112222:2 @ from-trunk: Friendly Scanner from 159.203.186.242
    -- Executing [8881112222@from-trunk:3] Set("SIP/159.203.186.242-0000001c", "__FROM_DID=8881112222") in new stack
    -- Executing [8881112222@from-trunk:4] Goto("SIP/159.203.186.242-0000001c", "ext-did,s,1") in new stack
    -- Goto (ext-did,s,1)
    -- Executing [s@ext-did:1] Set("SIP/159.203.186.242-0000001c", "__DIRECTION=INBOUND") in new stack
    -- Executing [s@ext-did:2] ExecIf("SIP/159.203.186.242-0000001c", "0?Set(__FROM_DID=s)") in new stack
    -- Executing [s@ext-did:3] Set("SIP/159.203.186.242-0000001c", "CDR(did)=8881112222") in new stack
    -- Executing [s@ext-did:4] ExecIf("SIP/159.203.186.242-0000001c", "0 ?Set(CALLERID(name)=9992225555)") in new stack
    -- Executing [s@ext-did:5] Set("SIP/159.203.186.242-0000001c", "__MOHCLASS=") in new stack
    -- Executing [s@ext-did:6] Set("SIP/159.203.186.242-0000001c", "__REVERSAL_REJECT=FALSE") in new stack
    -- Executing [s@ext-did:7] GotoIf("SIP/159.203.186.242-0000001c", "1?post-reverse-charge") in new stack
    -- Goto (ext-did,s,9)
    -- Executing [s@ext-did:9] NoOp("SIP/159.203.186.242-0000001c", "") in new stack
    -- Executing [s@ext-did:10] Set("SIP/159.203.186.242-0000001c", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
    -- Executing [s@ext-did:11] Set("SIP/159.203.186.242-0000001c", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
    -- Executing [s@ext-did:12] Set("SIP/159.203.186.242-0000001c", "CALLERID(name-pres)=allowed_not_screened") in new stack
    -- Executing [s@ext-did:13] Set("SIP/159.203.186.242-0000001c", "CALLERID(num-pres)=allowed_not_screened") in new stack
    -- Executing [s@ext-did:14] NoOp("SIP/159.203.186.242-0000001c", "CallerID Entry Point") in new stack
    -- Executing [s@ext-did:15] Goto("SIP/159.203.186.242-0000001c", "ivr-1,s,1") in new stack
    -- Goto (ivr-1,s,1)
    -- Executing [s@ivr-1:1] Set("SIP/159.203.186.242-0000001c", "TIMEOUT_LOOPCOUNT=0") in new stack
    -- Executing [s@ivr-1:2] Set("SIP/159.203.186.242-0000001c", "INVALID_LOOPCOUNT=0") in new stack
    -- Executing [s@ivr-1:3] Set("SIP/159.203.186.242-0000001c", "_IVR_CONTEXT_ivr-1=") in new stack
    -- Executing [s@ivr-1:4] Set("SIP/159.203.186.242-0000001c", "_IVR_CONTEXT=ivr-1") in new stack
    -- Executing [s@ivr-1:5] Set("SIP/159.203.186.242-0000001c", "__IVR_RETVM=") in new stack
    -- Executing [s@ivr-1:6] GotoIf("SIP/159.203.186.242-0000001c", "0?skip") in new stack
    -- Executing [s@ivr-1:7] Answer("SIP/159.203.186.242-0000001c", "") in new stack
    -- Executing [s@ivr-1:8] Wait("SIP/159.203.186.242-0000001c", "1") in new stack
    -- Executing [s@ivr-1:9] Set("SIP/159.203.186.242-0000001c", "IVR_MSG=custom/new-rec-w-lenn") in new stack
    -- Executing [s@ivr-1:10] Set("SIP/159.203.186.242-0000001c", "TIMEOUT(digit)=3") in new stack
    -- Digit timeout set to 3.000
    -- Executing [s@ivr-1:11] ExecIf("SIP/159.203.186.242-0000001c", "1?Background(custom/new-rec-w-lenn)") in new stack
    -- <SIP/159.203.186.242-0000001c> Playing 'custom/new-rec-w-lenn.slin' (language 'en')
  == Spawn extension (ivr-1, s, 11) exited non-zero on 'SIP/159.203.186.242-0000001c'
    -- Executing [h@ivr-1:1] Hangup("SIP/159.203.186.242-0000001c", "") in new stack
  == Spawn extension (ivr-1, h, 1) exited non-zero on 'SIP/159.203.186.242-0000001c'

thanks

Your IVR is failing - not sure why, but the non-zero return code implies a coding or file error.

Looks like there is something wrong with the recording custom/new-rec-w-lenn.slin.

thanks guys for responding

All my audios in the custom folder are ending with .wav i don’t even see slin files…

i re-installed the ivr module still giving me the same errors.

below is logs from a call that the ivr picked up, i still see the spawn error

 Executing [s@ivr-1:11] ExecIf("SIP/GV18881112222-00000008", "1?Background(custom/please-enter-pinnumber)") in new stack
    -- <SIP/GV18881112222-00000008> Playing 'custom/please-enter-pinnumber.slin' (language 'en')
       > 0x741b37a0 -- Strict RTP switching to RTP target address 104.236.102.59:30640 as source
       > 0x741b37a0 -- Strict RTP learning complete - Locking on source address 104.236.102.59:30640
    -- Executing [s@ivr-1:12] WaitExten("SIP/GV18881112222-00000008", "10,") in new stack
  == Spawn extension (ivr-1, s, 12) exited non-zero on 'SIP/GV18881112222-00000008'
    -- Executing [h@ivr-1:1] Hangup("SIP/GV18881112222-00000008", "") in new stack
  == Spawn extension (ivr-1, h, 1) exited non-zero on 'SIP/GV18881112222-00000008'

thanks for your help

EDIT: i changed the audio type to ulaw still getting this error

 -- <SIP/GV18881112222-0000000a> Playing 'custom/please-enter-pinnumber.ulaw' (language 'en')
  == Spawn extension (ivr-1, s, 11) exited non-zero on 'SIP/GV18881112222-0000000a'
    -- Executing [h@ivr-1:1] Hangup("SIP/GV18881112222-0000000a", "") in new stack
  == Spawn extension (ivr-1, h, 1) exited non-zero on 'SIP/GV18881112222-0000000a'

thanks again

also, i see this. not sure if related.

> 0x6e8223d0 -- Strict RTP switching to RTP target address 162.243.1.217:30844 as source
> 0x6e8223d0 -- Strict RTP learning complete - Locking on source address 162.243.1.217:30844

tx

If you are correct in what you typed, all of the files in your custom directory are wav files, so changing the type from ‘.slin’ to ‘.ulaw’ is the same a bringing a catcher’s mask to a darts tournament - exciting for everything, but clearly not needed.

I’m going to guess you are playing around with ‘Lenny’, an IVR for people that don’t like telemarketers. I’m OK with that, but you have have to ‘transcode’ your files from ‘.wav’ to some other format(s); probably slin and ulaw would be a good start.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.