Hello all !
I would like to transform +49 (55442) 4441 into 0049554424441 in the Dial Patterns of the outbound route. Is this possible ?
Regards,
Fabianus
Hello all !
I would like to transform +49 (55442) 4441 into 0049554424441 in the Dial Patterns of the outbound route. Is this possible ?
Regards,
Fabianus
I’m not sure that the + can be stripped in the outbound route, however, you can do it in a context.
Change your extension context from from-internal to from-internal-mycustom
in extension.custom.conf add the following
[from-internal-mycustom]
exten => _+.,1,Noop(Remove + from number)
exten => _+.,n,Goto(from-internal,00${EXTEN:1},1)
exten => _.,1,Goto(from-internal,${EXTEN},1)
exten => h,1,Hangup()
reload and voilà for the +
For the () however try to see if it is accepted by asterisk, I’m not sure about it.
Hi tadpole !
thanks a lot for your feedback !
I did what you told me to, but the calls do not get through. Here is what I have in the log :
during a call from extension 2107 to 6000 :
-- Executing [6000@from-internal:1] Goto("SIP/2107-b7816118", "from-internal|6000|1") in new stack
-- Goto (from-internal,6000,1)
-- Executing [6000@from-internal:1] Goto("SIP/2107-b7816118", "from-internal|6000|1") in new stack
-- Goto (from-internal,6000,1)
-- Executing [6000@from-internal:1] Goto("SIP/2107-b7816118", "from-internal|6000|1") in new stack
-- Goto (from-internal,6000,1)
-- Executing [6000@from-internal:1] Goto("SIP/2107-b7816118", "from-internal|6000|1") in new stack
-- Goto (from-internal,6000,1)
-- Executing [6000@from-internal:1] Goto("SIP/2107-b7816118", "from-internal|6000|1") in new stack
-- Goto (from-internal,6000,1)
-- Executing [6000@from-internal:1] Goto("SIP/2107-b7816118", "from-internal|6000|1") in new stack
-- Goto (from-internal,6000,1)
-- Executing [6000@from-internal:1] Goto("SIP/2107-b7816118", "from-internal|6000|1") in new stack
-- Goto (from-internal,6000,1)
-- Executing [6000@from-internal:1] Goto("SIP/2107-b7816118", "from-internal|6000|1") in new stack
-- Goto (from-internal,6000,1)
-- Executing [6000@from-internal:1] Goto("SIP/2107-b7816118", "from-internal|6000|1") in new stack
-- Goto (from-internal,6000,1)
-- Executing [6000@from-internal:1] Goto("SIP/2107-b7816118", "from-internal|6000|1") in new stack
-- Goto (from-internal,6000,1)
Or during a call from extension 2107 to +33677772107
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
-- Goto (from-internal,0033677772107,1)
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
-- Goto (from-internal,0033677772107,1)
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
-- Goto (from-internal,0033677772107,1)
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
-- Goto (from-internal,0033677772107,1)
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
-- Goto (from-internal,0033677772107,1)
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
-- Goto (from-internal,0033677772107,1)
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
-- Goto (from-internal,0033677772107,1)
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
-- Goto (from-internal,0033677772107,1)
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
-- Goto (from-internal,0033677772107,1)
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
-- Goto (from-internal,0033677772107,1)
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
-- Goto (from-internal,0033677772107,1)
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
-- Goto (from-internal,0033677772107,1)
-- Executing [0033677772107@from-internal:1] Goto("SIP/2107-b780e300", "from-internal|0033677772107|1") in new stack
And it does this on and on until I hang up.
Do you have any idea what could be the reason for this ?
Thanks a lot for any additional feedback,
Regards,
Fabianus