Some ISP need 4 characters some more , it also depends on “how” many wildcards you are using the represent the entire number.
The called number number is 023664123439 so one of the following has to work:
exten=>_XXXXXX1234,1,Dial(SIP/4239) ; X match a single digit, we ignore the 6 digits before 2239
Code:
exten=>0236641234,1,Dial(SIP/4239) ; no pattern, we look for the entire called number
Cheers.
Marco Bruni
Her you go , as you can see i dial 2229 but it goes to ext. 4225
P[ 4] I IND :NEW_CHANNEL oad:35318984900 dad:236642229 pid:7 state:none
P[ 4] Chan not existing at the moment bc->l3id:420000 bc:0xb7d49e4c event:NEW_CHANNEL port:4 channel:1
P[ 4] NO USERUESRINFO
P[ 4] I IND :SETUP oad:35318984900 dad:236642229 pid:7 state:none
P[ 4] read_config: Getting Config
P[ 4] I SEND:PROCEEDING oad:035318984900 dad:0236642229 pid:7
– Executing [0236642229@misdn:1] Dial(“mISDN/7-u17”, “SIP/4225”) in new stack
– Called 4225
Extension Changed 4225 new state Ringing for Notify User 4224
– SIP/4225-09ca14a0 is ringing
P[ 4] * IND :LI>ringing pid:7
P[ 4] I SEND:ALERTING oad:035318984900 dad:0236642229 pid:7
P[ 4] misdn_write: state (ALERTING) prodded.
P[ 4] I IND ISCONNECT oad:035318984900 dad:0236642229 pid:7 state:ALERTING
P[ 4] I SEND:RELEASE oad:035318984900 dad:0236642229 pid:7
== Spawn extension (misdn, 0236642229, 1) exited non-zero on 'mISDN/7-u17’
P[ 4] * IND : HANGUP pid:7 ctx:misdn dad:0236642229 oad:035318984900 State:ALERTING
Extension Changed 4225 new state Idle for Notify User 4224
P[ 4] I IND :RELEASE_COMPLETE oad: dad: pid:7 state:CLEANING
P[ 4] Cannot hangup chan, no ast
But there is nothing in the dialplan that is linking it to 4225.
P[ 2] I IND :NEW_CHANNEL oad:35318984900 dad:236642229 pid:6 state:none
P[ 2] Chan not existing at the moment bc->l3id:510000 bc:0x93974dc event:NEW_CHANNEL port:2 channel:1
P[ 2] NO USERUESRINFO
P[ 2] I IND :SETUP oad:35318984900 dad:236642229 pid:6 state:none
P[ 2] read_config: Getting Config
P[ 2] I SEND:PROCEEDING oad:035318984900 dad:0236642229 pid:6
– Executing [0236642229@misdn:1] Dial(“mISDN/3-u10”, “SIP/4225”) in new stack
– Called 4225
Extension Changed 4225 new state Ringing for Notify User 4224
– SIP/4225-0949ef40 is ringing
P[ 2] * IND :LI>ringing pid:6
P[ 2] I SEND:ALERTING oad:035318984900 dad:0236642229 pid:6
P[ 2] misdn_write: state (ALERTING) prodded.
P[ 2] I IND ISCONNECT oad:035318984900 dad:0236642229 pid:6 state:ALERTING
P[ 2] I SEND:RELEASE oad:035318984900 dad:0236642229 pid:6
== Spawn extension (misdn, 0236642229, 1) exited non-zero on 'mISDN/3-u10’
P[ 2] * IND : HANGUP pid:6 ctx:misdn dad:0236642229 oad:035318984900 State:ALERTING
Extension Changed 4225 new state Idle for Notify User 4224
P[ 2] I IND :RELEASE_COMPLETE oad: dad: pid:6 state:CLEANING
P[ 2] Cannot hangup chan, no ast
[quote=“sander4000”]did you try to use the full did number?
exten =>236642229,1,Dial(SIP/4229)[/quote]
Hi sander , i did :
[Mar 18 21:24:04] WARNING[20806]: chan_misdn.c:4328 cb_events: Extension can never match, so disconnecting on port(1).maybe you want to add an ‘i’ extension to catch this case.
P[ 1] I SEND:RELEASE_COMPLETE oad:000353851610136 dad:0236642232 pid:8
P[ 1] * IND : HANGUP pid:8 ctx:misdn dad:0236642232 oad:000353851610136 State:EXTCANTMATCH
P[ 3] I IND :NEW_CHANNEL oad:00353851610136 dad:236642232 pid:9 state:none
P[ 3] Chan not existing at the moment bc->l3id:70000 bc:0x99ad2c4 event:NEW_CHANNEL port:3 channel:1
P[ 3] NO USERUESRINFO
P[ 3] I IND :SETUP oad:00353851610136 dad:236642232 pid:9 state:none
P[ 3] read_config: Getting Config
[Mar 18 21:24:04] WARNING[20806]: chan_misdn.c:4328 cb_events: Extension can never match, so disconnecting on port(3).maybe you want to add an ‘i’ extension to catch this case.
P[ 3] I SEND:RELEASE_COMPLETE oad:000353851610136 dad:0236642232 pid:9
P[ 3] * IND : HANGUP pid:9 ctx:misdn dad:0236642232 oad:000353851610136 State:EXTCANTMATCH
P[ 2] I IND :NEW_CHANNEL oad:00353851610136 dad:236642232 pid:10 state:none
P[ 2] Chan not existing at the moment bc->l3id:80000 bc:0x99a16dc event:NEW_CHANNEL port:2 channel:1
P[ 2] NO USERUESRINFO
P[ 2] I IND :SETUP oad:00353851610136 dad:236642232 pid:10 state:none
P[ 2] read_config: Getting Config
[Mar 18 21:24:04] WARNING[20806]: chan_misdn.c:4328 cb_events: Extension can never match, so disconnecting on port(2).maybe you want to add an ‘i’ extension to catch this case.
P[ 2] I SEND:RELEASE_COMPLETE oad:000353851610136 dad:0236642232 pid:10
P[ 2] * IND : HANGUP pid:10 ctx:misdn dad:0236642232 oad:000353851610136 State:EXTCANTMATCH
[quote=“mbruni”][quote]
And i dial the external 2220 extension then it will go to the 4229 sip
[/quote]
Ok, now I understand, I think you have to specify better your extension pattern, so please try:
[Mar 19 11:17:11] WARNING[11628]: chan_misdn.c:4336 cb_events: Extension can never match, So jumping to 'i' extension. port(2)
P[ 2] I SEND:SETUP_ACKNOWLEDGE oad:000353851610136 dad:0236642239 pid:32