Ok, so I’m almost done with my setup. Unfortunately my VoIP provider causes a problem which breaks our concept. What we are trying to achieve is quite easy, here’s a brief overview:
10 endpoints (phones), 10 numbers registered with our VoIP provider (unitymedia, german comp).
Each phone number is supposed to be statically mapped to each phone, i.e. each phone has its own fixed number that it dials out with and can also be called from external via that same number.
Outbound routes are working just fine. The problem are the inbound routes.
Our provider does not send us the number which was called as DID, but the username that number is registered with.
Unfortunately the username has this format: n123456789_X, where X is basically the index.
- I can’t enter the username directly because of the underscore
- I can’t seem to create a pattern that matches the username (escaping doesn’t work)
- I already tried setting
context=from-pstn-toheader
in PEER details - no diference. Still receiving username as DID
Here’s a log:
pbx.c: Executing [n123456789_4@from-pstn-toheader:1] NoOp("SIP/Unitymedia_XXX_XXXXX-00000e59", "Attempting to extract DID from SIP To header") in new stack
pbx.c: Executing [n123456789_4@from-pstn-toheader:2] GotoIf("SIP/Unitymedia_XXX_XXXXX-00000e59", "1?SIP") in new stack
pbx_builtins.c: Goto (from-pstn-toheader,n123456789_4,6)
pbx.c: Executing [n123456789_4@from-pstn-toheader:6] Goto("SIP/Unitymedia_XXX_XXXXX-00000e59", "from-pstn,n123456789_4,1") in new stack
pbx_builtins.c: Goto (from-pstn,n123456789_4,1)
pbx.c: Executing [n123456789_4@from-pstn:1] Set("SIP/Unitymedia_XXX_XXXXX-00000e59", "__FROM_DID=n123456789_4") in new stack
pbx.c: Executing [n123456789_4@from-pstn:2] NoOp("SIP/Unitymedia_XXX_XXXXX-00000e59", "Received an unknown call with DID set to n123456789_4") in new stack
Any ideas or suggestions how to realize this or work around the problem?