Outbound calling stops working after a few days

Discussion in 'General' started by tvittito, Oct 1, 2010.

  1. tvittito

    Joined:
    Jul 27, 2010
    Messages:
    4
    Likes Received:
    0
    I've been fighting with this same issue for awhile now. I have the SIP ports forwarded in my router to the server, as well as the RTP ports. I can call in without any problem. When I call out, I hear no ringing on my end. The other end picks up and they can hear nothing as well. If I restart the server the problem goes away. It only pops up if the system sits "dormant" for a few days. There's no rhyme or reason to how long it has to sit without having any phone calls before this occurs.


    I uncommented the "include sip_custom.conf" line in the sip.conf.

    And add the following to my sip_custom.conf:

    externip=74.***.***.**
    localnet=192.168.12.0/255.255.255.0


    Is there anything I'm missing? I'm running Elastix 1.6 BTW

    Thanks,

    Tyler


    Call Log for the failed call (Phone number changed to 4*****0 for security)

    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [4188100@from-internal:1] Macro("SIP/9-00000032", "user-callerid|SKIPTTL|") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-user-callerid:1] Set("SIP/9-00000032", "AMPUSER=9") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/9-00000032", "0?report") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/9-00000032", "1|Set|REALCALLERIDNUM=9") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: ExecIf
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Last app: Set|REALCALLERIDNUM=9
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-user-callerid:4] Set("SIP/9-00000032", "AMPUSER=9") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-user-callerid:5] Set("SIP/9-00000032", "AMPUSERCIDNAME=Tyler") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/9-00000032", "0?report") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-user-callerid:7] Set("SIP/9-00000032", "AMPUSERCID=9") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-user-callerid:8] Set("SIP/9-00000032", "CALLERID(all)="Tyler" <9>") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-user-callerid:9] ExecIf("SIP/9-00000032", "0|Set|CHANNEL(language)=") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: ExecIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-user-callerid:10] GotoIf("SIP/9-00000032", "1?continue") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Goto (macro-user-callerid,s,19)
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-user-callerid:19] NoOp("SIP/9-00000032", "Using CallerID "Tyler" <9>") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Noop
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [4*****0@from-internal:2] Set("SIP/9-00000032", "_NODEST=") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [4*****0@from-internal:3] Macro("SIP/9-00000032", "record-enable|9|OUT|") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-record-enable:1] GotoIf("SIP/9-00000032", "1?check") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Goto (macro-record-enable,s,4)
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-record-enable:4] AGI("SIP/9-00000032", "recordingcheck|20101001-165610|1285966570.50") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: recordingcheck|20101001-165610|1285966570.50: Outbound recording not enabled
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- AGI Script recordingcheck completed, returning 0
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: AGI
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-record-enable:5] MacroExit("SIP/9-00000032", "") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [4*****0@from-internal:4] Macro("SIP/9-00000032", "dialout-trunk|2|4*****0||") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/9-00000032", "DIAL_TRUNK=2") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] DEBUG[15860] func_db.c: DB: AMPUSER/9/pinless not found in database.
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/9-00000032", "0?sub-pincheck|s|1") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GosubIf
    [2010-10-01 16:56:10] DEBUG[15860] func_db.c: DB: AMPUSER/9/pinless not found in database.
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/9-00000032", "0?disabletrunk|1") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/9-00000032", "DIAL_NUMBER=4*****0") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/9-00000032", "DIAL_TRUNK_OPTIONS=tr") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/9-00000032", "OUTBOUND_GROUP=OUT_2") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/9-00000032", "0?nomax") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/9-00000032", "0?chanfull") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/9-00000032", "0?skipoutcid") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:10] Set("SIP/9-00000032", "DIAL_TRUNK_OPTIONS=") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:11] Macro("SIP/9-00000032", "outbound-callerid|2") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/9-00000032", "0|SetCallerPres|") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: ExecIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/9-00000032", "1|Set|REALCALLERIDNUM=9") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: ExecIf
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Last app: Set|REALCALLERIDNUM=9
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/9-00000032", "1?normcid") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Goto (macro-outbound-callerid,s,6)
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-outbound-callerid:6] Set("SIP/9-00000032", "USEROUTCID=") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] DEBUG[15860] func_db.c: DB: DEVICE/9/emergency_cid not found in database.
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/9-00000032", "EMERGENCYCID=") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/9-00000032", "TRUNKOUTCID="Shea" <502*******>") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/9-00000032", "1?trunkcid") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Goto (macro-outbound-callerid,s,12)
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/9-00000032", "1|Set|CALLERID(all)=Shea <502*******>") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: ExecIf
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Last app: Set|CALLERID(all)=Shea <502*******>
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/9-00000032", "0|Set|CALLERID(all)=") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: ExecIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/9-00000032", "0|SetCallerPres|prohib_passed_screen") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: ExecIf
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Macro
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/9-00000032", "1|AGI|fixlocalprefix") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: == fixlocalprefix: Dialpattern 1502+NXXXXXX matched. 4*****0 -> 1502*******
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- AGI Script fixlocalprefix completed, returning 0
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: ExecIf
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Last app: AGI|fixlocalprefix
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/9-00000032", "OUTNUM=1502*******") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/9-00000032", "custom=SIP/VoiceMeUp-Trunk") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Set
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/9-00000032", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: ExecIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:16] Macro("SIP/9-00000032", "dialout-trunk-predial-hook|") in new stack
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/9-00000032", "") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: Macro
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/9-00000032", "0?bypass|1") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/9-00000032", "0?customtrunk") in new stack
    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:19] Dial("SIP/9-00000032", "SIP/VoiceMeUp-Trunk/1502*******|300|") in new stack
    [2010-10-01 16:56:10] NOTICE[15860] app_dial.c: Hey! chan SIP/9-00000032's context='macro-dialout-trunk', and exten='s'
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Called VoiceMeUp-Trunk/1502*******
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/9-00000032' in macro 'dialout-trunk'
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: == Spawn extension (from-internal, 4188100, 4) exited non-zero on 'SIP/9-00000032'
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: -- Executing [h@macro-dialout-trunk:1] Macro("SIP/9-00000032", "hangupcall|") in new stack
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/9-00000032", "1?skiprg") in new stack
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: -- Goto (macro-hangupcall,s,4)
    [2010-10-01 16:56:25] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/9-00000032", "1?skipblkvm") in new stack
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: -- Goto (macro-hangupcall,s,7)
    [2010-10-01 16:56:25] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/9-00000032", "1?theend") in new stack
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: -- Goto (macro-hangupcall,s,9)
    [2010-10-01 16:56:25] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: -- Executing [s@macro-hangupcall:9] Hangup("SIP/9-00000032", "") in new stack
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/9-00000032' in macro 'hangupcall'
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/9-00000032'
    [2010-10-01 16:56:25] WARNING[2911] chan_sip.c: Remote host can't match request CANCEL to call '319ca1697861c38c7d4862cd3397bffd@192.168.12.10'. Giving up.
     
  2. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    Just to make sure you know, in Asterisk .conf files

    the first character being # is not a comment it is to include the file following it, to comment a line use a semicolon, if you "uncommented" the sip_custom.conf file you perhaps in actual fact excluded it. which is probably why you couldn't hear each other on the apparently connected call at 16:56:10

    [2010-10-01 16:56:10] DEBUG[15860] app_macro.c: Executed application: GotoIf
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Executing [s@macro-dialout-trunk:19] Dial("SIP/9-00000032", "SIP/VoiceMeUp-Trunk/1502*******|300|") in new stack
    [2010-10-01 16:56:10] NOTICE[15860] app_dial.c: Hey! chan SIP/9-00000032's context='macro-dialout-trunk', and exten='s'
    [2010-10-01 16:56:10] VERBOSE[15860] logger.c: -- Called VoiceMeUp-Trunk/1502*******
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/9-00000032' in macro 'dialout-trunk'
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: == Spawn extension (from-internal, 4188100, 4) exited non-zero on 'SIP/9-00000032'
    [2010-10-01 16:56:25] VERBOSE[15860] logger.c: -- Executing [h@macro-dialout-trunk:1] Macro("SIP/9-00000032", "hangupcall|") in new stack



    You don't mention what your system is but if Elastix 2.0 then asterisk is at 1.6 and perhaps

    http://www.elastix.org/component/kunena ... g=en#59326

    might be be pertinent
     
  3. tvittito

    Joined:
    Jul 27, 2010
    Messages:
    4
    Likes Received:
    0
    Well I'm embarrassed. I guess I'm lost somewhere in linux-land. I've done so much reading and testing, gone over "Elastix without Tears" etc but I guess I just kept glazing over when that was mentioned. I'm sure that's it.

    Thanks so much for your quick response.
     
  4. tvittito

    Joined:
    Jul 27, 2010
    Messages:
    4
    Likes Received:
    0
    Alright I put the "#" back in the sip.conf. I'm sure that will probably take care of my original problem, but after I did that I couldn't call out at all.

    Once I took the following line out it worked fine:

    localnet=192.168.**.0/255.255.255.0

    I know I have my local ip address correct in here. Can you think of anything that might cause this?
    Or do I really even need this line?

    Thanks Again,

    Tyler
     

Share This Page