Cant receive call from working VOIP PHONE but work from cellphone

Hello everyone.

I have SIP phone working, i can receive call from anyone and make call to every number, except my other voip number.

When i try to call my number, using my cellphone, everything working, but when i try to call my new number from my other working sip phone, it say this number is not in service.

but when i call to same number, using my cellphone, i receive the call.
what happen


    [2015-09-15 13:35:38] VERBOSE[12123][C-0000002c] netsock2.c:   == Using SIP RTP TOS bits 184
    [2015-09-15 13:35:38] VERBOSE[12123][C-0000002c] netsock2.c:   == Using SIP RTP CoS mark 5
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:1] NoOp("SIP/sip.us1.twilio.com-00000036", "Received incoming SIP connection from unknown peer to +18198015077") in new stack
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:2] Set("SIP/sip.us1.twilio.com-00000036", "DID=+18198015077") in new stack
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:3] Goto("SIP/sip.us1.twilio.com-00000036", "s,1") in new stack
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Goto (from-sip-external,s,1)
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:1] GotoIf("SIP/sip.us1.twilio.com-00000036", "1?checklang:noanonymous") in new stack
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Goto (from-sip-external,s,2)
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:2] GotoIf("SIP/sip.us1.twilio.com-00000036", "0?setlanguage:from-trunk,+18198015077,1") in new stack
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Goto (from-trunk,+18198015077,1)
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:1] Set("SIP/sip.us1.twilio.com-00000036", "__FROM_DID=+18198015077") in new stack
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:2] NoOp("SIP/sip.us1.twilio.com-00000036", "Received an unknown call with DID set to +18198015077") in new stack
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:3] Goto("SIP/sip.us1.twilio.com-00000036", "s,a2") in new stack
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Goto (from-trunk,s,2)
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:2] Answer("SIP/sip.us1.twilio.com-00000036", "") in new stack
    [2015-09-15
     13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing 
    [[email protected]:3] Log("SIP/sip.us1.twilio.com-00000036", 
    "WARNING,Friendly Scanner from 54.172.60.0") in new stack
    [2015-09-15 13:35:38] WARNING[29143][C-0000002c] Ext. s: Friendly Scanner from 54.172.60.0
    [2015-09-15 13:35:38] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:4] Wait("SIP/sip.us1.twilio.com-00000036", "2") in new stack
    [2015-09-15 13:35:40] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:5] Playback("SIP/sip.us1.twilio.com-00000036", "ss-noservice") in new stack
    [2015-09-15 13:35:40] VERBOSE[29143][C-0000002c] file.c:     -- <SIP/sip.us1.twilio.com-00000036> Playing 'ss-noservice.ulaw' (language 'en')
    [2015-09-15 13:35:41] VERBOSE[29143][C-0000002c] pbx.c:   == Spawn extension (from-trunk, s, 5) exited non-zero on 'SIP/sip.us1.twilio.com-00000036'
    [2015-09-15 13:35:41] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:1] Macro("SIP/sip.us1.twilio.com-00000036", "hangupcall,") in new stack
    [2015-09-15 13:35:41] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:1] ExecIf("SIP/sip.us1.twilio.com-00000036", "0?Set(CDR(recordingfile)=.)") in new stack
    [2015-09-15 13:35:41] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:2] GotoIf("SIP/sip.us1.twilio.com-00000036", "1?theend") in new stack
    [2015-09-15 13:35:41] VERBOSE[29143][C-0000002c] pbx.c:     -- Goto (macro-hangupcall,s,4)
    [2015-09-15 13:35:41] VERBOSE[29143][C-0000002c] pbx.c:     -- Executing [[email protected]:4] Hangup("SIP/sip.us1.twilio.com-00000036", "") in new stack
    [2015-09-15 13:35:41] VERBOSE[29143][C-0000002c]
     app_macro.c:   == Spawn extension (macro-hangupcall, s, 4) exited 
    non-zero on 'SIP/sip.us1.twilio.com-00000036' in macro 'hangupcall'
    [2015-09-15 13:35:41] VERBOSE[29143][C-0000002c] pbx.c:   == Spawn extension (from-trunk, h, 1) exited non-zero on 'SIP/sip.us1.twilio.com-00000036'


i really dont know what happens, sometime in logfile, it show me my number with + and some other time, without the +.

how to make it work for both.
and what is that problem
thank

My guess is that + is messing up your pattern match

Added +, right now, i can call from my voip phone, but it now no service number with my cellphone…

Here is my trunk info…

img15.hostingpics.net/pics/357288trunk.png

From my IP phone to this new IP phone, now working since i added +

[2015-09-15 14:00:10] VERBOSE[12123][C-00000042] netsock2.c:   == Using SIP RTP TOS bits 184
[2015-09-15 14:00:10] VERBOSE[12123][C-00000042] netsock2.c:   == Using SIP RTP CoS mark 5
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] NoOp("SIP/sip.us1.twilio.com-0000004e", "Received incoming SIP connection from unknown peer to +18198015077") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:2] Set("SIP/sip.us1.twilio.com-0000004e", "DID=+18198015077") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:3] Goto("SIP/sip.us1.twilio.com-0000004e", "s,1") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (from-sip-external,s,1)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] GotoIf("SIP/sip.us1.twilio.com-0000004e", "1?checklang:noanonymous") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (from-sip-external,s,2)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:2] GotoIf("SIP/sip.us1.twilio.com-0000004e", "0?setlanguage:from-trunk,+18198015077,1") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (from-trunk,+18198015077,1)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] Set("SIP/sip.us1.twilio.com-0000004e", "__FROM_DID=+18198015077") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:2] Gosub("SIP/sip.us1.twilio.com-0000004e", "sub-record-check,s,1(in,+18198015077,dontcare)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] GotoIf("SIP/sip.us1.twilio.com-0000004e", "0?initialized") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:2] Set("SIP/sip.us1.twilio.com-0000004e", "__REC_STATUS=INITIALIZED") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:3] Set("SIP/sip.us1.twilio.com-0000004e", "NOW=1442340010") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:4] Set("SIP/sip.us1.twilio.com-0000004e", "__DAY=15") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:5] Set("SIP/sip.us1.twilio.com-0000004e", "__MONTH=09") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:6] Set("SIP/sip.us1.twilio.com-0000004e", "__YEAR=2015") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:7] Set("SIP/sip.us1.twilio.com-0000004e", "__TIMESTR=20150915-140010") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:8] Set("SIP/sip.us1.twilio.com-0000004e", "__FROMEXTEN=unknown") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:9] Set("SIP/sip.us1.twilio.com-0000004e", "__MON_FMT=wav") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:10] NoOp("SIP/sip.us1.twilio.com-0000004e", "Recordings initialized") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:11] ExecIf("SIP/sip.us1.twilio.com-0000004e", "0?Set(ARG3=dontcare)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:12] Set("SIP/sip.us1.twilio.com-0000004e", "REC_POLICY_MODE_SAVE=") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:13] ExecIf("SIP/sip.us1.twilio.com-0000004e", "0?Set(REC_STATUS=NO)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:14] GotoIf("SIP/sip.us1.twilio.com-0000004e", "2?checkaction") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (sub-record-check,s,17)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:17] GotoIf("SIP/sip.us1.twilio.com-0000004e", "1?sub-record-check,in,1") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (sub-record-check,in,1)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] NoOp("SIP/sip.us1.twilio.com-0000004e", "Inbound Recording Check to +18198015077") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:2] Set("SIP/sip.us1.twilio.com-0000004e", "FROMEXTEN=unknown") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:3] ExecIf("SIP/sip.us1.twilio.com-0000004e", "12?Set(FROMEXTEN=+18559997696)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:4] Gosub("SIP/sip.us1.twilio.com-0000004e", "recordcheck,1(dontcare,in,+18198015077)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] NoOp("SIP/sip.us1.twilio.com-0000004e", "Starting recording check against dontcare") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:2] Goto("SIP/sip.us1.twilio.com-0000004e", "dontcare") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (sub-record-check,recordcheck,3)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:3] Return("SIP/sip.us1.twilio.com-0000004e", "") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:5] Return("SIP/sip.us1.twilio.com-0000004e", "") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:3] Gosub("SIP/sip.us1.twilio.com-0000004e", "app-blacklist-check,s,1()") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] GotoIf("SIP/sip.us1.twilio.com-0000004e", "0?blacklisted") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:2] Set("SIP/sip.us1.twilio.com-0000004e", "CALLED_BLACKLIST=1") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:3] Return("SIP/sip.us1.twilio.com-0000004e", "") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:4] Set("SIP/sip.us1.twilio.com-0000004e", "CDR(did)=+18198015077") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:5] ExecIf("SIP/sip.us1.twilio.com-0000004e", "1 ?Set(CALLERID(name)=+18559997696)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:6] Set("SIP/sip.us1.twilio.com-0000004e", "CHANNEL(musicclass)=default") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:7] Set("SIP/sip.us1.twilio.com-0000004e", "__MOHCLASS=default") in new stack
[2015-09-15 14:00:10] WARNING[31060][C-00000042] func_channel.c: Unknown or unavailable item requested: 'reversecharge'
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:8] GotoIf("SIP/sip.us1.twilio.com-0000004e", "0?macro-hangupcall") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:9] Set("SIP/sip.us1.twilio.com-0000004e", "__CALLINGPRES_SV=allowed_not_screened") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:10] Set("SIP/sip.us1.twilio.com-0000004e", "CALLERPRES()=allowed_not_screened") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:11] Goto("SIP/sip.us1.twilio.com-0000004e", "ext-group,600,1") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (ext-group,600,1)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] Macro("SIP/sip.us1.twilio.com-0000004e", "user-callerid,") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] Set("SIP/sip.us1.twilio.com-0000004e", "TOUCH_MONITOR=1442340010.78") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:2] Set("SIP/sip.us1.twilio.com-0000004e", "AMPUSER=+18559997696") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:3] GotoIf("SIP/sip.us1.twilio.com-0000004e", "0?report") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:4] ExecIf("SIP/sip.us1.twilio.com-0000004e", "1?Set(REALCALLERIDNUM=+18559997696)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:5] Set("SIP/sip.us1.twilio.com-0000004e", "AMPUSER=") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:6] GotoIf("SIP/sip.us1.twilio.com-0000004e", "0?limit") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:7] Set("SIP/sip.us1.twilio.com-0000004e", "AMPUSERCIDNAME=") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:8] GotoIf("SIP/sip.us1.twilio.com-0000004e", "1?report") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (macro-user-callerid,s,16)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:16] GotoIf("SIP/sip.us1.twilio.com-0000004e", "0?continue") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:17] ExecIf("SIP/sip.us1.twilio.com-0000004e", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:18] Set("SIP/sip.us1.twilio.com-0000004e", "__TTL=64") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:19] GotoIf("SIP/sip.us1.twilio.com-0000004e", "1?continue") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (macro-user-callerid,s,30)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:30] Set("SIP/sip.us1.twilio.com-0000004e", "CALLERID(number)=+18559997696") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:31] Set("SIP/sip.us1.twilio.com-0000004e", "CALLERID(name)=+18559997696") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:32] Set("SIP/sip.us1.twilio.com-0000004e", "CDR(cnum)=+18559997696") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:33] Set("SIP/sip.us1.twilio.com-0000004e", "CDR(cnam)=+18559997696") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:34] Set("SIP/sip.us1.twilio.com-0000004e", "CHANNEL(language)=en") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:2] Macro("SIP/sip.us1.twilio.com-0000004e", "blkvm-setifempty,") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] GotoIf("SIP/sip.us1.twilio.com-0000004e", "1?init") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (macro-blkvm-setifempty,s,4)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:4] Set("SIP/sip.us1.twilio.com-0000004e", "__BLKVM_CHANNEL=SIP/sip.us1.twilio.com-0000004e") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:5] Set("SIP/sip.us1.twilio.com-0000004e", "SHARED(BLKVM,SIP/sip.us1.twilio.com-0000004e)=TRUE") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:6] Set("SIP/sip.us1.twilio.com-0000004e", "GOSUB_RETVAL=TRUE") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:7] MacroExit("SIP/sip.us1.twilio.com-0000004e", "") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:3] GotoIf("SIP/sip.us1.twilio.com-0000004e", "1?skipov") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (ext-group,600,6)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:6] Set("SIP/sip.us1.twilio.com-0000004e", "RRNODEST=") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:7] Set("SIP/sip.us1.twilio.com-0000004e", "__NODEST=600") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:8] GosubIf("SIP/sip.us1.twilio.com-0000004e", "0?sub-rgsetcid,s,1()") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:9] Gosub("SIP/sip.us1.twilio.com-0000004e", "sub-record-check,s,1(rg,600,dontcare)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] GotoIf("SIP/sip.us1.twilio.com-0000004e", "12?initialized") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (sub-record-check,s,10)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:10] NoOp("SIP/sip.us1.twilio.com-0000004e", "Recordings initialized") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:11] ExecIf("SIP/sip.us1.twilio.com-0000004e", "0?Set(ARG3=dontcare)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:12] Set("SIP/sip.us1.twilio.com-0000004e", "REC_POLICY_MODE_SAVE=") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:13] ExecIf("SIP/sip.us1.twilio.com-0000004e", "0?Set(REC_STATUS=NO)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:14] GotoIf("SIP/sip.us1.twilio.com-0000004e", "2?checkaction") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (sub-record-check,s,17)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:17] GotoIf("SIP/sip.us1.twilio.com-0000004e", "0?sub-record-check,rg,1") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:18] NoOp("SIP/sip.us1.twilio.com-0000004e", "Generic rg Recording Check - +18559997696 600") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:19] Gosub("SIP/sip.us1.twilio.com-0000004e", "recordcheck,1(dontcare,rg,600)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] NoOp("SIP/sip.us1.twilio.com-0000004e", "Starting recording check against dontcare") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:2] Goto("SIP/sip.us1.twilio.com-0000004e", "dontcare") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (sub-record-check,recordcheck,3)
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:3] Return("SIP/sip.us1.twilio.com-0000004e", "") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:20] Return("SIP/sip.us1.twilio.com-0000004e", "") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:10] Set("SIP/sip.us1.twilio.com-0000004e", "RingGroupMethod=ringall") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:11] Macro("SIP/sip.us1.twilio.com-0000004e", "dial,20,Ttr,1111") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] GotoIf("SIP/sip.us1.twilio.com-0000004e", "0?dial") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:2] Set("SIP/sip.us1.twilio.com-0000004e", "CHANNEL(musicclass)=default") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:3] AGI("SIP/sip.us1.twilio.com-0000004e", "dialparties.agi") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] res_agi.c:     -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] res_agi.c:  dialparties.agi: Starting New Dialparties.agi
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] res_agi.c:  dialparties.agi: Caller ID name is '+18559997696' number is '+18559997696'
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] res_agi.c:  dialparties.agi: Methodology of ring is  'ringall'
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] res_agi.c:     -- dialparties.agi: Added extension 1111 to extension map
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] res_agi.c:     -- dialparties.agi: Extension 1111 cf is disabled
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] res_agi.c:     -- dialparties.agi: Extension 1111 do not disturb is disabled
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] res_agi.c:     -- dialparties.agi: dbset CALLTRACE/1111 to +18559997696
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] res_agi.c:     -- dialparties.agi: Filtered ARG3: 1111
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] res_agi.c:     -- <SIP/sip.us1.twilio.com-0000004e>AGI Script dialparties.agi completed, returning 0
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [s[email protected]:7] Dial("SIP/sip.us1.twilio.com-0000004e", "SIP/1111,20,TtrM(auto-blkvm)") in new stack
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] netsock2.c:   == Using SIP RTP TOS bits 184
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] netsock2.c:   == Using SIP RTP CoS mark 5
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] app_dial.c:     -- Called SIP/1111
[2015-09-15 14:00:10] VERBOSE[31060][C-00000042] app_dial.c:     -- SIP/1111-0000004f is ringing
[2015-09-15 14:00:17] VERBOSE[31060][C-00000042]
 app_macro.c:   == Spawn extension (macro-dial, s, 7) exited non-zero on
 'SIP/sip.us1.twilio.com-0000004e' in macro 'dial'
[2015-09-15 14:00:17] VERBOSE[31060][C-00000042] pbx.c:   == Spawn extension (ext-group, 600, 11) exited non-zero on 'SIP/sip.us1.twilio.com-0000004e'
[2015-09-15 14:00:17] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] Macro("SIP/sip.us1.twilio.com-0000004e", "hangupcall,") in new stack
[2015-09-15 14:00:17] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:1] ExecIf("SIP/sip.us1.twilio.com-0000004e", "0?Set(CDR(recordingfile)=.wav)") in new stack
[2015-09-15 14:00:17] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:2] GotoIf("SIP/sip.us1.twilio.com-0000004e", "1?theend") in new stack
[2015-09-15 14:00:17] VERBOSE[31060][C-00000042] pbx.c:     -- Goto (macro-hangupcall,s,4)
[2015-09-15 14:00:17] VERBOSE[31060][C-00000042] pbx.c:     -- Executing [[email protected]:4] Hangup("SIP/sip.us1.twilio.com-0000004e", "") in new stack
[2015-09-15 14:00:17] VERBOSE[31060][C-00000042]
 app_macro.c:   == Spawn extension (macro-hangupcall, s, 4) exited 
non-zero on 'SIP/sip.us1.twilio.com-0000004e' in macro 'hangupcall'
[2015-09-15 14:00:17] VERBOSE[31060][C-00000042] pbx.c:   == Spawn extension (ext-group, h, 1) exited non-zero on 'SIP/sip.us1.twilio.com-0000004e'

Then, from my cellphone, which now tell me This number is not in service

[2015-09-15 14:02:36] VERBOSE[12123][C-00000043] netsock2.c:   == Using SIP RTP TOS bits 184
[2015-09-15 14:02:36] VERBOSE[12123][C-00000043] netsock2.c:   == Using SIP RTP CoS mark 5
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:1] NoOp("SIP/sip.us1.twilio.com-00000050", "Received incoming SIP connection from unknown peer to 18198015077") in new stack
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:2] Set("SIP/sip.us1.twilio.com-00000050", "DID=18198015077") in new stack
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:3] Goto("SIP/sip.us1.twilio.com-00000050", "s,1") in new stack
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Goto (from-sip-external,s,1)
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:1] GotoIf("SIP/sip.us1.twilio.com-00000050", "1?checklang:noanonymous") in new stack
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Goto (from-sip-external,s,2)
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:2] GotoIf("SIP/sip.us1.twilio.com-00000050", "0?setlanguage:from-trunk,18198015077,1") in new stack
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Goto (from-trunk,18198015077,1)
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:1] Set("SIP/sip.us1.twilio.com-00000050", "__FROM_DID=18198015077") in new stack
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:2] NoOp("SIP/sip.us1.twilio.com-00000050", "Received an unknown call with DID set to 18198015077") in new stack
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:3] Goto("SIP/sip.us1.twilio.com-00000050", "s,a2") in new stack
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Goto (from-trunk,s,2)
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:2] Answer("SIP/sip.us1.twilio.com-00000050", "") in new stack
[2015-09-15
 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Executing 
[[email protected]:3] Log("SIP/sip.us1.twilio.com-00000050", 
"WARNING,Friendly Scanner from 54.172.60.1") in new stack
[2015-09-15 14:02:36] WARNING[31126][C-00000043] Ext. s: Friendly Scanner from 54.172.60.1
[2015-09-15 14:02:36] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:4] Wait("SIP/sip.us1.twilio.com-00000050", "2") in new stack
[2015-09-15 14:02:38] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:5] Playback("SIP/sip.us1.twilio.com-00000050", "ss-noservice") in new stack
[2015-09-15 14:02:38] VERBOSE[31126][C-00000043] file.c:     -- <SIP/sip.us1.twilio.com-00000050> Playing 'ss-noservice.ulaw' (language 'en')
[2015-09-15 14:02:40] VERBOSE[31126][C-00000043] pbx.c:   == Spawn extension (from-trunk, s, 5) exited non-zero on 'SIP/sip.us1.twilio.com-00000050'
[2015-09-15 14:02:40] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:1] Macro("SIP/sip.us1.twilio.com-00000050", "hangupcall,") in new stack
[2015-09-15 14:02:40] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:1] ExecIf("SIP/sip.us1.twilio.com-00000050", "0?Set(CDR(recordingfile)=.)") in new stack
[2015-09-15 14:02:40] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:2] GotoIf("SIP/sip.us1.twilio.com-00000050", "1?theend") in new stack
[2015-09-15 14:02:40] VERBOSE[31126][C-00000043] pbx.c:     -- Goto (macro-hangupcall,s,4)
[2015-09-15 14:02:40] VERBOSE[31126][C-00000043] pbx.c:     -- Executing [[email protected]:4] Hangup("SIP/sip.us1.twilio.com-00000050", "") in new stack
[2015-09-15 14:02:40] VERBOSE[31126][C-00000043]
 app_macro.c:   == Spawn extension (macro-hangupcall, s, 4) exited 
non-zero on 'SIP/sip.us1.twilio.com-00000050' in macro 'hangupcall'
[2015-09-15 14:02:40] VERBOSE[31126][C-00000043] pbx.c:   == Spawn extension (from-trunk, h, 1) exited non-zero on 'SIP/sip.us1.twilio.com-00000050'

I am really lost for this, it seem to be manipulation rule error…
Someone can help me

Change the context for your trunk from whatever it is now (probably from-pstn or from-trunk) to:

from-pstn-e164-us

This should normalize your incoming CIDs and DIDs to avoid + characters.

Where i put this…

and fixed this issue bye added 2 incomming route with + in the DID and another without, but i dont think is the best way to do this…

Not working…

Should i stay with 2 incoming or not

[quote=“antoiner88, post:7, topic:31014, full:true”]
Where i put this…[/quote]

Hi!

In the “peer details” of the trunk…

ie the place where you see something like this:

type=friend
secret=**************
username=************
host=**********
dtmfmode=rfc2833
context=from-pstn-e164-us
canreinvite=yes
allow=ulaw
insecure=port,invite
fromdomain=***************
qualify=yes

(Your configuration might be similar but not identical to this…)

Have a nice day!

Nick