Hello, I am using FreePBX for configuration (TrixBox 2.2). Asterisk 1.2.18 is connected to a VoIP provider using a SIP trunk. The provider is using Acmepaket /Metaswitch gear. Inbound and outbound calling work, but only to provisioned extensions. Inbound Routing (i.e. matching any/any CLID/DID) to a DISA/IVR or anything else for that matter does not work. Traces show a 404 is being sent back to the network. Here's example indicating the described behavior from Asterisk (sip debug enabled): INVITE sip:4002602@10.70.0.196:5060 SIP/2.0 Via: SIP/2.0/UDP 10.70.0.193:5060;branch=z9hG4bK0ngjtd202g7gfbsd47s1.1 Allow-Events: message-summary Allow-Events: refer Allow-Events: dialog Allow-Events: line-seize Allow-Events: presence Max-Forwards: 69 Call-ID: SD8fofa01-0dfaf46e328a203a4ec2d7691d8d4ea2-v3000i1 From: ;isup-oli=00;tag=SD8fofa01-xxx.xxxx.com+1+35ac30+891f56b0 To: CSeq: 412230031 INVITE Expires: 180 Organization: Supported: 100rel Content-Length: 162 Content-Type: application/sdp Contact: ;isup-oli=00 P-Asserted-Identity: v=0 o=- 3934957908 3934957908 IN IP4 10.70.0.193 s=- c=IN IP4 10.70.0.193 t=0 0 m=audio 9434 RTP/AVP 2 0 101 a=rtpmap:101 telephone-event/8000 a=ptime:20 Jun 2 00:42:08 VERBOSE[3794] logger.c: --- (19 headers 8 lines) --- Jun 2 00:42:08 VERBOSE[3794] logger.c: Using INVITE request as basis request - SD8fofa01-0dfaf46e328a203a4ec2d7691d8d4ea2-v3000i1 Jun 2 00:42:08 VERBOSE[3794] logger.c: Sending to 10.70.0.193 : 5060 (non-NAT) Jun 2 00:42:08 VERBOSE[3794] logger.c: Found peer 'QT' Jun 2 00:42:08 DEBUG[3794] chan_sip.c: Setting NAT on RTP to 524288 Jun 2 00:42:08 VERBOSE[3794] logger.c: Found RTP audio format 2 Jun 2 00:42:08 VERBOSE[3794] logger.c: Found RTP audio format 0 Jun 2 00:42:08 VERBOSE[3794] logger.c: Found RTP audio format 101 Jun 2 00:42:08 VERBOSE[3794] logger.c: Peer audio RTP is at port 10.70.0.193:9434 Jun 2 00:42:08 DEBUG[3794] chan_sip.c: Peer audio RTP is at port 10.70.0.193:9434 Jun 2 00:42:08 VERBOSE[3794] logger.c: Found description format telephone-event Jun 2 00:42:08 VERBOSE[3794] logger.c: Capabilities: us - 0xc (ulaw|alaw), peer - audio=0x4 (ulaw)/video=0x0 (nothing), combined - 0x4 (ulaw) Jun 2 00:42:08 VERBOSE[3794] logger.c: Non-codec capabilities: us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event) Jun 2 00:42:08 DEBUG[3794] chan_sip.c: Checking SIP call limits for device 4414002600 Jun 2 00:42:08 VERBOSE[3794] logger.c: Looking for 4002602 in default (domain 10.70.0.196) Jun 2 00:42:08 VERBOSE[3794] logger.c: Reliably Transmitting (NAT) to 10.70.0.193:5060: SIP/2.0 404 Not Found Via: SIP/2.0/UDP 10.70.0.193:5060;branch=z9hG4bK0ngjtd202g7gfbsd47s1.1;received=10.70.0.193 From: ;isup-oli=00;tag=SD8fofa01-xxx.xxxx.com+1+35ac30+891f56b0 To: ;tag=as54797227 Call-ID: SD8fofa01-0dfaf46e328a203a4ec2d7691d8d4ea2-v3000i1 CSeq: 412230031 INVITE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Content-Length: 0 --- Jun 2 00:42:08 VERBOSE[3794] logger.c: <-- SIP read from 10.70.0.193:5060: ACK sip:4002602@10.70.0.196:5060 SIP/2.0 Via: SIP/2.0/UDP 10.70.0.193:5060;branch=z9hG4bK0ngjtd202g7gfbsd47s1.1 CSeq: 412230031 ACK Max-Forwards: 69 Call-ID: SD8fofa01-0dfaf46e328a203a4ec2d7691d8d4ea2-v3000i1 From: ;isup-oli=00;tag=SD8fofa01-xxx.xxxx.com+1+35ac30+891f56b0 To: ;tag=as54797227 Content-Length: 0 I have packet captures off the network and sip debug if anyone interested. Grateful for any suggestions, Cheers, Mike Mike Harris ONXIS 26 Victoria Street, Hamilton, HMCX, Bermuda. O: 441-400-4001 M: 441-505-7153 MORE DEBUG (As Requested by TheCompWiz) <-- SIP read from 10.70.0.193:5060: INVITE sip:4002602@10.70.0.196:5060 SIP/2.0 Via: SIP/2.0/UDP 10.70.0.193:5060;branch=z9hG4bKgebg893070k10b0pb3g1.1 Allow-Events: message-summary Allow-Events: refer Allow-Events: dialog Allow-Events: line-seize Allow-Events: presence Max-Forwards: 69 Call-ID: SD8vrba01-167f24b1e4eedc72e25858555aa759d4-v3000i1 From: ;isup-oli=00;tag=SD8vrba01-quantum1.quantum.bm+1+25053a+f171d803 To: CSeq: 155893236 INVITE Expires: 180 Organization: Supported: 100rel Content-Length: 162 Content-Type: application/sdp Contact: ;isup-oli=00 P-Asserted-Identity: v=0 o=- 4165324218 4165324218 IN IP4 10.70.0.193 s=- c=IN IP4 10.70.0.193 t=0 0 m=audio 9550 RTP/AVP 2 0 101 a=rtpmap:101 telephone-event/8000 a=ptime:20 Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 0: INVITE sip:4002602@10.70.0.196:5060 SIP/2.0 (43) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 1: Via: SIP/2.0/UDP 10.70.0.193:5060;branch=z9hG4bKgebg893070k10b0pb3g1.1 (70) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 2: Allow-Events: message-summary (29) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 3: Allow-Events: refer (19) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 4: Allow-Events: dialog (20) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 5: Allow-Events: line-seize (24) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 6: Allow-Events: presence (22) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 7: Max-Forwards: 69 (16) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 8: Call-ID: SD8vrba01-167f24b1e4eedc72e25858555aa759d4-v3000i1 (59) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 9: From: ;isup-oli=00;tag=SD8vrba01-quantum1.quantum.bm+1+25053a+f171d803 (117) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 10: To: (29) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 11: CSeq: 155893236 INVITE (22) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 12: Expires: 180 (12) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 13: Organization: (14) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 14: Supported: 100rel (17) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 15: Content-Length: 162 (19) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 16: Content-Type: application/sdp (29) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 17: Contact: ;isup-oli=00 (68) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 18: P-Asserted-Identity: (52) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 19: (0) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Line: v=0 (3) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Line: o=- 4165324218 4165324218 IN IP4 10.70.0.193 (44) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Line: s=- (3) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Line: c=IN IP4 10.70.0.193 (20) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Line: t=0 0 (5) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Line: m=audio 9550 RTP/AVP 2 0 101 (28) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Line: a=rtpmap:101 telephone-event/8000 (33) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Line: a=ptime:20 (10) Jun 4 16:41:32 VERBOSE[3794] logger.c: --- (19 headers 8 lines) --- Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Allocating new SIP dialog for SD8vrba01-167f24b1e4eedc72e25858555aa759d4-v3000i1 - INVITE (With RTP) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Begin: parsing SIP "Supported: 100rel" Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Found SIP option: -100rel- Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Matched SIP option: 100rel Jun 4 16:41:32 DEBUG[3794] chan_sip.c: * SIP extension value: 2 for call SD8vrba01-167f24b1e4eedc72e25858555aa759d4-v3000i1 Jun 4 16:41:32 VERBOSE[3794] logger.c: Using INVITE request as basis request - SD8vrba01-167f24b1e4eedc72e25858555aa759d4-v3000i1 Jun 4 16:41:32 VERBOSE[3794] logger.c: Sending to 10.70.0.193 : 5060 (non-NAT) Jun 4 16:41:32 VERBOSE[3794] logger.c: Found peer 'Quantum' Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Setting NAT on RTP to 524288 Jun 4 16:41:32 VERBOSE[3794] logger.c: Found RTP audio format 2 Jun 4 16:41:32 VERBOSE[3794] logger.c: Found RTP audio format 0 Jun 4 16:41:32 VERBOSE[3794] logger.c: Found RTP audio format 101 Jun 4 16:41:32 VERBOSE[3794] logger.c: Peer audio RTP is at port 10.70.0.193:9550 Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Peer audio RTP is at port 10.70.0.193:9550 Jun 4 16:41:32 VERBOSE[3794] logger.c: Found description format telephone-event Jun 4 16:41:32 VERBOSE[3794] logger.c: Capabilities: us - 0xc (ulaw|alaw), peer - audio=0x4 (ulaw)/video=0x0 (nothing), combined - 0x4 (ulaw) Jun 4 16:41:32 VERBOSE[3794] logger.c: Non-codec capabilities: us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Checking SIP call limits for device 4414002600 Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Updating call counter for incoming call Jun 4 16:41:32 VERBOSE[3794] logger.c: Looking for 4002602 in default (domain 10.70.0.196) Jun 4 16:41:32 VERBOSE[3794] logger.c: Reliably Transmitting (NAT) to 10.70.0.193:5060: SIP/2.0 404 Not Found Via: SIP/2.0/UDP 10.70.0.193:5060;branch=z9hG4bKgebg893070k10b0pb3g1.1;received=10.70.0.193 From: ;isup-oli=00;tag=SD8vrba01-quantum1.quantum.bm+1+25053a+f171d803 To: ;tag=as67a0e37e Call-ID: SD8vrba01-167f24b1e4eedc72e25858555aa759d4-v3000i1 CSeq: 155893236 INVITE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Content-Length: 0 --- Jun 4 16:41:32 DEBUG[3794] chan_sip.c: *** SIP TIMER: Initalizing retransmit timer on packet: Id #58436 Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Updating call counter for incoming call Jun 4 16:41:32 VERBOSE[3794] logger.c: <-- SIP read from 10.70.0.193:5060: ACK sip:4002602@10.70.0.196:5060 SIP/2.0 Via: SIP/2.0/UDP 10.70.0.193:5060;branch=z9hG4bKgebg893070k10b0pb3g1.1 CSeq: 155893236 ACK Max-Forwards: 69 Call-ID: SD8vrba01-167f24b1e4eedc72e25858555aa759d4-v3000i1 From: ;isup-oli=00;tag=SD8vrba01-quantum1.quantum.bm+1+25053a+f171d803 To: ;tag=as67a0e37e Content-Length: 0 Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 0: ACK sip:4002602@10.70.0.196:5060 SIP/2.0 (40) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 1: Via: SIP/2.0/UDP 10.70.0.193:5060;branch=z9hG4bKgebg893070k10b0pb3g1.1 (70) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 2: CSeq: 155893236 ACK (19) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 3: Max-Forwards: 69 (16) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 4: Call-ID: SD8vrba01-167f24b1e4eedc72e25858555aa759d4-v3000i1 (59) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 5: From: ;isup-oli=00;tag=SD8vrba01-quantum1.quantum.bm+1+25053a+f171d803 (117) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 6: To: ;tag=as67a0e37e (44) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 7: Content-Length: 0 (17) Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Header 8: (0) Jun 4 16:41:32 VERBOSE[3794] logger.c: --- (8 headers 0 lines) --- Jun 4 16:41:32 DEBUG[3794] chan_sip.c: = Found Their Call ID: SD8vrba01-167f24b1e4eedc72e25858555aa759d4-v3000i1 Their Tag SD8vrba01-quantum1.quantum.bm+1+25053a+f171d803 Our tag: as67a0e37e Jun 4 16:41:32 DEBUG[3794] chan_sip.c: **** Received ACK (6) - Command in SIP ACK Jun 4 16:41:32 DEBUG[3794] chan_sip.c: ** SIP TIMER: Cancelling retransmit of packet (reply received) Retransid #58436 Jun 4 16:41:32 DEBUG[3794] chan_sip.c: Stopping retransmission on 'SD8vrba01-167f24b1e4eedc72e25858555aa759d4-v3000i1' of Response 155893236: Match Found Jun 4 16:41:32 VERBOSE[3794] logger.c: Destroying call 'SD8vrba01-167f24b1e4eedc72e25858555aa759d4-v3000i1' Jun 4 16:41:42 DEBUG[509] manager.c: Manager received command 'login' Jun 4 16:41:42 VERBOSE[509] logger.c: == Parsing '/etc/asterisk/manager.conf': Jun 4 16:41:42 DEBUG[509] config.c: Parsing /etc/asterisk/manager.conf Jun 4 16:41:42 VERBOSE[509] logger.c: == Parsing '/etc/asterisk/manager.conf': Found Jun 4 16:41:42 VERBOSE[509] logger.c: == Parsing '/etc/asterisk/manager_custom.conf': Jun 4 16:41:42 DEBUG[509] config.c: Parsing /etc/asterisk/manager_custom.conf Jun 4 16:41:42 VERBOSE[509] logger.c: == Parsing '/etc/asterisk/manager_custom.conf': Found Jun 4 16:41:42 DEBUG[509] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer Jun 4 16:41:42 DEBUG[509] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer Jun 4 16:41:42 DEBUG[509] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0 Jun 4 16:41:42 DEBUG[509] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0 Jun 4 16:41:42 VERBOSE[509] logger.c: == Manager 'admin' logged on from 127.0.0.1 Jun 4 16:41:42 VERBOSE[509] logger.c: == Manager 'admin' logged off from 127.0.0.1 Jun 4 16:41:42 VERBOSE[509] logger.c: == Manager 'admin' logged off from 127.0.0.1 SIP NO DEBUG Follows; --- Jun 4 16:53:57 VERBOSE[3794] logger.c: Destroying call 'SDj7npa01-6bf8c04f188c7a8dc8d5e49f6915d9ee-v3000i1' Jun 4 16:53:58 DEBUG[581] manager.c: Manager received command 'login' Jun 4 16:53:58 VERBOSE[581] logger.c: == Parsing '/etc/asterisk/manager.conf': Jun 4 16:53:58 DEBUG[581] config.c: Parsing /etc/asterisk/manager.conf Jun 4 16:53:58 VERBOSE[581] logger.c: == Parsing '/etc/asterisk/manager.conf': Found Jun 4 16:53:58 VERBOSE[581] logger.c: == Parsing '/etc/asterisk/manager_custom.conf': Jun 4 16:53:58 DEBUG[581] config.c: Parsing /etc/asterisk/manager_custom.conf Jun 4 16:53:58 VERBOSE[581] logger.c: == Parsing '/etc/asterisk/manager_custom.conf': Found Jun 4 16:53:58 DEBUG[581] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer Jun 4 16:53:58 DEBUG[581] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer Jun 4 16:53:58 DEBUG[581] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0 Jun 4 16:53:58 DEBUG[581] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0 Jun 4 16:53:58 VERBOSE[581] logger.c: == Manager 'admin' logged on from 127.0.0.1 Jun 4 16:53:58 VERBOSE[3783] logger.c: -- Remote UNIX connection Jun 4 16:53:58 VERBOSE[584] logger.c: -- Remote UNIX connection disconnected Jun 4 16:53:58 VERBOSE[581] logger.c: == Manager 'admin' logged off from 127.0.0.1 Jun 4 16:54:02 DEBUG[3794] chan_sip.c: Allocating new SIP dialog for SDs7p1c01-1af646cd19fc057241d2097bb2d579eb-v3000i1 - INVITE (With RTP) Jun 4 16:54:02 DEBUG[3794] chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE Jun 4 16:54:02 DEBUG[3794] chan_sip.c: * SIP extension value: 2 for call SDs7p1c01-1af646cd19fc057241d2097bb2d579eb-v3000i1 Jun 4 16:54:02 DEBUG[3794] chan_sip.c: Setting NAT on RTP to 524288 Jun 4 16:54:02 DEBUG[3794] chan_sip.c: Checking SIP call limits for device 4414002600 Jun 4 16:54:02 DEBUG[3794] chan_sip.c: Updating call counter for incoming call Jun 4 16:54:02 DEBUG[3794] chan_sip.c: Updating call counter for incoming call Jun 4 16:54:02 DEBUG[3794] chan_sip.c: = Found Their Call ID: SDs7p1c01-1af646cd19fc057241d2097bb2d579eb-v3000i1 Their Tag SDs7p1c01-quantum1.quantum.bm+1+29f83a+5f22635 Our tag: as5fe4aef8 Jun 4 16:54:02 DEBUG[3794] chan_sip.c: **** Received ACK (6) - Command in SIP ACK Jun 4 16:54:02 DEBUG[3794] chan_sip.c: Stopping retransmission on 'SDs7p1c01-1af646cd19fc057241d2097bb2d579eb-v3000i1' of Response 813782803: Match Found Jun 4 16:54:04 DEBUG[3794] chan_sip.c: Allocating new SIP dialog for SDqnqra01-9ff20ff754d88e9e755a55bca28980d3-v3000i1 - INVITE (With RTP) Jun 4 16:54:04 DEBUG[3794] chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE Jun 4 16:54:04 DEBUG[3794] chan_sip.c: * SIP extension value: 2 for call SDqnqra01-9ff20ff754d88e9e755a55bca28980d3-v3000i1 Jun 4 16:54:04 DEBUG[3794] chan_sip.c: Setting NAT on RTP to 524288 Jun 4 16:54:04 DEBUG[3794] chan_sip.c: Checking SIP call limits for device 4414002600 Jun 4 16:54:04 DEBUG[3794] chan_sip.c: Updating call counter for incoming call Jun 4 16:54:04 DEBUG[3794] chan_sip.c: Updating call counter for incoming call Jun 4 16:54:04 DEBUG[3794] chan_sip.c: = Found Their Call ID: SDqnqra01-9ff20ff754d88e9e755a55bca28980d3-v3000i1 Their Tag SDqnqra01-quantum1.quantum.bm+1+29f53a+e738e8ee Our tag: as07be0b24 Jun 4 16:54:04 DEBUG[3794] chan_sip.c: **** Received ACK (6) - Command in SIP ACK Jun 4 16:54:04 DEBUG[3794] chan_sip.c: Stopping retransmission on 'SDqnqra01-9ff20ff754d88e9e755a55bca28980d3-v3000i1' of Response 801526204: Match Found Jun 4 16:54:05 DEBUG[3794] chan_sip.c: Allocating new SIP dialog for SDc7sdc01-3a9dd0fd588b047def75b9005155bf99-v3000i1 - INVITE (With RTP) Jun 4 16:54:05 DEBUG[3794] chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE Jun 4 16:54:05 DEBUG[3794] chan_sip.c: * SIP extension value: 2 for call SDc7sdc01-3a9dd0fd588b047def75b9005155bf99-v3000i1 Jun 4 16:54:05 DEBUG[3794] chan_sip.c: Setting NAT on RTP to 524288 Jun 4 16:54:05 DEBUG[3794] chan_sip.c: Checking SIP call limits for device 4414002600 Jun 4 16:54:05 DEBUG[3794] chan_sip.c: Updating call counter for incoming call Jun 4 16:54:05 DEBUG[3794] chan_sip.c: Updating call counter for incoming call Jun 4 16:54:05 DEBUG[3794] chan_sip.c: = Found Their Call ID: SDc7sdc01-3a9dd0fd588b047def75b9005155bf99-v3000i1 Their Tag SDc7sdc01-quantum1.quantum.bm+1+29a03a+8648ce90 Our tag: as27ff6cac Jun 4 16:54:05 DEBUG[3794] chan_sip.c: **** Received ACK (6) - Command in SIP ACK Jun 4 16:54:05 DEBUG[3794] chan_sip.c: Stopping retransmission on 'SDc7sdc01-3a9dd0fd588b047def75b9005155bf99-v3000i1' of Response 15360899: Match Found Jun 4 16:54:07 DEBUG[3794] chan_sip.c: Allocating new SIP dialog for SDivubc01-e2cc4c0dcd977f6b1c19d67c4cfbd088-v3000i1 - INVITE (With RTP) Jun 4 16:54:07 DEBUG[3794] chan_sip.c: **** Received INVITE (5) - Command in SIP INVITE Jun 4 16:54:07 DEBUG[3794] chan_sip.c: * SIP extension value: 2 for call SDivubc01-e2cc4c0dcd977f6b1c19d67c4cfbd088-v3000i1 Jun 4 16:54:07 DEBUG[3794] chan_sip.c: Setting NAT on RTP to 524288 Jun 4 16:54:07 DEBUG[3794] chan_sip.c: Checking SIP call limits for device 4414002600 Jun 4 16:54:07 DEBUG[3794] chan_sip.c: Updating call counter for incoming call Jun 4 16:54:07 DEBUG[3794] chan_sip.c: Updating call counter for incoming call Jun 4 16:54:07 DEBUG[3794] chan_sip.c: = Found Their Call ID: SDivubc01-e2cc4c0dcd977f6b1c19d67c4cfbd088-v3000i1 Their Tag SDivubc01-quantum1.quantum.bm+1+292d3a+9cae3a6b Our tag: as647f8ca2 Jun 4 16:54:07 DEBUG[3794] chan_sip.c: **** Received ACK (6) - Command in SIP ACK Jun 4 16:54:07 DEBUG[3794] chan_sip.c: Stopping retransmission on 'SDivubc01-e2cc4c0dcd977f6b1c19d67c4cfbd088-v3000i1' of Response 1004592196: Match Found Jun 4 16:54:16 DEBUG[3868] manager.c: Manager received command 'Command' Jun 4 16:54:16 DEBUG[585] manager.c: Manager received command 'login' Jun 4 16:54:16 VERBOSE[585] logger.c: == Parsing '/etc/asterisk/manager.conf': Jun 4 16:54:16 DEBUG[585] config.c: Parsing /etc/asterisk/manager.conf Jun 4 16:54:16 VERBOSE[585] logger.c: == Parsing '/etc/asterisk/manager.conf': Found Jun 4 16:54:16 VERBOSE[585] logger.c: == Parsing '/etc/asterisk/manager_custom.conf': Jun 4 16:54:16 DEBUG[585] config.c: Parsing /etc/asterisk/manager_custom.conf Jun 4 16:54:16 VERBOSE[585] logger.c: == Parsing '/etc/asterisk/manager_custom.conf': Found Jun 4 16:54:16 DEBUG[585] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer Jun 4 16:54:16 DEBUG[585] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer Jun 4 16:54:16 DEBUG[585] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0 Jun 4 16:54:16 DEBUG[585] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0 Jun 4 16:54:16 VERBOSE[585] logger.c: == Manager 'admin' logged on from 127.0.0.1 Jun 4 16:54:16 VERBOSE[585] logger.c: == Manager 'admin' logged off from 127.0.0.1 Jun 4 16:54:16 VERBOSE[585] logger.c: == Manager 'admin' logged off from 127.0.0.1 For Greg: [root@asterisk1 asterisk]# more extensions_additional.conf ; do not edit this file, this is an auto-generated file by freepbx ; all modifications must be done from the web gui [globals] #include globals_custom.conf CALLFILENAME = "" DIAL_OPTIONS = tr TRUNK_OPTIONS = DIAL_OUT = 9 FAX = FAX_RX = system FAX_RX_EMAIL = fax@mydomain.com FAX_RX_FROM = freepbx@gmail.com INCOMING = group-all NULL = "" OPERATOR = OPERATOR_XTN = PARKNOTIFY = SIP/200 RECORDEXTEN = "" RINGTIMER = 15 DIRECTORY = last AFTER_INCOMING = IN_OVERRIDE = forcereghours REGTIME = 7:55-17:05 REGDAYS = mon-fri DIRECTORY_OPTS = DIALOUTIDS = 2/3/ VM_PREFIX = * VM_OPTS = VM_GAIN = VM_DDTYPE = u TIMEFORMAT = kM TONEZONE = us ALLOW_SIP_ANON = yes OUTKEEPCID_2 = off OUTCID_2 = OUTMAXCHANS_2 = 1024 OUTPREFIX_2 = OUT_2 = SIP/Quantum OUTKEEPCID_3 = off OUTCID_3 = Mike OUTMAXCHANS_3 = 2 OUTPREFIX_3 = OUT_3 = IAX2/vitel-outbound ;end of [globals] [app-dnd-off] include => app-dnd-off-custom exten => *79,1,Answer exten => *79,n,Wait(1) exten => *79,n,Macro(user-callerid,) exten => *79,n,dbDel(DND/${CALLERID(number)}) exten => *79,n,Playback(do-not-disturb&de-activated) exten => *79,n,Macro(hangupcall,) ; end of [app-dnd-off] [app-dnd-on] include => app-dnd-on-custom exten => *78,1,Answer exten => *78,n,Wait(1) exten => *78,n,Macro(user-callerid,) exten => *78,n,Set(DB(DND/${CALLERID(number)})=YES) exten => *78,n,Playback(do-not-disturb&activated) exten => *78,n,Macro(hangupcall,) ; end of [app-dnd-on] [app-gabcast] include => app-gabcast-custom exten => *422,1,Goto(gabcast,${CALLERID(num)},1) ; end of [app-gabcast] [gabcast] include => gabcast-custom exten => _X.,1,Dial(IAX2/iax.gabcast.com/422,120,tr) exten => s,1,Dial(IAX2/iax.gabcast.com/422,120,tr) ; end of [gabcast] [app-calltrace] include => app-calltrace-custom exten => *69,1,Goto(app-calltrace-perform,s,1) ; end of [app-calltrace] [app-calltrace-perform] include => app-calltrace-perform-custom exten => s,1,Macro(user-callerid,) exten => s,n,Answer exten => s,n,Wait(1) exten => s,n,Playback(info-about-last-call&telephone-number) exten => s,n,Set(lastcaller=${DB(CALLTRACE/${CALLERID(number)})}) exten => s,n,GotoIf($[ $[ "${lastcaller}" = "" ] | $[ "${lastcaller}" = "unknown" ] ]?noinfo) exten => s,n,SayDigits(${lastcaller}) exten => s,n,Set(TIMEOUT(digit)=3) exten => s,n,Set(TIMEOUT(response)=7) exten => s,n,Background(to-call-this-number&press-1) exten => s,n,Goto(fin) exten => s,n(noinfo),Playback(from-unknown-caller) exten => s,n,Macro(hangupcall,) exten => s,n(fin),Noop(Waiting for input) exten => 1,1,Goto(from-internal,${lastcaller},1) exten => i,1,Playback(vm-goodbye) exten => i,n,Macro(hangupcall,) exten => t,1,Playback(vm-goodbye) exten => t,n,Macro(hangupcall,) ; end of [app-calltrace-perform] [app-directory] include => app-directory-custom exten => #,1,Answer exten => #,n,Wait(1) exten => #,n,AGI(directory,${DIR-CONTEXT},from-did-direct,${DIRECTORY:0:1}${DIRECTORY_OPTS}) exten => #,n,Playback(vm-goodbye) exten => #,n,Hangup exten => i,1,Playback(privacy-incorrect) ; end of [app-directory] [app-echo-test] include => app-echo-test-custom exten => *43,1,Answer exten => *43,n,Wait(1) exten => *43,n,Playback(demo-echotest) exten => *43,n,Echo() exten => *43,n,Playback(demo-echodone) exten => *43,n,Hangup ; end of [app-echo-test] [app-speakextennum] include => app-speakextennum-custom exten => *65,1,Answer exten => *65,n,Wait(1) exten => *65,n,Macro(user-callerid,) exten => *65,n,Playback(your) exten => *65,n,Playback(extension) exten => *65,n,Playback(number) exten => *65,n,Playback(is) exten => *65,n,SayDigits(${CALLERID(number)}) exten => *65,n,Wait(2) exten => *65,n,Hangup ; end of [app-speakextennum] [app-speakingclock] include => app-speakingclock-custom exten => *60,1,Answer exten => *60,n,Wait(1) exten => *60,n,Set(NumLoops=0) exten => *60,n(start),Set(FutureTime=$[${EPOCH} + 11]) exten => *60,n,Playback(at-tone-time-exactly) exten => *60,n,GotoIf($["${TIMEFORMAT}" = "kM"]?hr24format) exten => *60,n,SayUnixTime(${FutureTime},,IM \'and\' S \'seconds\' p) exten => *60,n,Goto(waitloop) exten => *60,n(hr24format),SayUnixTime(${FutureTime},,kM \'and\' S \'seconds\') exten => *60,n(waitloop),Set(TimeLeft=$[${FutureTime} - ${EPOCH}]) exten => *60,n,GotoIf($[${TimeLeft} < 1]?playbeep) exten => *60,n,Wait(1) exten => *60,n,Goto(waitloop) exten => *60,n(playbeep),Playback(beep) exten => *60,n,Wait(5) exten => *60,n,Set(NumLoops=$[${NumLoops} + 1]) exten => *60,n,GotoIf($[${NumLoops} < 5]?start) exten => *60,n,Playback(goodbye) exten => *60,n,Hangup ; end of [app-speakingclock] [app-pbdirectory] include => app-pbdirectory-custom exten => 411,1,Answer exten => 411,n,Wait(1) exten => 411,n,Goto(pbdirectory,1) exten => pbdirectory,1,AGI(pbdirectory) exten => pbdirectory,n,GotoIf($["${dialnumber}"=""]?hangup,1) exten => pbdirectory,n,Noop(Got number to dial: ${dialnumber}) exten => pbdirectory,n,Dial(Local/${dialnumber}@from-internal/n,) exten => hangup,1,Hangup ; end of [app-pbdirectory] [disa] include => disa-custom exten => 1,1,Set(TIMEOUT(digit)=5) exten => 1,n,Set(TIMEOUT(response)=10) exten => 1,n,DISA(no-password|from-internal) exten => 1,n(end),Hangup ; end of [disa] [macro-speeddial-clean] include => macro-speeddial-clean-custom exten => s,1,Noop(Cleaing (stripping leading 0s from ${${ARG1}}) in var ${ARG1}) exten => s,n(start),GotoIf($[${${ARG1}:0:1}=0]?strip:clean) exten => s,n(strip),Set(${ARG1}=${${ARG1}:1}) exten => s,n,Goto(start) exten => s,n(clean),Noop(${ARG1} cleaned to ${${ARG1}}) ; end of [macro-speeddial-clean] [macro-speeddial-lookup] include => macro-speeddial-lookup-custom exten => s,1,GotoIf($["${ARG2}"=""]]?lookupsys) exten => s,n,Set(SPEEDDIALNUMBER=) exten => s,n(lookupuser),dbGet(SPEEDDIALNUMBER=AMPUSER/${ARG2}/speeddials/${ARG1}) exten => s,n,GotoIf($["${SPEEDDIALNUMBER}"=""]?lookupsys) exten => s,n,Noop(Found speeddial ${ARG1} for user ${ARG2}: ${SPEEDDIALNUMBER}) exten => s,n,Goto(end) exten => s,lookupuser+101(lookupsys),dbGet(SPEEDDIALNUMBER=sysspeeddials/${ARG1}) exten => s,n,GotoIf($["${SPEEDDIALNUMBER}"=""]?failed) exten => s,n,Noop(Found system speeddial ${ARG1}: ${SPEEDDIALNUMBER}) exten => s,n,Goto(end) exten => s,lookupsys+101(failed),Noop(No system or user speeddial found) exten => s,n(end),Noop(End of Speeddial-lookup) ; end of [macro-speeddial-lookup] [app-speeddial] include => app-speeddial-custom exten => _*0.,1,Macro(user-callerid,) exten => _*0.,n,Set(SPEEDDIALLOCATION=${EXTEN:2}) exten => _*0.,n,Macro(speeddial-clean,SPEEDDIALLOCATION) exten => _*0.,n(lookup),Macro(speeddial-lookup,${SPEEDDIALLOCATION},${CALLERID(num)}) exten => _*0.,n,GotoIf($["${SPEEDDIALNUMBER}"=""]?failed) exten => _*0.,n,Dial(Local/${SPEEDDIALNUMBER}@from-internal/n,) exten => _*0.,lookup+101(failed),Playback(speed-dial-empty) exten => _*0.,n,Congestion(20) exten => *75,1,Goto(app-speeddial-set,s,1) ; end of [app-speeddial] [app-speeddial-set] include => app-speeddial-set-custom exten => s,1,Macro(user-callerid,) exten => s,n(setloc),Read(newlocation,speed-enterlocation,,,,) exten => s,n,Macro(speeddial-clean,newlocation) exten => s,n(lookup),Macro(speeddial-lookup,${newlocation},${CALLERID(num)}) exten => s,n(lookup),GotoIf($["${SPEEDDIALNUMBER}"!=""]?conflicts) exten => s,n(setnum),Read(newnum,speed-enternumber,,,,) exten => s,n(success),dbPut(AMPUSER/${CALLERID(num)}/speeddials/${newlocation}=${newnum}) exten => s,n,Playback(speed-dial) exten => s,n,SayNumber(${newlocation},f) exten => s,n,Playback(is-set-to) exten => s,n,SayDigits(${newnum}) exten => s,n,Hangup exten => s,n(conflicts),Playback(speed-dial) exten => s,n,SayNumber(${newlocation},f) exten => s,n,Playback(is-in-use) exten => s,n,Background(press-1&to-listen-to-it&press-2&to-enter-a-diff&location&press-3&to-chang e&telephone-number) exten => 1,1,Playback(speed-dial) exten => 1,n,SayNumber(${newlocation},f) exten => 1,n,Playback(is-set-to) exten => 1,n,SayDigits(${SPEEDDIALNUMBER}) exten => 1,n,Goto(s,conflicts) exten => 2,1,Goto(s,setloc) exten => 3,1,Goto(s,setnum) exten => t,1,Congestion(20) ; end of [app-speeddial-set] [app-dictate-record] include => app-dictate-record-custom exten => *34,1,Answer exten => *34,n,Macro(user-callerid,) exten => *34,n,Noop(CallerID is ${CALLERID(num)}) exten => *34,n,Set(DICTENABLED=${DB(AMPUSER/${CALLERID(num)}/dictate/enabled)}) exten => *34,n,GotoIf($[$["x${DICTENABLED}"="x"]|$["x${DICTENABLED}"="xdisabled"]]?nodict:dictok) exten => *34,n(nodict),Playback(feature-not-avail-line) exten => *34,n,Hangup exten => *34,n(dictok),Dictate(/var/lib/asterisk/sounds/dictate/${CALLERID(num)}) exten => *34,n,Macro(hangupcall,) ; end of [app-dictate-record] [app-dictate-send] include => app-dictate-send-custom exten => *35,1,Answer exten => *35,n,Macro(user-callerid,) exten => *35,n,Noop(CallerID is ${CALLERID(num)}) exten => *35,n,Set(DICTENABLED=${DB(AMPUSER/${CALLERID(num)}/dictate/enabled)}) exten => *35,n,GotoIf($[$["x${DICTENABLED}"="x"]|$["x${DICTENABLED}"="xdisabled"]]?nodict:dictok) exten => *35,n(nodict),Playback(feature-not-avail-line) exten => *35,n,Hangup exten => *35,n(dictok),Read(DICTFILE,enter-filename-short,,,,) exten => *35,n,Set(DICTEMAIL=${DB(AMPUSER/${CALLERID(num)}/dictate/email)}) exten => *35,n,Set(DICTFMT=${DB(AMPUSER/${CALLERID(num)}/dictate/format)}) exten => *35,n,Set(NAME=${DB(AMPUSER/${CALLERID(num)}/cidname)}) exten => *35,n,Playback(dictation-being-processed) exten => *35,n,System(/var/lib/asterisk/bin/audio-email.pl --file /var/lib/asterisk/sounds/dictat e/${CALLERID(num)}/${DICTFILE}.raw --attachment dict-${DICTFILE} --format ${DICTFMT} --to ${DICTE MAIL} --subject "Dictation from ${NAME} Attached") exten => *35,n,Playback(dictation-sent) exten => *35,n,Macro(hangupcall,) ; end of [app-dictate-send] [app-dialvm] include => app-dialvm-custom exten => *98,1,Answer exten => *98,n,Wait(1) exten => *98,n,VoiceMailMain() exten => *98,n,Macro(hangupcall,) exten => _*98.,1,Answer exten => _*98.,n,Wait(1) exten => _*98.,n,Macro(get-vmcontext,${EXTEN:3}) exten => _*98.,n,VoiceMailMain(${EXTEN:3}@${VMCONTEXT}) exten => _*98.,n,Macro(hangupcall,) ; end of [app-dialvm] [app-vmmain] include => app-vmmain-custom exten => *97,1,Answer exten => *97,n,Wait(1) exten => *97,n,Macro(user-callerid,) exten => *97,n,Macro(get-vmcontext,${CALLERID(num)}) exten => *97,n,VoiceMailMain(${CALLERID(num)}@${VMCONTEXT}) exten => *97,n,Macro(hangupcall,) ; end of [app-vmmain] [app-cf-busy-off] include => app-cf-busy-off-custom exten => *91,1,Answer exten => *91,n,Wait(1) exten => *91,n,Macro(user-callerid,) exten => *91,n,dbDel(CFB/${CALLERID(number)}) exten => *91,n,Playback(call-fwd-on-busy&de-activated) exten => *91,n,Macro(hangupcall,) exten => _*91.,1,Answer exten => _*91.,n,Wait(1) exten => _*91.,n,Set(fromext=${EXTEN:3}) exten => _*91.,n,dbDel(CFB/${fromext}) exten => _*91.,n,Playback(call-fwd-on-busy&for&extension) exten => _*91.,n,SayDigits(${fromext}) exten => _*91.,n,Playback(cancelled) exten => _*91.,n,Macro(hangupcall,) ; end of [app-cf-busy-off] [app-cf-busy-off-any] include => app-cf-busy-off-any-custom exten => *92,1,Answer exten => *92,n,Wait(1) exten => *92,n,Playback(please-enter-your&extension) exten => *92,n,Read(fromext,then-press-pound,,,,) exten => *92,n,Wait(1) exten => *92,n,dbDel(CFB/${fromext}) exten => *92,n,Playback(call-fwd-on-busy&for&extension) exten => *92,n,SayDigits(${fromext}) exten => *92,n,Playback(cancelled) exten => *92,n,Macro(hangupcall,) ; end of [app-cf-busy-off-any] [app-cf-busy-on] include => app-cf-busy-on-custom exten => *90,1,Answer exten => *90,n,Wait(1) exten => *90,n,Playback(call-fwd-on-busy) exten => *90,n,Playback(please-enter-your&extension) exten => *90,n,Read(fromext,then-press-pound,,,,) exten => *90,n,Set(fromext=${IF($["foo${fromext}"="foo"]?${CALLERID(number)}:${fromext})}) exten => *90,n,Wait(1) exten => *90,n(startread),Playback(ent-target-attendant) exten => *90,n,Read(toext,then-press-pound,,,,) exten => *90,n,GotoIf($["foo${toext}"="foo"]?startread) exten => *90,n,Wait(1) exten => *90,n,Set(DB(CFB/${fromext})=${toext}) exten => *90,n,Playback(call-fwd-on-busy&for&extension) exten => *90,n,SayDigits(${fromext}) exten => *90,n,Playback(is-set-to) exten => *90,n,SayDigits(${toext}) exten => *90,n,Macro(hangupcall,) exten => _*90.,1,Answer exten => _*90.,n,Wait(1) exten => _*90.,n,Macro(user-callerid,) exten => _*90.,n,Set(DB(CFB/${CALLERID(number)})=${EXTEN:3}) exten => _*90.,n,Playback(call-fwd-on-busy&for&extension) exten => _*90.,n,SayDigits(${CALLERID(number)}) exten => _*90.,n,Playback(is-set-to) exten => _*90.,n,SayDigits(${EXTEN:3}) exten => _*90.,n,Macro(hangupcall,) ; end of [app-cf-busy-on] [app-cf-off] include => app-cf-off-custom exten => *73,1,Answer exten => *73,n,Wait(1) exten => *73,n,Macro(user-callerid,) exten => *73,n,dbDel(CF/${CALLERID(number)}) exten => *73,n,Playback(call-fwd-unconditional&de-activated) exten => *73,n,Macro(hangupcall,) exten => _*73.,1,Answer exten => _*73.,n,Wait(1) exten => _*73.,n,Set(fromext=${EXTEN:3}) exten => _*73.,n,dbDel(CF/${fromext}) exten => _*73.,n,Playback(call-fwd-unconditional&for&extension) exten => _*73.,n,SayDigits(${fromext}) exten => _*73.,n,Playback(cancelled) exten => _*73.,n,Macro(hangupcall,) ; end of [app-cf-off] [app-cf-off-any] include => app-cf-off-any-custom exten => *74,1,Answer exten => *74,n,Wait(1) exten => *74,n,Playback(please-enter-your&extension) exten => *74,n,Read(fromext,then-press-pound,,,,) exten => *74,n,Wait(1) exten => *74,n,dbDel(CF/${fromext}) exten => *74,n,Playback(call-fwd-unconditional&for&extension) exten => *74,n,SayDigits(${fromext}) exten => *74,n,Playback(cancelled) exten => *74,n,Macro(hangupcall,) ; end of [app-cf-off-any] [app-cf-on] include => app-cf-on-custom exten => *72,1,Answer exten => *72,n,Wait(1) exten => *72,n,Playback(call-fwd-unconditional) exten => *72,n,Playback(please-enter-your&extension) exten => *72,n,Read(fromext,then-press-pound,,,,) exten => *72,n,Set(fromext=${IF($["foo${fromext}"="foo"]?${CALLERID(number)}:${fromext})}) exten => *72,n,Wait(1) exten => *72,n(startread),Playback(ent-target-attendant) exten => *72,n,Read(toext,then-press-pound,,,,) exten => *72,n,GotoIf($["foo${toext}"="foo"]?startread) exten => *72,n,Wait(1) exten => *72,n,Set(DB(CF/${fromext})=${toext}) exten => *72,n,Playback(call-fwd-unconditional&for&extension) exten => *72,n,SayDigits(${fromext}) exten => *72,n,Playback(is-set-to) exten => *72,n,SayDigits(${toext}) exten => *72,n,Macro(hangupcall,) exten => _*72.,1,Answer exten => _*72.,n,Wait(1) exten => _*72.,n,Macro(user-callerid,) exten => _*72.,n,Set(DB(CF/${CALLERID(number)})=${EXTEN:3}) exten => _*72.,n,Playback(call-fwd-unconditional&for&extension) exten => _*72.,n,SayDigits(${CALLERID(number)}) exten => _*72.,n,Playback(is-set-to) exten => _*72.,n,SayDigits(${EXTEN:3}) exten => _*72.,n,Macro(hangupcall,) ; end of [app-cf-on] [app-cf-unavailable-off] include => app-cf-unavailable-off-custom exten => *53,1,Answer exten => *53,n,Wait(1) exten => *53,n,Macro(user-callerid,) exten => *53,n,dbDel(CFU/${CALLERID(number)}) exten => *53,n,Playback(call-fwd-no-ans&de-activated) exten => *53,n,Macro(hangupcall,) exten => _*53.,1,Answer exten => _*53.,n,Wait(1) exten => _*53.,n,Set(fromext=${EXTEN:3}) exten => _*53.,n,dbDel(CFU/${fromext}) exten => _*53.,n,Playback(call-fwd-no-ans&for&extension) exten => _*53.,n,SayDigits(${fromext}) exten => _*53.,n,Playback(cancelled) exten => _*53.,n,Macro(hangupcall,) ; end of [app-cf-unavailable-off] [app-cf-unavailable-on] include => app-cf-unavailable-on-custom exten => *52,1,Answer exten => *52,n,Wait(1) exten => *52,n,Playback(call-fwd-no-ans) exten => *52,n,Playback(please-enter-your&extension) exten => *52,n,Read(fromext,then-press-pound,,,,) exten => *52,n,Set(fromext=${IF($["foo${fromext}"="foo"]?${CALLERID(number)}:${fromext})}) exten => *52,n,Wait(1) exten => *52,n(startread),Playback(ent-target-attendant) exten => *52,n,Read(toext,then-press-pound,,,,) exten => *52,n,GotoIf($["foo${toext}"="foo"]?startread) exten => *52,n,Wait(1) exten => *52,n,Set(DB(CFU/${fromext})=${toext}) exten => *52,n,Playback(call-fwd-no-ans&for&extension) exten => *52,n,SayDigits(${fromext}) exten => *52,n,Playback(is-set-to) exten => *52,n,SayDigits(${toext}) exten => *52,n,Macro(hangupcall,) exten => _*52.,1,Answer exten => _*52.,n,Wait(1) exten => _*52.,n,Macro(user-callerid,) exten => _*52.,n,Set(DB(CFU/${CALLERID(number)})=${EXTEN:3}) exten => _*52.,n,Playback(call-fwd-no-ans&for&extension) exten => _*52.,n,SayDigits(${CALLERID(number)}) exten => _*52.,n,Playback(is-set-to) exten => _*52.,n,SayDigits(${EXTEN:3}) exten => _*52.,n,Macro(hangupcall,) ; end of [app-cf-unavailable-on] [app-recordings] include => app-recordings-custom exten => *77,1,Macro(user-callerid,) exten => *77,n,Wait(2) exten => *77,n,Macro(systemrecording,dorecord) exten => *99,1,Macro(user-callerid,) exten => *99,n,Wait(2) exten => *99,n,Macro(systemrecording,docheck) ; end of [app-recordings] [cidlookup] include => cidlookup-custom exten => cidlookup_return,1,LookupCIDName exten => cidlookup_return,n,Return() ; end of [cidlookup] [app-callwaiting-cwoff] include => app-callwaiting-cwoff-custom exten => *71,1,Answer exten => *71,n,Wait(1) exten => *71,n,Macro(user-callerid,) exten => *71,n,dbDel(CW/${CALLERID(number)}) exten => *71,n,Playback(call-waiting&de-activated) exten => *71,n,Macro(hangupcall,) ; end of [app-callwaiting-cwoff] [app-callwaiting-cwon] include => app-callwaiting-cwon-custom exten => *70,1,Answer exten => *70,n,Wait(1) exten => *70,n,Macro(user-callerid,) exten => *70,n,Set(DB(CW/${CALLERID(number)})=ENABLED) exten => *70,n,Playback(call-waiting&activated) exten => *70,n,Macro(hangupcall,) ; end of [app-callwaiting-cwon] [timeconditions] include => timeconditions-custom exten => 1,1,GotoIfTime(07:30-18:00|mon-fri|1-31|jan-dec?ivr-2,s,1) exten => 1,n,Goto(ivr-2,s,1) ; end of [timeconditions] [app-blacklist-check] include => app-blacklist-check-custom exten => s,1,LookupBlacklist() exten => s,n,GotoIf($["${LOOKUPBLSTATUS}"="FOUND"]?blacklisted) exten => s,n,Return() exten => s,n(blacklisted),Answer exten => s,n,Wait(1) exten => s,n,Zapateller() exten => s,n,Zapateller() exten => s,n,Playback(ss-noservice) exten => s,n,Hangup ; end of [app-blacklist-check] [app-blacklist] include => app-blacklist-custom exten => *30,1,Goto(app-blacklist-add,s,1) exten => *32,1,Goto(app-blacklist-last,s,1) exten => *31,1,Goto(app-blacklist-remove,s,1) ; end of [app-blacklist] [app-blacklist-add] include => app-blacklist-add-custom exten => s,1,Answer exten => s,n,Wait(1) exten => s,n,Playback(enter-num-blacklist) exten => s,n,Set(TIMEOUT(digit)=5) exten => s,n,Set(TIMEOUT(response)=60) exten => s,n,Read(blacknr,then-press-pound,,,,) exten => s,n,SayDigits(${blacknr}) exten => s,n,Playback(if-correct-press) exten => s,n,Playback(digits/1) exten => s,n(end),Noop(Waiting for input) exten => 1,1,Set(DB(blacklist/${blacknr})=1) exten => 1,n,Playback(num-was-successfully) exten => 1,n,Playback(added) exten => 1,n,Wait(1) exten => 1,n,Hangup ; end of [app-blacklist-add] [app-blacklist-last] include => app-blacklist-last-custom exten => s,1,Answer exten => s,n,Wait(1) exten => s,n,Set(lastcaller=${DB(CALLTRACE/${CALLERID(number)})}) exten => s,n,GotoIf($[ $[ "${lastcaller}" = "" ] | $[ "${lastcaller}" = "unknown" ] ]?noinfo) exten => s,n,Playback(privacy-to-blacklist-last-caller) exten => s,n,Playback(telephone-number) exten => s,n,SayDigits(${lastcaller}) exten => s,n,Set(TIMEOUT(digit)=3) exten => s,n,Set(TIMEOUT(response)=7) exten => s,n,Playback(if-correct-press) exten => s,n,Playback(digits/1) exten => s,n,Goto(end) exten => s,n(noinfo),Playback(unidentified-no-callback) exten => s,n,Hangup exten => s,n(end),Noop(Waiting for input) exten => 1,1,Set(DB(blacklist/${lastcaller})=1) exten => 1,n,Playback(num-was-successfully) exten => 1,n,Playback(added) exten => 1,n,Wait(1) exten => 1,n,Hangup ; end of [app-blacklist-last] [app-blacklist-remove] include => app-blacklist-remove-custom exten => s,1,Answer exten => s,n,Wait(1) exten => s,n,Playback(entr-num-rmv-blklist) exten => s,n,Set(TIMEOUT(digit)=5) exten => s,n,Set(TIMEOUT(response)=60) exten => s,n,Read(blacknr,then-press-pound,,,,) exten => s,n,SayDigits(${blacknr}) exten => s,n,Playback(if-correct-press) exten => s,n,Playback(digits/1) exten => s,n(end),Noop(Waiting for input) exten => 1,1,dbDel(blacklist/${blacknr}) exten => 1,n,Playback(num-was-successfully) exten => 1,n,Playback(removed) exten => 1,n,Wait(1) exten => 1,n,Hangup ; end of [app-blacklist-remove] [ivr-2] include => ivr-2-custom include => ext-findmefollow include => ext-local include => app-directory exten => #,1,Goto(app-directory,#,1) exten => h,1,Hangup exten => s,1,Set(LOOPCOUNT=0) exten => s,n,Set(__DIR-CONTEXT=default) exten => s,n,Set(_IVR_CONTEXT_${CONTEXT}=${IVR_CONTEXT}) exten => s,n,Set(_IVR_CONTEXT=${CONTEXT}) exten => s,n,GotoIf($["${CDR(disposition)}" = "ANSWERED"]?begin) exten => s,n,Answer exten => s,n,Wait(1) exten => s,n(begin),Set(TIMEOUT(digit)=3) exten => s,n,Set(TIMEOUT(response)=10) exten => hang,1,Playback(vm-goodbye) exten => hang,n,Hangup exten => 3,1,dbDel(${BLKVM_OVERRIDE}) exten => 3,n,Set(__NODEST=) exten => 3,n,Goto(disa,1,1) exten => i,1,Playback(invalid) exten => i,n,Goto(loop,1) exten => t,1,Goto(loop,1) exten => loop,1,Set(LOOPCOUNT=$[${LOOPCOUNT} + 1]) exten => loop,n,GotoIf($[${LOOPCOUNT} > 2]?hang,1) exten => loop,n,Goto(ivr-2,s,begin) exten => return,1,Set(_IVR_CONTEXT=${CONTEXT}) exten => return,n,Set(_IVR_CONTEXT_${CONTEXT}=${IVR_CONTEXT_${CONTEXT}}) exten => return,n,Goto(ivr-2,s,begin) exten => fax,1,Goto(ext-fax,in_fax,1) ; end of [ivr-2] [app-userlogonoff] include => app-userlogonoff-custom exten => *12,1,Macro(user-logoff,) exten => *12,n,Hangup exten => *11,1,Macro(user-logon,) exten => *11,n,Hangup exten => _*11.,1,Macro(user-logon,${EXTEN:3},) exten => _*11.,n,Hangup ; end of [app-userlogonoff] [app-pickup] include => app-pickup-custom exten => _**.,1,Noop(Attempt to Pickup ${EXTEN:2} by ${CALLERID(num)}) exten => _**.,n,Pickup(${EXTEN:2}) ; end of [app-pickup] [app-zapbarge] include => app-zapbarge-custom exten => 888,1,Macro(user-callerid,) exten => 888,n,Set(GROUP()=${CALLERID(number)}) exten => 888,n,Answer exten => 888,n,Wait(1) exten => 888,n,ZapBarge() exten => 888,n,Hangup ; end of [app-zapbarge] [app-chanspy] include => app-chanspy-custom exten => 555,1,Macro(user-callerid,) exten => 555,n,Answer exten => 555,n,Wait(1) exten => 555,n,ChanSpy() exten => 555,n,Hangup ; end of [app-chanspy] [ext-test] include => ext-test-custom exten => 7777,1,Goto(from-pstn,s,1) exten => 666,1,Goto(ext-fax,in_fax,1) exten => h,1,Macro(hangupcall,) ; end of [ext-test] [ext-did] include => ext-did-custom exten => fax,1,Goto(ext-fax,in_fax,1) exten => s,1,Set(FROM_DID=s) exten => s,n,Gosub(app-blacklist-check,s,1) exten => s,n,Goto(disa,1,1) exten => _X.,1,Noop(Catch-All DID Match - Found ${EXTEN} - You probably want a DID for this.) exten => _X.,n,Goto(ext-did,s,1) exten => 4002626,1,Set(FROM_DID=4002626) exten => 4002626,n,Gosub(app-blacklist-check,s,1) exten => 4002626,n,Goto(disa,1,1) ; end of [ext-did] [ext-did-direct] include => ext-did-direct-custom exten => fax,1,Goto(ext-fax,in_fax,1) exten => 4414002601,1,Set(FROM_DID=4414002601) exten => 4414002601,n,Goto(from-did-direct,4002601,1) exten => 4002604,1,Set(FROM_DID=4002604) exten => 4002604,n,Goto(from-did-direct,4002604,1) exten => 4008765,1,Set(FROM_DID=4008765) exten => 4008765,n,Goto(from-did-direct,4008765,1) exten => 4008010,1,Set(FROM_DID=4008010) exten => 4008010,n,Goto(from-did-direct,4008010,1) exten => 4002606,1,Set(FROM_DID=4002606) exten => 4002606,n,Goto(from-did-direct,4002606,1) ; end of [ext-did-direct] [ext-local] include => ext-local-custom exten => 4002601,1,Macro(exten-vm,4002601,4002601) exten => 4002601,n,Hangup exten => 4002601,hint,SIP/4002601 exten => ${VM_PREFIX}4002601,1,Macro(vm,4002601,DIRECTDIAL) exten => ${VM_PREFIX}4002601,n,Hangup exten => 4002604,1,Macro(exten-vm,4002604,4002604) exten => 4002604,n,Hangup exten => 4002604,hint,SIP/4002604 exten => ${VM_PREFIX}4002604,1,Macro(vm,4002604,DIRECTDIAL) exten => ${VM_PREFIX}4002604,n,Hangup exten => 4002606,1,Macro(exten-vm,4002606,4002606) exten => 4002606,n,Hangup exten => 4002606,hint,SIP/4002606 exten => ${VM_PREFIX}4002606,1,Macro(vm,4002606,DIRECTDIAL) exten => ${VM_PREFIX}4002606,n,Hangup exten => 4008010,1,Macro(exten-vm,4008010,4008010) exten => 4008010,n,Hangup exten => 4008010,hint,SIP/4008010 exten => ${VM_PREFIX}4008010,1,Macro(vm,4008010,DIRECTDIAL) exten => ${VM_PREFIX}4008010,n,Hangup exten => 4008765,1,Macro(exten-vm,4008765,4008765) exten => 4008765,n,Hangup exten => 4008765,hint,SIP/4008765 exten => ${VM_PREFIX}4008765,1,Macro(vm,4008765,DIRECTDIAL) exten => ${VM_PREFIX}4008765,n,Hangup ; end of [ext-local] [outbound-allroutes] include => outbound-allroutes-custom include => outrt-001-Quantum include => outrt-002-Vitelity exten => foo,1,Noop(bar) ; end of [outbound-allroutes] [outrt-001-Quantum] include => outrt-001-Quantum-custom exten => 311,1,Macro(dialout-trunk,2,${EXTEN},,) exten => 311,n,Macro(outisbusy,) exten => 411,1,Macro(dialout-trunk,2,${EXTEN},,) exten => 411,n,Macro(outisbusy,) exten => 911,1,Macro(dialout-trunk,2,${EXTEN},,) exten => 911,n,Macro(outisbusy,) exten => _NXXXXXX,1,Macro(dialout-trunk,2,${EXTEN},,) exten => _NXXXXXX,n,Macro(outisbusy,) ; end of [outrt-001-Quantum] [outrt-002-Vitelity] include => outrt-002-Vitelity-custom exten => _011.,1,Macro(dialout-trunk,3,${EXTEN},,) exten => _011.,n,Macro(outisbusy,) exten => _1800NXXXXXX,1,Macro(dialout-trunk,3,${EXTEN},,) exten => _1800NXXXXXX,n,Macro(outisbusy,) exten => _1866NXXXXXX,1,Macro(dialout-trunk,3,${EXTEN},,) exten => _1866NXXXXXX,n,Macro(outisbusy,) exten => _1877NXXXXXX,1,Macro(dialout-trunk,3,${EXTEN},,) exten => _1877NXXXXXX,n,Macro(outisbusy,) exten => _1888NXXXXXX,1,Macro(dialout-trunk,3,${EXTEN},,) exten => _1888NXXXXXX,n,Macro(outisbusy,) exten => _1NXXNXXXXXX,1,Macro(dialout-trunk,3,${EXTEN},,) exten => _1NXXNXXXXXX,n,Macro(outisbusy,) ; end of [outrt-002-Vitelity] [app-blackhole] include => app-blackhole-custom exten => hangup,1,Noop(Blackhole Dest: Hangup) exten => hangup,n,Hangup exten => zapateller,1,Noop(Blackhole Dest: Play SIT Tone) exten => zapateller,n,Answer exten => zapateller,n,Zapateller() exten => musiconhold,1,Noop(Blackhole Dest: Put caller on hold forever) exten => musiconhold,n,Answer exten => musiconhold,n,MusicOnHold() exten => congestion,1,Noop(Blackhole Dest: Congestion) exten => congestion,n,Answer exten => congestion,n,Playtones(congestion) exten => congestion,n,Congestion(20) exten => congestion,n,Hangup exten => busy,1,Noop(Blackhole Dest: Busy) exten => busy,n,Answer exten => busy,n,Playtones(busy) exten => busy,n,Busy(20) exten => busy,n,Hangup ; end of [app-blackhole] [from-internal-additional] include => from-internal-additional-custom include => app-dnd-off include => app-dnd-on include => app-gabcast include => app-calltrace include => app-directory include => app-echo-test include => app-speakextennum include => app-speakingclock include => app-pbdirectory include => app-speeddial include => app-dictate-record include => app-dictate-send include => app-dialvm include => app-vmmain include => app-cf-busy-off include => app-cf-busy-off-any include => app-cf-busy-on include => app-cf-off include => app-cf-off-any include => app-cf-on include => app-cf-unavailable-off include => app-cf-unavailable-on include => app-recordings include => ext-queues include => app-callwaiting-cwoff include => app-callwaiting-cwon include => ext-group include => grps include => app-blacklist include => ext-findmefollow include => fmgrps include => ext-meetme include => app-userlogonoff include => app-pickup include => app-zapbarge include => app-chanspy include => ext-test include => ext-local include => outbound-allroutes exten => h,1,Hangup ; end of [from-internal-additional] [root@asterisk1 asterisk]# more sip_additional.conf ; do not edit this file, this is an auto-generated file by freepbx ; all modifications must be done from the web gui [4002601] type=friend secret=8888 record_out=Adhoc record_in=Adhoc qualify=yes port=5060 nat=yes mailbox=4002601@default host=dynamic dtmfmode=rfc2833 dial=SIP/4002601 context=from-internal canreinvite=no callerid=device <4002601> [4002604] type=friend secret=8888 record_out=Adhoc record_in=Adhoc qualify=yes port=5060 nat=yes mailbox=4002604@default host=dynamic dtmfmode=rfc2833 dial=SIP/4002604 context=from-internal canreinvite=no callerid=device <4002604> [4002606] type=friend secret=8888 record_out=Adhoc record_in=Adhoc qualify=yes port=5060 nat=yes mailbox=4002606@default host=dynamic dtmfmode=rfc2833 dial=SIP/4002606 context=from-internal canreinvite=no callerid=device <4002606> [4008010] type=friend secret=389gh7aseh4h record_out=Adhoc record_in=Adhoc qualify=yes port=5060 nat=yes mailbox=4008010@default host=dynamic dtmfmode=rfc2833 dial=SIP/4008010 context=from-internal canreinvite=no callerid=device <4008010> [4008765] type=friend secret=8888 record_out=Adhoc record_in=Adhoc qualify=yes port=5060 nat=yes mailbox=4008765@default host=dynamic dtmfmode=rfc2833 dial=SIP/4008765 context=from-internal canreinvite=no callerid=device <4008765> [441400XXXX] type=user context=from-trunk [Quantum] username=4414002600 type=peer qualifysmoothing=yes insecure=very host=10.70.0.193 context=default canreinvite=no [root@asterisk1 asterisk]#