Request: Dial Plan fwd to cell phone when SIP is down

Catalog of dial plans
Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Request: Dial Plan fwd to cell phone when SIP is down

Post by Aaron » Thu Jun 10, 2010 11:22 pm

It depends entirely on the VSP you are forwarding the call through. Most of the time you won't be able to do it as with SIP the "Caller ID" is used to authenticate the call and if you out in the original caller's then your VSP won't authorise them.

To tweak the callerid in the sipsorcery dialplan you can use dial string options to do it on a per call leg basis or a method call to do it for all subsequent calls.

Code: Select all

sys.Dial("1234@myvsp.com[fd=Joe Bloggs,fu=joe,fh=bloggs.com]

sys.SetFromHeader("Je Bloggs", "joe", "blogss.com")
Regards,
Aaron

LHM
Posts: 164
Joined: Tue Jul 28, 2009 7:11 pm

Re: Request: Dial Plan fwd to cell phone when SIP is down

Post by LHM » Fri Jun 11, 2010 6:29 pm

Aaron,
This is the response I got from VoIP.ms support:
"According to our SIP traces, From SIP SORCERY, you invite the SIP URI FROM your username 5551212@houston.voip.ms so instead of sending a call to the SIP URI, sip sorcery authenticate with houston server and dials the sip URI, That's why you see the account settings callerID, because you are sending the SIP URI with your account authentication, so you need to send forward the incoming calls of your DID straight to the SIP URI, without any authentication."

How do I accomplish this through Sipsorcery?
My curent dialplan is

if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable() then #If SIP Client/E71Cellphone is logged on, then VOIP Call
sys.Dial("#{sys.Username}@local",60)
sys.Respond(480, "#{sys.Username} Not available")
else
sys.Dial("5551212@Voipms",60) #Call forwards to Cellphone via VoIP.ms to T-Mobile.
sys.Respond(480, "#{sys.Username} Not available")
end

LHM
Posts: 164
Joined: Tue Jul 28, 2009 7:11 pm

Re: Request: Dial Plan fwd to cell phone when SIP is down

Post by LHM » Fri Jun 11, 2010 8:52 pm

Tried this "so you need to send forward the incoming calls of your DID straight to the SIP URI, without any authentication" from VOIPMS
and the log shows below:

DialPlan 20:25:20:887 sip1: call from sip:+1703637xxxx@74.125.240.68 to Lukex.
DialPlan 20:25:20:918 sip1: Commencing Dial with: 1110497xxxx@houston.voip.ms.
DialPlan 20:25:20:918 sip1: Attempting to locate a provider for call leg: sip:1110497xxxx@houston.voip.ms.
DialPlan 20:25:20:918 sip1: ForkCall commencing call leg to sip:1110497xxxx@houston.voip.ms.
DialPlan 20:25:20:918 sip1: Switching to sip:1110497xxxx@houston.voip.ms:5060 via udp:69.59.142.213:5060.
DialPlan 20:25:20:918 sip1: SDP on UAC call had public IP not mangled, RTP socket 74.125.240.68:21146.
DialPlan 20:25:21:872 sip1: Response 407 Proxy Authentication Required for sip:1110497xxxx@houston.voip.ms.
DialPlan 20:25:21:872 sip1: Forward leg failed, authentication was requested but no credentials were available.
DialPlan 20:25:21:872 sip1: UAS call failed with a response status of 480 and lukex Not available.

Also tried this in dial plan
sys.SetFromHeader("Myname","myusername","houston.voip.ms")
with SIP Binding registered and not registered and pass of CID to cell is still my VOIPMS #

I am waiting to hear back from VOIPMS about auth being required. (will update then)

LHM
Posts: 164
Joined: Tue Jul 28, 2009 7:11 pm

Re: Request: Dial Plan fwd to cell phone when SIP is down

Post by LHM » Thu Jun 17, 2010 4:16 pm

Using a workaround, I now have CID from caller.
Path is: Incoming caller> GV> Gizmo5-1> Sipsorcery(If SIPphone not available then)> Gizmo5-2> Voipms> Cell Phone DID/T-Mobile.
Sipsorcery will not pass CID through Voipms because of authentication requirements, but will pass it to Gizmo5 which successfully passes to Voipms.
I'm not sure why SS is different than G5 in sending/forwarding a SIP call.

abikelife
Posts: 3
Joined: Thu Jul 22, 2010 9:39 pm

Re: Request: Dial Plan fwd to cell phone when SIP is down

Post by abikelife » Thu Jul 22, 2010 9:44 pm

LHM wrote:Using a workaround, I now have CID from caller.
Path is: Incoming caller> GV> Gizmo5-1> Sipsorcery(If SIPphone not available then)> Gizmo5-2> Voipms> Cell Phone DID/T-Mobile.
Sipsorcery will not pass CID through Voipms because of authentication requirements, but will pass it to Gizmo5 which successfully passes to Voipms.
I'm not sure why SS is different than G5 in sending/forwarding a SIP call.
Would you mind posting the dial plan you're using to achieve this? Thanks.

LHM
Posts: 164
Joined: Tue Jul 28, 2009 7:11 pm

Re: Request: Dial Plan fwd to cell phone when SIP is down

Post by LHM » Fri Jul 23, 2010 4:14 pm

#Ruby
# SIP tracing : true or false
sys.Trace = false
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.")


if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable() then #If SIP Client/Cellphone is logged on, then VOIP Call
sys.Dial("#{sys.Username}@local",60)
sys.Respond(480, "#{sys.Username} Not available")
else
sys.Dial("1747XXXXXXX@proxy01.sipphone.com",60) #Call forwards to Cellphone via Gizmo5> VoIP.ms> to T-Mobile.
sys.Respond(480, "#{sys.Username} Not available")
end
else
# Do your OUTGOING call processing customisations here.

abikelife
Posts: 3
Joined: Thu Jul 22, 2010 9:39 pm

Re: Request: Dial Plan fwd to cell phone when SIP is down

Post by abikelife » Mon Jul 26, 2010 3:28 pm

Are you using 1 or 2 Gizmo accounts in this process?

LHM
Posts: 164
Joined: Tue Jul 28, 2009 7:11 pm

Re: Request: Dial Plan fwd to cell phone when SIP is down

Post by LHM » Mon Jul 26, 2010 3:43 pm

Two (2)

Path is: Incoming caller> GV> Gizmo5-acnt 1forwards> Sipsorcery(If SIPphone not available then)> Gizmo5-acnt 2 forwards> Voipms> Cell Phone DID/T-Mobile.
(Gizmo5-1> Edit> CallForwarding> Forward all calls to: username@sipsorcery.com Gizmo5-2> Edit> CallForwarding> Forward all calls to: username@yourprovider.com)
Last edited by LHM on Mon Jul 26, 2010 4:04 pm, edited 2 times in total.

abikelife
Posts: 3
Joined: Thu Jul 22, 2010 9:39 pm

Re: Request: Dial Plan fwd to cell phone when SIP is down

Post by abikelife » Mon Jul 26, 2010 3:48 pm

Ok, thanks. It doesn't look like I'll be able to implement this routine due to the fact that I've only got a single Gizmo5 account and new account sign-up is still suspended.

LHM
Posts: 164
Joined: Tue Jul 28, 2009 7:11 pm

Re: Request: Dial Plan fwd to cell phone when SIP is down

Post by LHM » Sat Mar 26, 2011 5:08 pm

Now that Gizmo5 is discontinued, below is path that will show callerid on your cell phone.

Path is: Incoming caller> GV> SipGate Provider registered w/ Sipsorcery(If SIPphone or ATA not available then)> XXXX@iptel.org forwards> XXX@Voipms forwards> Cell Phone DID/T-Mobile.

You could use IPKall instead of SipGate. (I have been having problems w/IPKall lately. YMMV)

(If you use Voipms, SIP inbound requires a virtual DID # from them for $0.25 a month/$3.00 a year.)

Post Reply