CSipSimple: 404 / User not found
threehappypenguins:
I have successfully set things up on my Obi202 so that all my calls also ring my Android phone with CSipSimple and a Sip2Sip account... although my only complaint is that the CallerID always shows my Sip2Sip username and not the actual caller... I tried enabling X_SpoofCallerID and it effectively stops my Android from receiving the calls after that; whether I have registration enabled or not.
Anyways, I cannot, for the life of me, make outgoing calls from CSipSimple. I have done this in the past, can't get it to work now. Here is what I did:
Voice Service > SP2 Service > X_InboundCallRoute:
Quote
{(Mcot)>(<**7**1:>(Msp1)),(Mcot)>(<**1:>(Msp1)):sp1},{(Mcot)>(<**7**2:>(Msp2)),(Mcot)>(<**2:>(Msp2)):sp2},{(Mcot)>(<**7**3:>(Msp3)),(Mcot)>(<**3:>(Msp3)):sp3},{(Mcot)>(<**7**4:>(Msp4)),(Mcot)>(<**4:>(Msp4)):sp4},{(Mcot)>(<**7**9:>(Mpp)),(Mcot)>(<**9:>(Mpp)):pp},{(Mcot)>(<**7:>(**0)),(Mcot)>**0:aa},{(Mcot)>(<**7:>(***)),(Mcot)>***:aa2},{(Mcot)>(<**7:>(Msp1)),(Mcot)>(Msp1):sp1},{(Mcot)>(<**7:>(0)),(Mcot)>0:ph,ph2},{ph,ph2}
SP1 is my default. SP2 (obviously) is where I want to receive the calls from the Android in order to use SP1 (one voip service) and SP3 (another voip service).
User Settings > User Defined DigitMaps > User Defined Digit Map2 > Label:
Code:
cot
User Settings > User Defined DigitMaps > User Defined Digit Map2 > DigitMap:
Code:
(aaaaaa's')
(Where aaaaaa's' is my username... which ends in an s... and apparently s is a used character).
In CSipSimple, my Sip2Sip account is successfully registered. I have the STUN server enabled, and in order to add a prefix and suffix:
Settings > Filters > Sip2Sip > Add Filter / rewrite rule
Changed Can't Call to Rewrite
Changed Starts with to All
Changed Replace match by to Prefix by (and then Suffix with when making the separate suffix rule)
I added **7 as a prefix and @username.no-ip.org:5081 (my X_UserAgentPort for SP2 is 5081... which I also forwarded on my router). My public ip address is also updated with my ddns, and I also have X_DiscoverPublicAddress in Profile B SIP).
Yet, when I dial out, no matter what I dial, I right away get the error "404 / User not found." And nothing shows up in my Obi history.
It seems like the call isn't even attempting to go out on CSipSimple... not even for the Obi to reject it or something. Any ideas?
In case anybody is wondering, I went through all this a couple of years ago: https://www.obitalk.com/forum/index.php?topic=4682.0
azrobert:
The 404 error is probably coming from Sip2Sip. Look at the Sip2Sip log. Maybe that will give an indication of what's wrong. Are you using the Android dialer or the CSipSimple dialer? Using the CSipSimple dialer can cause the 404 error. CSipSimple filters only work with the Android dialer.
What is defined on SP2 and what is your rule that routes calls to the Android?
Try using SP3 if it's defined as SIP.
Enable X_SpoofCallerID on SP3.
Then use the following rule to route inbound calls to the Android:
sp3(Your_Sip2Sip_ID@sip2sip.info)
You should simplify the SP2 X_InboundCallRoute. ianobi allowed for every possible combination.
Something like:
{aaaaaas>0:ph,ph2},{aaaaaas>(Msp1):sp1},{aaaaaas>(<**3:>(Msp3)):sp3},{ph,ph2}
Then remove the **7 prefix from the CSipSimple filter. It's not needed.
When the aaaaaas rule is not enclosed in parentheses it becomes a literal and the "s" doesn't have to be in quotes.
threehappypenguins:
Still not working.
Since sip2sip won't allow me to have the ;ui=$1 at the end in order to display the caller, and because I thought that maybe sip2sip just wouldn't let me do outbound calls on my cell to my Obi anymore, I figured I'd try Callcentric.
I registered that on CSipSimple just fine, *did not put on* the prefix of **7, and put on a suffix of @host.ddns.com:5081
I can successfully receive calls by putting the following in SP1 & SP3:
Quote
{(Mcot)>(Msp1),(Mcot)>(<**1:>(Msp1)):sp1},{(Mcot)>(<**3:>(Msp2)):sp3},{(Mcot)>(<**8:>(Mli)):li},{(Mcot)>(<**9:>(Mpp)):pp},{(Mcot)>**0:aa},{(Mcot)>0:ph},{sp2(17771234567@in.callcentric.com;ui=$1),ph,ph2}
I'm not really sure why I have all the Mcot stuff all in there, but I just left it because it's working. I also originally registered CallCentric on SP2, but then decided to uncheck the register thing and not require it. Calls still go to my cell (and ring home phones simultaneously).
I tried what you implemented and put into SP2 this (and enabled X_SpoofCallerID for SP3):
Quote
{17771234567>0:ph,ph2},{17771234567>(Msp1):sp1},{17771234567>(<**3:>(Msp3)):sp3},{ph,ph2}
Didn't work.
I also tried this:
Quote
{17771234567>0:ph,ph2},{17771234567>(Msp1):sp1},{17771234567>(<**2:>(Msp2)):sp2},{ph,ph2}
If I use the CSipSimple dialer, it says, "number is invalid." If I use the native android dialer and then choose CallCentric, it says 486 / Busy here.
I tried the "old" way with the prefix of **7 and that big long list of Mcot that ianobi gave me. Exact same errors.
I just can't get this thing working!!!
azrobert:
I think you have a misunderstanding of how this works.
You register the Android to Sip2Sip.
The filter is applied to the Sip2Sip account.
Dial the number from the Android dialer and select the Sip2Sip account.
A Callcentric definition is not needed on the Android for this function.
If you need a CC definition for some other reason, that's fine.
Sip2Sip will route the call to the URI setup in the CSipSimple filter.
The call will go directly from Sip2Sip to the OBi.
Callcentric is not involved.
The call will have your Sip2Sip account number associated with it, not CC's account.
Define SP2 X_InboundCallRoute: {aaaaaa>0:ph,ph2},{aaaaaa>(Msp1):sp1},{aaaaaa>(<**3:>(Msp3)):sp3},{ph,ph2}
Where aaaaaa is your Sip2Sip account number.
The above rules only have to be defined on SP2.
You can remove them from SP1 and SP3.
Route inbound calls by place the following in the SP1 and SP2 inbound routes:
sp2(aaaaaa@sip2sip.info)
aaaaaa is your Sip2Sip account number.
Also enable X_SpoofCallerID on SP2
You can use this without X_SpoofCallerID enabled, but you won't get CallerID Name:
sp2(aaaaaa@sip2sip.info;ui=$1)
If you want, you can route these calls to in.callcentric.com
threehappypenguins:
I completely did away with Sip2Sip, and redid everything with CallCentric. So rather than having Sip2Sip, I have CallCentric instead. Sip2Sip does not let me have ;ui=$1 at the end of the address thingy (whatever it's called). CallCentric does. Also, as soon as I enable X_SpoofCallerID on SP2 when using Sip2Sip, I stop receiving calls on my Android cell. I have no such problem with CallCentric.
I also tried what you said with Sip2Sip originally (my username being aaaaas, or whatever). Won't work. That's when I decided to do away with Sip2Sip completely and try CallCentric on my Android instead.
Navigation
[0] Message Index
[#] Next page