Unless I’m mistaken, the problem is that the GSM gateway is registering to the Asterisk box as a user, and therefore the user is known to Asterisk. So, that’s why the callerID is the SIP user ID.
You might try using re-invites. With re-invites set to “yes” the Asterisk box will tell the gateway to seek the other sip client directly instead of becoming a bridge between the two endpoints.
Set all of your SIP devices to reinvites=yes. Be sure to go through all of your clients and set the music on hold, and voicemail servers to be the IP address of your Asterisk box. That way, when you place calls on hold, the client will know where to park the call, and client will also know where to refer your calls for voicemail, and other processing.
Otherwise, I’d look through your GSM gateway documentation to see if there’s any settings you need to adjust to forward the callerID data on to the Asterisk box, or to set it up as a “peer” for the Asterisk.
[quote=“dufus”]
Otherwise, I’d look through your GSM gateway documentation to see if there’s any settings you need to adjust to forward the callerID data on to the Asterisk box, or to set it up as a “peer” for the Asterisk.[/quote]
– Executing [1300@incoming_mv370:1] NoOp(“SIP/1002-b6519898”, “+324763788xx”) in new stack
– Executing [1300@incoming_mv370:2] GotoIf(“SIP/1002-b6519898”, “1?default|1200|1”) in new stack
– Goto (default,1200,1)