[asterisk-r2] Panasonic TD500 interconection

Daniel Ferrer daniel at teledata.com.uy
Mon Mar 18 12:31:29 CDT 2013


Hi Moises and people of R2 list.
Thanks for your
I'm interconnecting a Panasonic KX-TD500 Hybrid PBX to an Asterisk box 
using openr2 1.3.1.
 From a Panasonic extension I can dial Asterisk extensions and I can 
dial PSTN numbers with 9. Also from Asterisk I can dial a Panasonic 
extension, the R2 connection uses BR protocol variant and has no ANI.

I want to dial from Panasonic short numbers with variable length, say 
1XXX and 1XX numbers that are PSTN "short numbers, with variable 
length". I have these 2 patterns on incoming Asterisk context, and the 
problem is that when there is no exact match, TDM500 doesn't respond and 
call fail:

Example 1: "_1XX" and "_1XXX" patterns on incoming context. Incoming 
call from TD500 wants to dial extension "150". Because there are more 
than one exact match, we will wait for timeout, and Asterisk send DTMF 
5, and the TD500 does not respond, call fails with "Protocol error":

[18:40:55:135] [Thread: 140341109544704] [Chan 49] - M - Call started at 
Fri Mar 15 18:40:55 2013 on chan 49 [openr2 version 1.3.1, revision 
(release)]
[18:40:55:135] [Thread: 140341109544704] [Chan 49] - M - Initialized R2 
MF detector
[18:40:55:135] [Thread: 140341109544704] [Chan 49] - M - CAS Tx >> 
[SEIZE ACK] 0x0C
[18:40:55:135] [Thread: 140341109544704] [Chan 49] - M - CAS Raw Tx >> 0x0D
[18:40:55:574] [Thread: 140341109544704] [Chan 49] - M - MF Rx << 1 [ON]
[18:40:55:574] [Thread: 140341109544704] [Chan 49] - M - Attempting to 
cancel timer timer 0
[18:40:55:574] [Thread: 140341109544704] [Chan 49] - M - Cannot cancel 
timer 0
[18:40:55:574] [Thread: 140341109544704] [Chan 49] - M - Getting DNIS 
digit 1
[18:40:55:574] [Thread: 140341109544704] [Chan 49] - M - DNIS so far: 1, 
expected length: 13
[18:40:55:574] [Thread: 140341109544704] [Chan 49] - M - Requesting next 
DNIS with signal 0x31.
[18:40:55:574] [Thread: 140341109544704] [Chan 49] - M - MF Tx >> 1 [ON]
[18:40:55:574] [Thread: 140341109544704] [Chan 49] - M - scheduled timer 
id 2 (mf_back_cycle)
[18:40:55:654] [Thread: 140341109544704] [Chan 49] - M - MF Rx << 1 [OFF]
[18:40:55:654] [Thread: 140341109544704] [Chan 49] - M - MF Tx >> 1 [OFF]
[18:40:55:934] [Thread: 140341109544704] [Chan 49] - M - MF Rx << 5 [ON]
[18:40:55:934] [Thread: 140341109544704] [Chan 49] - M - Attempting to 
cancel timer timer 2
[18:40:55:934] [Thread: 140341109544704] [Chan 49] - M - timer id 2 
found, cancelling it now
[18:40:55:934] [Thread: 140341109544704] [Chan 49] - M - Getting DNIS 
digit 5
[18:40:55:954] [Thread: 140341109544704] [Chan 49] - M - DNIS so far: 
15, expected length: 13
[18:40:55:954] [Thread: 140341109544704] [Chan 49] - M - Requesting next 
DNIS with signal 0x31.
[18:40:55:954] [Thread: 140341109544704] [Chan 49] - M - MF Tx >> 1 [ON]
[18:40:55:954] [Thread: 140341109544704] [Chan 49] - M - scheduled timer 
id 3 (mf_back_cycle)
[18:40:56:034] [Thread: 140341109544704] [Chan 49] - M - MF Rx << 5 [OFF]
[18:40:56:034] [Thread: 140341109544704] [Chan 49] - M - MF Tx >> 1 [OFF]
[18:40:56:214] [Thread: 140341109544704] [Chan 49] - M - MF Rx << 0 [ON]
[18:40:56:214] [Thread: 140341109544704] [Chan 49] - M - Attempting to 
cancel timer timer 3
[18:40:56:214] [Thread: 140341109544704] [Chan 49] - M - timer id 3 
found, cancelling it now
[18:40:56:214] [Thread: 140341109544704] [Chan 49] - M - Getting DNIS 
digit 0
[18:40:56:214] [Thread: 140341109544704] [Chan 49] - M - DNIS so far: 
150, expected length: 13
[18:40:56:214] [Thread: 140341109544704] [Chan 49] - M - Requesting next 
DNIS with signal 0x31.
[18:40:56:214] [Thread: 140341109544704] [Chan 49] - M - MF Tx >> 1 [ON]
[18:40:56:214] [Thread: 140341109544704] [Chan 49] - M - scheduled timer 
id 4 (mf_back_cycle)
[18:40:56:294] [Thread: 140341109544704] [Chan 49] - M - MF Rx << 0 [OFF]
[18:40:56:294] [Thread: 140341109544704] [Chan 49] - M - MF Tx >> 1 [OFF]
[18:41:01:214] [Thread: 140341109544704] [Chan 49] - M - Attempting to 
cancel timer timer 4
[18:41:01:214] [Thread: 140341109544704] [Chan 49] - M - timer id 4 
found, cancelling it now
[18:41:01:214] [Thread: 140341109544704] [Chan 49] - M - calling timer 4 
(mf_back_cycle) callback
[18:41:01:214] [Thread: 140341109544704] [Chan 49] - M - MF cycle timed 
out, no more DNIS
[18:41:01:214] [Thread: 140341109544704] [Chan 49] - M - scheduled timer 
id 5 (mf_back_resume_cycle)
[18:41:01:214] [Thread: 140341109544704] [Chan 49] - M - MF Tx >> 5 [ON]
[18:41:01:214] [Thread: 140341109544704] [Chan 49] - M - scheduled timer 
id 6 (mf_back_cycle)
[18:41:01:374] [Thread: 140341109544704] [Chan 49] - M - Attempting to 
cancel timer timer 5
[18:41:01:374] [Thread: 140341109544704] [Chan 49] - M - timer id 5 
found, cancelling it now
[18:41:01:374] [Thread: 140341109544704] [Chan 49] - M - calling timer 5 
(mf_back_resume_cycle) callback
[18:41:01:374] [Thread: 140341109544704] [Chan 49] - M - MF Tx >> 5 [OFF]
[18:41:06:214] [Thread: 140341109544704] [Chan 49] - M - Attempting to 
cancel timer timer 6
[18:41:06:214] [Thread: 140341109544704] [Chan 49] - M - timer id 6 
found, cancelling it now
[18:41:06:214] [Thread: 140341109544704] [Chan 49] - M - calling timer 6 
(mf_back_cycle) callback
[18:41:06:214] [Thread: 140341109544704] [Chan 49] - M - MF back cycle 
timed out!
[18:41:06:234] [Thread: 140341109544704] [Chan 49] - M - Protocol error. 
Reason = Multi Frequency Cycle Timeout, R2 State = Seize ACK 
Transmitted, MF state = Category Request Transmitted, MF Group = 
Backward Group A, CAS = 0x00
DNIS = 150, ANI = , MF = 0x20
[18:41:06:235] [Thread: 140341109544704] [Chan 49] - M - Attempting to 
cancel timer timer 0
[18:41:06:235] [Thread: 140341109544704] [Chan 49] - M - Cannot cancel 
timer 0


Example 2:  only pattern "_1XXX" and I dial extension "1950". There is 
an exact match, so there is no timeout and call is accepted (sends DTMF 
5 to send callings party category)


[18:36:30:272] [Thread: 140141227390720] [Chan 41] - M - Call started at 
Fri Mar 15 18:36:30 2013 on chan 41 [openr2 version 1.3.1, revision 
(release)]
[18:36:30:272] [Thread: 140141227390720] [Chan 41] - M - Initialized R2 
MF detector
[18:36:30:272] [Thread: 140141227390720] [Chan 41] - M - CAS Tx >> 
[SEIZE ACK] 0x0C
[18:36:30:272] [Thread: 140141227390720] [Chan 41] - M - CAS Raw Tx >> 0x0D
[18:36:30:858] [Thread: 140141227390720] [Chan 41] - M - MF Rx << 1 [ON]
[18:36:30:858] [Thread: 140141227390720] [Chan 41] - M - Attempting to 
cancel timer timer 0
[18:36:30:858] [Thread: 140141227390720] [Chan 41] - M - Cannot cancel 
timer 0
[18:36:30:858] [Thread: 140141227390720] [Chan 41] - M - Getting DNIS 
digit 1
[18:36:30:858] [Thread: 140141227390720] [Chan 41] - M - DNIS so far: 1, 
expected length: 13
[18:36:30:858] [Thread: 140141227390720] [Chan 41] - M - Requesting next 
DNIS with signal 0x31.
[18:36:30:858] [Thread: 140141227390720] [Chan 41] - M - MF Tx >> 1 [ON]
[18:36:30:858] [Thread: 140141227390720] [Chan 41] - M - scheduled timer 
id 2 (mf_back_cycle)
[18:36:30:958] [Thread: 140141227390720] [Chan 41] - M - MF Rx << 1 [OFF]
[18:36:30:958] [Thread: 140141227390720] [Chan 41] - M - MF Tx >> 1 [OFF]
[18:36:31:298] [Thread: 140141227390720] [Chan 41] - M - MF Rx << 9 [ON]
[18:36:31:298] [Thread: 140141227390720] [Chan 41] - M - Attempting to 
cancel timer timer 2
[18:36:31:298] [Thread: 140141227390720] [Chan 41] - M - timer id 2 
found, cancelling it now
[18:36:31:298] [Thread: 140141227390720] [Chan 41] - M - Getting DNIS 
digit 9
[18:36:31:298] [Thread: 140141227390720] [Chan 41] - M - DNIS so far: 
19, expected length: 13
[18:36:31:298] [Thread: 140141227390720] [Chan 41] - M - Requesting next 
DNIS with signal 0x31.
[18:36:31:298] [Thread: 140141227390720] [Chan 41] - M - MF Tx >> 1 [ON]
[18:36:31:298] [Thread: 140141227390720] [Chan 41] - M - scheduled timer 
id 3 (mf_back_cycle)
[18:36:31:358] [Thread: 140141227390720] [Chan 41] - M - MF Rx << 9 [OFF]
[18:36:31:358] [Thread: 140141227390720] [Chan 41] - M - MF Tx >> 1 [OFF]
[18:36:31:538] [Thread: 140141227390720] [Chan 41] - M - MF Rx << 5 [ON]
[18:36:31:538] [Thread: 140141227390720] [Chan 41] - M - Attempting to 
cancel timer timer 3
[18:36:31:538] [Thread: 140141227390720] [Chan 41] - M - timer id 3 
found, cancelling it now
[18:36:31:538] [Thread: 140141227390720] [Chan 41] - M - Getting DNIS 
digit 5
[18:36:31:538] [Thread: 140141227390720] [Chan 41] - M - DNIS so far: 
195, expected length: 13
[18:36:31:538] [Thread: 140141227390720] [Chan 41] - M - Requesting next 
DNIS with signal 0x31.
[18:36:31:538] [Thread: 140141227390720] [Chan 41] - M - MF Tx >> 1 [ON]
[18:36:31:538] [Thread: 140141227390720] [Chan 41] - M - scheduled timer 
id 4 (mf_back_cycle)
[18:36:31:618] [Thread: 140141227390720] [Chan 41] - M - MF Rx << 5 [OFF]
[18:36:31:618] [Thread: 140141227390720] [Chan 41] - M - MF Tx >> 1 [OFF]
[18:36:31:778] [Thread: 140141227390720] [Chan 41] - M - MF Rx << 0 [ON]
[18:36:31:778] [Thread: 140141227390720] [Chan 41] - M - Attempting to 
cancel timer timer 4
[18:36:31:778] [Thread: 140141227390720] [Chan 41] - M - timer id 4 
found, cancelling it now
[18:36:31:778] [Thread: 140141227390720] [Chan 41] - M - Getting DNIS 
digit 0
[18:36:31:778] [Thread: 140141227390720] [Chan 41] - M - DNIS so far: 
1950, expected length: 13
[18:36:31:778] [Thread: 140141227390720] [Chan 41] - M - User requested 
us to stop getting DNIS!
[18:36:31:778] [Thread: 140141227390720] [Chan 41] - M - MF Tx >> 5 [ON]
[18:36:31:778] [Thread: 140141227390720] [Chan 41] - M - scheduled timer 
id 5 (mf_back_cycle)
[18:36:31:858] [Thread: 140141227390720] [Chan 41] - M - MF Rx << 0 [OFF]
[18:36:31:858] [Thread: 140141227390720] [Chan 41] - M - MF Tx >> 5 [OFF]
[18:36:32:058] [Thread: 140141227390720] [Chan 41] - M - MF Rx << 2 [ON]
[18:36:32:058] [Thread: 140141227390720] [Chan 41] - M - Attempting to 
cancel timer timer 5
[18:36:32:058] [Thread: 140141227390720] [Chan 41] - M - timer id 5 
found, cancelling it now
[18:36:32:058] [Thread: 140141227390720] [Chan 41] - M - Requesting 
change to Group II with signal 0x33
[18:36:32:058] [Thread: 140141227390720] [Chan 41] - M - MF Tx >> 3 [ON]
[18:36:32:058] [Thread: 140141227390720] [Chan 41] - M - scheduled timer 
id 6 (mf_back_cycle)
[18:36:32:138] [Thread: 140141227390720] [Chan 41] - M - MF Rx << 2 [OFF]
[18:36:32:138] [Thread: 140141227390720] [Chan 41] - M - MF Tx >> 3 [OFF]
[18:36:32:298] [Thread: 140141227390720] [Chan 41] - M - MF Rx << 2 [ON]
[18:36:32:298] [Thread: 140141227390720] [Chan 41] - M - Attempting to 
cancel timer timer 6
[18:36:32:298] [Thread: 140141227390720] [Chan 41] - M - timer id 6 
found, cancelling it now
[18:36:32:298] [Thread: 140141227390720] [Chan 41] - M - MF Tx >> 1 [ON]
[18:36:32:298] [Thread: 140141227390720] [Chan 41] - M - scheduled timer 
id 7 (mf_back_cycle)
[18:36:32:378] [Thread: 140141227390720] [Chan 41] - M - MF Rx << 2 [OFF]
[18:36:32:378] [Thread: 140141227390720] [Chan 41] - M - MF Tx >> 1 [OFF]
[18:36:32:378] [Thread: 140141227390720] [Chan 41] - M - Attempting to 
cancel timer timer 7
[18:36:32:378] [Thread: 140141227390720] [Chan 41] - M - timer id 7 
found, cancelling it now
[18:36:32:378] [Thread: 140141227390720] [Chan 41] - M - scheduled timer 
id 8 (r2_answer_delay)
[18:36:32:538] [Thread: 140141227390720] [Chan 41] - M - Attempting to 
cancel timer timer 8
[18:36:32:538] [Thread: 140141227390720] [Chan 41] - M - timer id 8 
found, cancelling it now
[18:36:32:538] [Thread: 140141227390720] [Chan 41] - M - calling timer 8 
(r2_answer_delay) callback
[18:36:42:782] [Thread: 140139549538048] [Chan 41] - M - CAS Tx >> 
[ANSWER] 0x04
[18:36:42:782] [Thread: 140139549538048] [Chan 41] - M - CAS Raw Tx >> 0x05
[18:36:44:294] [Thread: 140139549538048] [Chan 41] - M - Attempting to 
cancel timer timer 0
[18:36:44:294] [Thread: 140139549538048] [Chan 41] - M - Cannot cancel 
timer 0
[18:36:44:294] [Thread: 140139549538048] [Chan 41] - M - CAS Tx >> 
[CLEAR BACK] 0x0C
[18:36:44:294] [Thread: 140139549538048] [Chan 41] - M - CAS Raw Tx >> 0x0D


This is my R2 Config:

signalling=mfcr2
mfcr2_variant=br
mfcr2_get_ani_first=no
mfcr2_max_ani=0
mfcr2_max_dnis=13
mfcr2_category=national_priority_subscriber
mfcr2_logdir=span2
mfcr2_call_files=yes
mfcr2_logging=all
mfcr2_mfback_timeout=-1
accountcode=panasonic
context=incoming_panasonic
group = 2
channel => 32-46
channel => 48-62


Any clue about this? I'll apreciate your comments

regards,

-- 

*:::::::::::::::::::::::::::::::::::::***

Teledata Comunicaciones

*ING. DANIEL FERRER
*
IPContact - Jefe de producto

*/Teledata comunicaciones/*
Canelones 2101 - CP. 11200 - Montevideo, Uruguay
Tel. (+598) 2401 3864 / int. 182 - www.teledata.com.uy 
<http://www.teledata.com.uy/>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-r2/attachments/20130318/5d34005a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 515 bytes
Desc: not available
URL: <http://lists.digium.com/pipermail/asterisk-r2/attachments/20130318/5d34005a/attachment-0001.gif>


More information about the asterisk-r2 mailing list